home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20903 < prev    next >
Encoding:
Text File  |  1992-12-20  |  2.9 KB  |  89 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!caen!sol.ctr.columbia.edu!eff!world!jrs
  3. From: jrs@world.std.com (Rick Sladkey)
  4. Subject: Re: EMACS and Bindings of F-keys
  5. In-Reply-To: I1041905@dbstu1.rz.tu-bs.de's message of Thu, 17 Dec 1992 19:07:56 GMT
  6. Message-ID: <JRS.92Dec17213454@lepton.world.std.com>
  7. Sender: jrs@world.std.com (Rick Sladkey)
  8. Organization: The Internet
  9. References: <168C011B1C.I1041905@dbstu1.rz.tu-bs.de>
  10. Date: Fri, 18 Dec 1992 02:34:53 GMT
  11. Lines: 76
  12.  
  13. >>>>> On Thu, 17 Dec 1992 19:07:56 GMT, I1041905@dbstu1.rz.tu-bs.de said:
  14.  
  15. Micheal> 1) how can I assign the higher F-keys to functions? EMACS seems
  16. Micheal> to accept only sequences up to four characters. I have no problems
  17. Micheal> to assign F1 - F5, but F6 - F10 send ESCAPE, square bracket, two
  18. Micheal> digits and a tilde. EMACS seems not recognize that the tilde
  19. Micheal> belongs to the key sequence.
  20.  
  21. Oops.  That's a bug in term/linux.el.  A patch to fix it follows.
  22.  
  23. Micheal> 2) In text mode, the backspace key deletes a character to the left,
  24. Micheal> whereas in X, it invokes HELP. The DEL key deletes a character to
  25. Micheal> the left. (in text mode: to the right)
  26. Micheal> How can I change this? (I want to change the assignments in X)
  27.  
  28. This remaps the Backspace key to send DEL as the console driver does:
  29.  
  30. $ cat ~/.Xmodmap
  31. keycode  22 = Delete
  32. $
  33.  
  34. Arbitrarily remapping the Delete key is more problematic.
  35. -----
  36. *** linux.el.~1~    Wed Nov 11 21:01:32 1992
  37. --- linux.el    Thu Dec 17 21:09:37 1992
  38. ***************
  39. *** 30,50 ****
  40.                     ("[C" . ?\C-c) ; F3
  41.                     ("[D" . ?\C-d) ; F4
  42.                     ("[E" . ?\C-e) ; F5
  43. !                   ("[17~" . ?\C-f) ; F6
  44. !                   ("[18~" . ?\C-g) ; F7
  45. !                   ("[19~" . ?\C-h) ; F8
  46. !                   ("[20~" . ?\C-i) ; F9
  47. !                   ("[21~" . ?\C-j) ; F10
  48. !                   ("[23~" . ?\C-m) ; Shift-F1
  49. !                   ("[24~" . ?\C-n) ; Shift-F2
  50. !                   ("[25~" . ?\C-o) ; Shift-F3
  51. !                   ("[26~" . ?\C-p) ; Shift-F4
  52. !                   ("[28~" . ?\C-q) ; Shift-F5
  53. !                   ("[29~" . ?\C-r) ; Shift-F6
  54. !                   ("[31~" . ?\C-s) ; Shift-F7
  55. !                   ("[32~" . ?\C-t) ; Shift-F8
  56. !                   ("[33~" . ?\C-u) ; Shift-F9
  57. !                   ("[34~" . ?\C-v) ; Shift-F10
  58.                     ))))
  59.   
  60.   (defun enable-arrow-keys ()
  61. --- 30,50 ----
  62.                     ("[C" . ?\C-c) ; F3
  63.                     ("[D" . ?\C-d) ; F4
  64.                     ("[E" . ?\C-e) ; F5
  65. !                   ("17~" . ?\C-f) ; F6
  66. !                   ("18~" . ?\C-g) ; F7
  67. !                   ("19~" . ?\C-h) ; F8
  68. !                   ("20~" . ?\C-i) ; F9
  69. !                   ("21~" . ?\C-j) ; F10
  70. !                   ("23~" . ?\C-m) ; Shift-F1
  71. !                   ("24~" . ?\C-n) ; Shift-F2
  72. !                   ("25~" . ?\C-o) ; Shift-F3
  73. !                   ("26~" . ?\C-p) ; Shift-F4
  74. !                   ("28~" . ?\C-q) ; Shift-F5
  75. !                   ("29~" . ?\C-r) ; Shift-F6
  76. !                   ("31~" . ?\C-s) ; Shift-F7
  77. !                   ("32~" . ?\C-t) ; Shift-F8
  78. !                   ("33~" . ?\C-u) ; Shift-F9
  79. !                   ("34~" . ?\C-v) ; Shift-F10
  80.                     ))))
  81.   
  82.   (defun enable-arrow-keys ()
  83.  
  84.  
  85.  
  86. --
  87. Rick Sladkey
  88. jrs@world.std.com
  89.