From 64dd36298286093d583b9d602d9fa2eead961fc4 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 2 Jan 1998 23:37:19 +0000 Subject: [PATCH] (current_minor_maps): If a variable has an entry in Vminor_mode_overriding_map_alist, and also an entry in Vminor_mode_map_alist, ignore the latter. --- src/keymap.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/keymap.c b/src/keymap.c index 0ba367d29f8..4137de08a57 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -1077,6 +1077,16 @@ current_minor_maps (modeptr, mapptr) { Lisp_Object temp; + /* If a variable has an entry in Vminor_mode_overriding_map_alist, + and also an entry in Vminor_mode_map_alist, + ignore the latter. */ + if (list_number == 1) + { + val = assq_no_quit (var, lists[0]); + if (!NILP (val)) + break; + } + if (i >= cmm_size) { Lisp_Object *newmodes, *newmaps; -- 2.39.2