diff src/keymap.c @ 20576:b916d29222a3

(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.
author Richard M. Stallman <rms@gnu.org>
date Fri, 02 Jan 1998 23:37:19 +0000
parents 40bfe766d355
children 9ac0b485cf60
line wrap: on
line diff
--- a/src/keymap.c	Fri Jan 02 23:23:21 1998 +0000
+++ b/src/keymap.c	Fri Jan 02 23:37:19 1998 +0000
@@ -1077,6 +1077,16 @@
 	{
 	  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;