comparison src/keymap.c @ 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 a8be0bc345d2
children 6f1bde62e20e e86fc76a45e4 ff0e824afa37
comparison
equal deleted inserted replaced
57477:c4f6faab46b0 57478:3965acfc4e80
265 if (EQ (XCAR (tem), Qkeymap)) 265 if (EQ (XCAR (tem), Qkeymap))
266 return tem; 266 return tem;
267 267
268 /* Should we do an autoload? Autoload forms for keymaps have 268 /* Should we do an autoload? Autoload forms for keymaps have
269 Qkeymap as their fifth element. */ 269 Qkeymap as their fifth element. */
270 if ((autoload || !error) && EQ (XCAR (tem), Qautoload)) 270 if ((autoload || !error) && EQ (XCAR (tem), Qautoload)
271 && SYMBOLP (object))
271 { 272 {
272 Lisp_Object tail; 273 Lisp_Object tail;
273 274
274 tail = Fnth (make_number (4), tem); 275 tail = Fnth (make_number (4), tem);
275 if (EQ (tail, Qkeymap)) 276 if (EQ (tail, Qkeymap))