🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Rod Whitby Mon, 31 Aug 1992 22:29
Epoch 4.2: (key-description "\M-x") returns 8-bit value
#217
Author: Rod Whitby
Date: Mon, 31 Aug 1992 22:29
31 lines
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 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads