home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.emacs:2849 comp.sys.dec:4513
- Path: sparky!uunet!sun-barr!cs.utexas.edu!ut-emx!slcs.slb.com!aa.cad.slb.com!braun
- From: braun@mailhost.aa.cad.slb.com (Matthew Braun)
- Newsgroups: comp.emacs,comp.sys.dec
- Subject: Remove key on DECstation under Xwindows
- Message-ID: <1992Aug13.151752.8531@mailhost.aa.cad.slb.com>
- Date: 13 Aug 92 15:17:52 GMT
- Sender: usenet@mailhost.aa.cad.slb.com (Usenet Administrator)
- Organization: Schlumberger CAD/CAM in Ann Arbor, MI
- Lines: 44
-
- Info: DECstation 5000/200, LK201 keyboard, X11R4, twm or mwm
-
- Can anyone think of a reason the Remove key would send ^[[3~ to a xterm
- window and send nothing to an emacs window?
-
- In a xterm, run 'cat > /dev/null'
- then press: <Remove> <Return> <Ctrl-D>
- and you will see the above characters that are send to a xterm window.
-
- In an emacs window, it sends nothing.
- Press <Ctrl-Q> (runs quoted-insert command)
- then press Remove... nothing! (unless it works for you)
- You can try other keys, like Find, Select, Prev, Next. They work.
-
- I am trying to define my keyboard in the .emacs file, they all work
- (except Remove) when emacs creates its own window:
-
- (defvar CSI-map nil " ")
- (if (not CSI-map)
- (progn
- (setq CSI-map (make-keymap))
- (define-key global-map "\e[" CSI-map)
- (define-key CSI-map "1~" 'set-mark-command) ;; Find
- (define-key CSI-map "2~" 'beginning-of-line) ;; Insert Here
- (define-key CSI-map "3~" 'scroll-down) ;; Remove
- (define-key CSI-map "4~" 'delete-char) ;; Select
- (define-key CSI-map "5~" 'end-of-line) ;; Prev Screen
- (define-key CSI-map "6~" 'scroll-up) ;; Next Screen
- (define-key CSI-map "25~" 'beginning-of-buffer) ;; F13
- (define-key CSI-map "26~" 'end-of-buffer) ;; F14
- ))
-
- All these definitions work including the Remove key if start emacs in a
- xterm window with: emacs -t `tty`
-
-
- Please email, I'll post a summary if there is interest.
-
- Thanks,
-
- Matthew
-
- ---------------
- internet: braun@falcon.aa.cad.slb.com
-