home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!caen!sol.ctr.columbia.edu!eff!world!jrs
- From: jrs@world.std.com (Rick Sladkey)
- Subject: Re: EMACS and Bindings of F-keys
- In-Reply-To: I1041905@dbstu1.rz.tu-bs.de's message of Thu, 17 Dec 1992 19:07:56 GMT
- Message-ID: <JRS.92Dec17213454@lepton.world.std.com>
- Sender: jrs@world.std.com (Rick Sladkey)
- Organization: The Internet
- References: <168C011B1C.I1041905@dbstu1.rz.tu-bs.de>
- Date: Fri, 18 Dec 1992 02:34:53 GMT
- Lines: 76
-
- >>>>> On Thu, 17 Dec 1992 19:07:56 GMT, I1041905@dbstu1.rz.tu-bs.de said:
-
- Micheal> 1) how can I assign the higher F-keys to functions? EMACS seems
- Micheal> to accept only sequences up to four characters. I have no problems
- Micheal> to assign F1 - F5, but F6 - F10 send ESCAPE, square bracket, two
- Micheal> digits and a tilde. EMACS seems not recognize that the tilde
- Micheal> belongs to the key sequence.
-
- Oops. That's a bug in term/linux.el. A patch to fix it follows.
-
- Micheal> 2) In text mode, the backspace key deletes a character to the left,
- Micheal> whereas in X, it invokes HELP. The DEL key deletes a character to
- Micheal> the left. (in text mode: to the right)
- Micheal> How can I change this? (I want to change the assignments in X)
-
- This remaps the Backspace key to send DEL as the console driver does:
-
- $ cat ~/.Xmodmap
- keycode 22 = Delete
- $
-
- Arbitrarily remapping the Delete key is more problematic.
- -----
- *** linux.el.~1~ Wed Nov 11 21:01:32 1992
- --- linux.el Thu Dec 17 21:09:37 1992
- ***************
- *** 30,50 ****
- ("[C" . ?\C-c) ; F3
- ("[D" . ?\C-d) ; F4
- ("[E" . ?\C-e) ; F5
- ! ("[17~" . ?\C-f) ; F6
- ! ("[18~" . ?\C-g) ; F7
- ! ("[19~" . ?\C-h) ; F8
- ! ("[20~" . ?\C-i) ; F9
- ! ("[21~" . ?\C-j) ; F10
- ! ("[23~" . ?\C-m) ; Shift-F1
- ! ("[24~" . ?\C-n) ; Shift-F2
- ! ("[25~" . ?\C-o) ; Shift-F3
- ! ("[26~" . ?\C-p) ; Shift-F4
- ! ("[28~" . ?\C-q) ; Shift-F5
- ! ("[29~" . ?\C-r) ; Shift-F6
- ! ("[31~" . ?\C-s) ; Shift-F7
- ! ("[32~" . ?\C-t) ; Shift-F8
- ! ("[33~" . ?\C-u) ; Shift-F9
- ! ("[34~" . ?\C-v) ; Shift-F10
- ))))
-
- (defun enable-arrow-keys ()
- --- 30,50 ----
- ("[C" . ?\C-c) ; F3
- ("[D" . ?\C-d) ; F4
- ("[E" . ?\C-e) ; F5
- ! ("17~" . ?\C-f) ; F6
- ! ("18~" . ?\C-g) ; F7
- ! ("19~" . ?\C-h) ; F8
- ! ("20~" . ?\C-i) ; F9
- ! ("21~" . ?\C-j) ; F10
- ! ("23~" . ?\C-m) ; Shift-F1
- ! ("24~" . ?\C-n) ; Shift-F2
- ! ("25~" . ?\C-o) ; Shift-F3
- ! ("26~" . ?\C-p) ; Shift-F4
- ! ("28~" . ?\C-q) ; Shift-F5
- ! ("29~" . ?\C-r) ; Shift-F6
- ! ("31~" . ?\C-s) ; Shift-F7
- ! ("32~" . ?\C-t) ; Shift-F8
- ! ("33~" . ?\C-u) ; Shift-F9
- ! ("34~" . ?\C-v) ; Shift-F10
- ))))
-
- (defun enable-arrow-keys ()
-
-
-
- --
- Rick Sladkey
- jrs@world.std.com
-