home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!know!mips2!news.bbn.com!usc!zaphod.mps.ohio-state.edu!darwin.sura.net!sgiblab!sgigate!sgi!wdl1!wdl1.wdl.loral.com!rob
- From: rob@icarus.ssd.loral.com (Rob Riepel)
- Newsgroups: comp.emacs
- Subject: Need help reading key sequence in Lucid emacs
- Message-ID: <ROB.92Nov12145630@icarus.ssd.loral.com>
- Date: 12 Nov 92 22:56:39 GMT
- Sender: news@wdl.loral.com
- Organization: Space Systems/Loral
- Lines: 22
-
-
- I have an elisp program that I want to modify to work on with both gnu
- emacs on a normal VT-series terminal and Lucid emacs. In one part of
- the program I check read a key sequence and check for a specific VT100
- sequence. Here's the abbreviated code.
-
- (if (equal (read-key-sequence "Go for it?") "\eOM") (go-for-it))
-
- Of course, the key sequence in never equal to "\eOM" in lucid emacs.
-
- What I'm looking for is code that will accomplish the same thing on both
- versions of emacs without oodles of (if Lucid)'s. Something like:
-
- ;; The following line may be invoked in a customization file.
- (setq string (if Lucid kp_enter "\eOM")
-
- ;; This main code is ignorant of the Lucid/emacs conflicts!
- (if (equal (read-key-sequence "Go for it?") string) (go-for-it))
-
- Any suggestions are welcome. E-mail please to rob@icarus.ssd.loral.com.
-
- ..rob
-