home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.emacs
- Path: sparky!uunet!ftpbox!motsrd!mothost!white!glas!motcid!stephen
- From: stephen@glas.rtsg.mot.com (Stephen Shortland)
- Subject: Re: Sun arrow keys with meta and control?
- In-Reply-To: griffith@harris.earley.sns.neuphilologie.uni-tuebingen's message of Tue, 25 Aug 1992 18: 15:34 GMT
- Message-ID: <1992Aug26.082622.6223@glas.rtsg.mot.com>
- Sender: news@glas.rtsg.mot.com
- Nntp-Posting-Host: dearg21
- Organization: Motorola CIG, Cork, IRELAND
- References: <GRIFFITH.92Aug25201534@harris.earley.sns.neuphilologie.uni-tuebingen>
- Distribution: comp
- Date: Wed, 26 Aug 1992 09:26:15 GMT
- Lines: 42
-
- In article <GRIFFITH.92Aug25201534@harris.earley.sns.neuphilologie.uni-tuebingen> griffith@harris.earley.sns.neuphilologie.uni-tuebingen (John Griffith) writes:
-
- >
- > I asked this question a couple weeks ago but got no response
- > so I'll try it once again before giving up. I know how to
- > rebind the Sun function keys (including arrows) to whatever function
- > I want. What I would like to do but have been unable to figure out is
- > how to bind meta-up-arrow to something different than plain up-arrow.
- > Is this possible? It seems that meta-up-arrow and up-arrow and control-
- > up-arrow all put out the same key code as far as emacs is concerned.
- > Any ideas?
- >
-
- I just carried out some tests, and it seems that you are right -
- control, meta and plain arrow keys produce the same key sequence.
- Somebody else may know how to change this.
-
- However shift arrow produces a different set of key sequences -
- perhaps you knew this already, if not then you could use it. Below is
- a useful functinon which I picked up from the net some time ago. It
- lets you see the key sequences produced when different key
- combinations are types. Try it out with plain and shifted arrow keys.
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; original by merlyn -- LastEditDate = "Mon Apr 10 15:45:46 1989"
- ;;
- (defun see-chars ()
- "Displays characters typed, terminated by a 3-second timeout."
- (interactive)
- (let ((chars "")
- (inhibit-quit t))
- (message "Enter characters, terminated by 3-second timeout...")
- (while (not (sit-for 3))
- (setq chars (concat chars (list (read-char)))
- quit-flag nil)) ; quit-flag maybe set by C-g
- (message "Characters entered: %s" (key-description chars))))
-
- --
- | Stephen Shortland, | Motorola Ireland Ltd, | |
- | | Mahon Industrial Estate, | stephen@ |
- | Phone +353-21-357101 | Blackrock, Cork, | glas.rtsg.mot.com |
- | Fax. +353-21-357635 | IRELAND. | |
-