From 7e05cdaf48ed8eccf1bb5162c7eaf0fcbdb59bfb Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 16 Oct 2000 21:57:56 +0000 Subject: [PATCH] (keymap_memberp): Ensure that nil is not a member. --- src/ChangeLog | 4 ++++ src/keymap.c | 1 + 2 files changed, 5 insertions(+) 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 + + * keymap.c (keymap_memberp): Ensure that nil is not a member. + 2000-10-16 Gerd Moellmann * 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)); -- 2.39.2