From 9ce78f7c7b5f790289266e205282d3ea3c26dda9 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 13 Oct 2004 17:00:13 +0000 Subject: [PATCH] (get_keymap): An autoload form is not a keymap. --- src/keymap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keymap.c b/src/keymap.c index 92cb6902a1e..105a5b95793 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -267,7 +267,8 @@ get_keymap (object, error, autoload) /* 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; -- 2.39.5