aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-06-14 13:35:45 +0000
committerGerd Moellmann2000-06-14 13:35:45 +0000
commitc7edb9605f1a59a74dc3c2ebb0431eed06b7ff2c (patch)
treed79b588dca46f18cd465c8a8a11d48c7570e859f /src
parent2a4487aceb4f5c7175ed98e168d9a49a99ae0a80 (diff)
downloademacs-c7edb9605f1a59a74dc3c2ebb0431eed06b7ff2c.tar.gz
emacs-c7edb9605f1a59a74dc3c2ebb0431eed06b7ff2c.zip
(Fsingle_key_description): Enclose function key and
event symbol names in angle brackets.
Diffstat (limited to 'src')
-rw-r--r--src/keymap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/keymap.c b/src/keymap.c
index c7e0f394b57..89271cf3971 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1952,7 +1952,11 @@ Control characters turn into C-whatever, etc.")
1952 } 1952 }
1953 } 1953 }
1954 else if (SYMBOLP (key)) /* Function key or event-symbol */ 1954 else if (SYMBOLP (key)) /* Function key or event-symbol */
1955 return Fsymbol_name (key); 1955 {
1956 char *buffer = (char *) alloca (STRING_BYTES (XSYMBOL (key)->name) + 5);
1957 sprintf (buffer, "<%s>", XSYMBOL (key)->name->data);
1958 return build_string (buffer);
1959 }
1956 else if (STRINGP (key)) /* Buffer names in the menubar. */ 1960 else if (STRINGP (key)) /* Buffer names in the menubar. */
1957 return Fcopy_sequence (key); 1961 return Fcopy_sequence (key);
1958 else 1962 else