changeset 17861:f84a12392eab

(copy_keymap_1): Do nothing if ELT isn't a keymap.
author Richard M. Stallman <rms@gnu.org>
date Sun, 18 May 1997 19:06:16 +0000
parents 99adb4d59379
children 1cc28cd7e2c7
files src/keymap.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Sat May 17 18:40:38 1997 +0000
+++ b/src/keymap.c	Sun May 18 19:06:16 1997 +0000
@@ -671,7 +671,8 @@
 copy_keymap_1 (chartable, idx, elt)
      Lisp_Object chartable, idx, elt;
 {
-  Faset (chartable, idx, Fcopy_keymap (elt));
+  if (!SYMBOLP (elt) && ! NILP (Fkeymapp (elt)))
+    Faset (chartable, idx, Fcopy_keymap (elt));
 }
 
 DEFUN ("copy-keymap", Fcopy_keymap, Scopy_keymap, 1, 1, 0,