changeset 7894:d385199b26b6

(Fsingle_key_description): Allow strings as keys.
author Karl Heuer <kwzh@gnu.org>
date Wed, 15 Jun 1994 01:09:17 +0000
parents e54617027a47
children fac7ff0a7aeb
files src/keymap.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Wed Jun 15 00:24:54 1994 +0000
+++ b/src/keymap.c	Wed Jun 15 01:09:17 1994 +0000
@@ -1458,8 +1458,12 @@
     case Lisp_Symbol:		/* Function key or event-symbol */
       return Fsymbol_name (key);
 
+      /* Buffer names in the menubar can trigger this.  */
+    case Lisp_String:
+      return Fcopy_sequence (key);
+
     default:
-      error ("KEY must be an integer, cons, or symbol.");
+      error ("KEY must be an integer, cons, symbol, or string.");
     }
 }