1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 11:00:45 -08:00

(keymap_memberp): Ensure that nil is not a member.

This commit is contained in:
Stefan Monnier 2000-10-16 21:57:56 +00:00
parent 45e680a83c
commit 7e05cdaf48
2 changed files with 5 additions and 0 deletions

View file

@ -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));