summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2000-10-16 21:57:56 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2000-10-16 21:57:56 +0000
commit7e05cdaf48ed8eccf1bb5162c7eaf0fcbdb59bfb (patch)
treebae22e11713fbc30e0bef2c0290172b5f2d7a68e
parent45e680a83c2ca3375df82d4014eee8158e53aaf4 (diff)
downloademacs-7e05cdaf48ed8eccf1bb5162c7eaf0fcbdb59bfb.tar.gz
(keymap_memberp): Ensure that nil is not a member.
-rw-r--r--src/ChangeLog4
-rw-r--r--src/keymap.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a12519a96c0..09b6d5b10f8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
+
+ * keymap.c (keymap_memberp): Ensure that nil is not a member.
+
2000-10-16 Gerd Moellmann <gerd@gnu.org>
* xdisp.c (set_iterator_to_next): Reset box start and end flags of
diff --git a/src/keymap.c b/src/keymap.c
index 7fe8718aa09..fbbbcae3998 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -311,6 +311,7 @@ int
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));