Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Nov 2003 11:06:16 +1100 (EST)
From:      Mark Hannon <markhannon@optusnet.com.au>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   i386/59600: [PATCH] Improved us.emacs.kbd mapping
Message-ID:  <200311230006.hAN06GLA028944@tbird.home.lan>
Resent-Message-ID: <200311230010.hAN0ABTt027173@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         59600
>Category:       i386
>Synopsis:       [PATCH] Improved us.emacs.kbd mapping
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 22 16:10:08 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mark Hannon
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD tbird.home.lan 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Sat Nov 22 17:31:08 EST 2003 mark@tbird.home.lan:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	
The standard us.emacs.kbd file adds handling of the META key to enable emacs like command
line editing however it breaks use of the up-arrow and down-arrow keys to recall the previous
command etc.

The included patch incorporates the META handling from us.emacs.kbd for ascii keycodes 
(and backspace) only in order to get the best of both worlds.
>How-To-Repeat:
	
>Fix:

Apply the following patch:

--- us.emacs.kbd	Sun Nov 23 10:56:51 2003
+++ us.emacs.kbd.orig	Sun Nov 23 10:59:23 2003
@@ -18,7 +18,7 @@
   012   '-'    '_'    us     us     173    223    159    159     O
   013   '='    '+'    nop    nop    189    171    nop    nop     O
   014   del    del    bs     bs     255    255    136    136     O
-  015   ht     btab   nop    nop    ht     btab   nop    nop     O
+  015   ht     ht     ht     ht     137    137    137    137     O
   016   'q'    'Q'    dc1    dc1    241    209    145    145     C
   017   'w'    'W'    etb    etb    247    215    151    151     C
   018   'e'    'E'    enq    enq    229    197    133    133     C
@@ -31,7 +31,7 @@
   025   'p'    'P'    dle    dle    240    208    144    144     C
   026   '['    '{'    esc    esc    219    251    155    155     O
   027   ']'    '}'    gs     gs     221    253    157    157     O
-  028   cr     cr     nl     nl     cr     cr     nl     nl      O
+  028   cr     cr     nl     nl     141    141    138    138     O
   029   lctrl  lctrl  lctrl  lctrl  lctrl  lctrl  lctrl  lctrl   O
   030   'a'    'A'    soh    soh    225    193    129    129     C
   031   's'    'S'    dc3    dc3    243    211    147    147     C
@@ -86,29 +86,26 @@
   080   fkey58 '2'    '2'    '2'    178    178    178    178     N
   081   fkey59 '3'    '3'    '3'    179    179    179    179     N
   082   fkey60 '0'    '0'    '0'    176    176    176    176     N
-  083   del    '.'    '.'    '.'    '.'    '.'    boot   boot    N
-  084   nop    nop    nop    nop    nop    nop    nop    nop     O
+  083   nop    '.'    '.'    '.'    174    174    174    174     N
+  084   us     us     us     us     us     us     us     us      O
   085   nop    nop    nop    nop    nop    nop    nop    nop     O
   086   nop    nop    nop    nop    nop    nop    nop    nop     O
   087   fkey11 fkey23 fkey35 fkey47 scr11  scr11  scr11  scr11   O
   088   fkey12 fkey24 fkey36 fkey48 scr12  scr12  scr12  scr12   O
-  089   cr     cr     nl     nl     cr     cr     nl     nl      O
+  089   nop    cr     cr     cr     141    141    141    141     N
   090   rctrl  rctrl  rctrl  rctrl  rctrl  rctrl  rctrl  rctrl   O
-  091   '/'    '/'    '/'    '/'    '/'    '/'    '/'    '/'     N
-  092   nscr   pscr   debug  debug  nop    nop    nop    nop     O
+  091   nop    '/'    '/'    '/'    175    175    175    175     N
+  092   nop    '*'    '*'    '*'    170    170    170    170     N
   093   ralt   ralt   ralt   ralt   ralt   ralt   ralt   ralt    O
-  094   fkey49 fkey49 fkey49 fkey49 fkey49 fkey49 fkey49 fkey49  O
-  095   fkey50 fkey50 fkey50 fkey50 fkey50 fkey50 fkey50 fkey50  O
-  096   fkey51 fkey51 fkey51 fkey51 fkey51 fkey51 fkey51 fkey51  O
-  097   fkey53 fkey53 fkey53 fkey53 fkey53 fkey53 fkey53 fkey53  O
-  098   fkey55 fkey55 fkey55 fkey55 fkey55 fkey55 fkey55 fkey55  O
-  099   fkey57 fkey57 fkey57 fkey57 fkey57 fkey57 fkey57 fkey57  O
-  100   fkey58 fkey58 fkey58 fkey58 fkey58 fkey58 fkey58 fkey58  O
-  101   fkey59 fkey59 fkey59 fkey59 fkey59 fkey59 fkey59 fkey59  O
-  102   fkey60 paste  fkey60 fkey60 fkey60 fkey60 fkey60 fkey60  O
-  103   fkey61 fkey61 fkey61 fkey61 fkey61 fkey61 boot   fkey61  O
-  104   slock  saver  slock  saver  susp   nop    susp   nop     O
-  105   fkey62 fkey62 fkey62 fkey62 fkey62 fkey62 fkey62 fkey62  O
-  106   fkey63 fkey63 fkey63 fkey63 fkey63 fkey63 fkey63 fkey63  O
-  107   fkey64 fkey64 fkey64 fkey64 fkey64 fkey64 fkey64 fkey64  O
-  108   nop    nop    nop    nop    nop    nop    nop    nop     O
+  094   fkey49 '7'    '7'    '7'    183    183    183    183     N
+  095   fkey50 '8'    '8'    '8'    184    184    184    184     N
+  096   fkey51 '9'    '9'    '9'    185    185    185    185     N
+  097   fkey53 '4'    '4'    '4'    180    180    180    180     N
+  098   fkey55 '6'    '6'    '6'    182    182    182    182     N
+  099   fkey57 '1'    '1'    '1'    177    177    177    177     N
+  100   fkey58 '2'    '2'    '2'    178    178    178    178     N
+  101   fkey59 '3'    '3'    '3'    179    179    179    179     N
+  102   fkey60 '0'    '0'    '0'    176    176    176    176     N
+  103   fkey54 '5'    '5'    '5'    181    181    181    181     N
+  104   slock  slock  slock  slock  slock  slock  slock  slock   O
+  105   nop    nop    nop    nop    nop    nop    nop    nop     O
	


>Release-Note:
>Audit-Trail:
>Unformatted:


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311230006.hAN06GLA028944>