# HG changeset patch # User Stefan Monnier # Date 971733431 0 # Node ID bc60bd17178411448cea4bee399f4af8fd183734 # Parent 7282acad9a45e3e26f6809a017819b9914e539df (keymap_memberp): Ensure that nil is not a member. diff -r 7282acad9a45 -r bc60bd171784 src/keymap.c --- a/src/keymap.c Mon Oct 16 21:24:15 2000 +0000 +++ b/src/keymap.c Mon Oct 16 21:57:11 2000 +0000 @@ -311,6 +311,7 @@ keymap_memberp (map, maps) Lisp_Object map, maps; { + if (NILP (map)) return 0; while (KEYMAPP (maps) && !EQ (map, maps)) maps = Fkeymap_parent (maps); return (EQ (map, maps));