changeset 57478:3965acfc4e80

(get_keymap): An autoload form is not a keymap.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 13 Oct 2004 17:00:13 +0000
parents c4f6faab46b0
children 5f1d886ba411
files src/keymap.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Wed Oct 13 16:58:45 2004 +0000
+++ b/src/keymap.c	Wed Oct 13 17:00:13 2004 +0000
@@ -267,7 +267,8 @@
 
       /* Should we do an autoload?  Autoload forms for keymaps have
 	 Qkeymap as their fifth element.  */
-      if ((autoload || !error) && EQ (XCAR (tem), Qautoload))
+      if ((autoload || !error) && EQ (XCAR (tem), Qautoload)
+	  && SYMBOLP (object))
 	{
 	  Lisp_Object tail;