Article View: gnu.epoch.misc
Article #217Epoch 4.2: (key-description "\M-x") returns 8-bit value
From: Rod Whitby
Date: Mon, 31 Aug 1992 22:29
Date: Mon, 31 Aug 1992 22:29
31 lines
1744 bytes
1744 bytes
Epoch 4.2p0, EIGHTBIT_KEYBOARD not defined:
(key-description "\M-x") returns an eight-bit character (looks like a
0 with a slash through it).
Is this a bug, or a feature of the new 8-bit character support ?
From the Emacs Lisp Manual:
* Function: key-description STRING
This function returns a string containing the Emacs standard
notation for the keyboard characters in STRING. See the
examples for `single-key-description'.
* Function: single-key-description CHARACTER
This function returns a string describing CHARACTER in the
standard Emacs notation for keyboard input. A normal printing
character is represented by itself, but a control character
turns into a string starting with `C-', a meta character turns
into a string starting with `M-', and space, linefeed, etc. are
transformed to `SPC', `LFD', etc.
(single-key-description ?\C-x)
=> "C-x"
(key-description "\C-x \M-y \n \t \r \f123")
=> "C-x SPC M-y SPC LFD SPC TAB SPC RET SPC C-l 1 2 3"
--
Rod Whitby (rwhitby@research.canon.oz.au) _--_|\
/ \
Canon Information Systems Research Australia \_.--._/
1 Thomas Holt Drive, North Ryde, N.S.W., 2113. v
Technical Details
Message-ID:
<RWHITBY.92Sep1082905@bing.research.canon.oz.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!mama!bing!rwhitbyShow Full Headers
Complete Article Headers
Newsgroups: gnu.epoch.misc Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!mama!bing!rwhitby From: rwhitby@research.canon.oz.au (Rod Whitby) Subject: Epoch 4.2: (key-description "\M-x") returns 8-bit value Message-ID: <RWHITBY.92Sep1082905@bing.research.canon.oz.au> Originator: rwhitby@bing Sender: news@research.canon.oz.au Organization: Canon Information Systems Research, Australia Date: Mon, 31 Aug 1992 22:29:05 GMT Lines: 31