home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / emacs / help / 3483 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  1.2 KB

  1. Path: sparky!uunet!spool.mu.edu!mixcom.com!calyx.corp
  2. From: calyx.corp@mixcom.mixcom.com (calyx.corp)
  3. Newsgroups: gnu.emacs.help
  4. Subject: redefining DEL key to delete-char ?
  5. Message-ID: <1992Jul24.150044.12939@mixcom.com>
  6. Date: 24 Jul 92 15:00:44 GMT
  7. Article-I.D.: mixcom.1992Jul24.150044.12939
  8. Sender: mmxxmm@mixcom.com (Calyx Corp.)
  9. Distribution: usa
  10. Organization: Milwaukee Internet Xchange BBS, Milwaukee, WI U.S.A.
  11. Lines: 19
  12.  
  13. I am used to interfaces where the BACKSPACE key deletes to the left of
  14. the cursor, and the DEL key deletes the character at the cursor.
  15.  
  16. I am using Emacs 18.58 on SCO Unix with a wyse 150 terminal (TERM=wy150).
  17. In emacs/lisp/term/wy150.el I put (among other stuff) the following lines:
  18.  
  19. (global-unset-key "\C-?") ;; undefine Delete key as 'delete-backward-char
  20. (define-key global-map "\C-?" 'delete-char)
  21.  
  22. The Delete key still deletes to the left of the cursor while I am editing
  23. buffers, but if I am typing stuff into prompts (like searching for regular
  24. expressions in info), then it does delete to the left of the cursor.  Huh?
  25.  
  26. Am I doing something wrong here?  Should I use another way to set the
  27. Delete key other than through "define-key global-map" ?
  28.  
  29. Nels Olsen
  30. -- 
  31. calyx.corp@mixcom.com
  32.