changeset 7183:b96377c0e49d

(Fsingle_key_description): Accept strings as keys since the buffer menu uses them.
author Karl Heuer <kwzh@gnu.org>
date Fri, 29 Apr 1994 01:10:33 +0000
parents f0ecad45bb35
children caac285c072d
files src/keymap.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Thu Apr 28 22:27:06 1994 +0000
+++ b/src/keymap.c	Fri Apr 29 01:10:33 1994 +0000
@@ -1438,8 +1438,11 @@
     case Lisp_Symbol:		/* Function key or event-symbol */
       return Fsymbol_name (key);
 
+    case Lisp_String:
+      return key;
+
     default:
-      error ("KEY must be an integer, cons, or symbol.");
+      error ("KEY must be an integer, cons, string, or symbol.");
     }
 }