changeset 93882:9eaa3ee184e9

(access_keymap): Remove the value 2 for t_ok which was used for generic chars, which do not exist any more in emacs-unicode.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 08 Apr 2008 22:13:13 +0000
parents c0fe31fb3833
children 722fdbc7a012
files src/ChangeLog src/keymap.c
diffstat 2 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Apr 08 22:12:12 2008 +0000
+++ b/src/ChangeLog	Tue Apr 08 22:13:13 2008 +0000
@@ -1,3 +1,8 @@
+2008-04-08  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* keymap.c (access_keymap): Remove the value 2 for t_ok which was used
+	for generic chars, which do not exist any more in emacs-unicode.
+
 2008-04-08  Michael Albinus  <michael.albinus@gmx.de>
 
 	* coding.c (detect_coding_emacs_mule)
--- a/src/keymap.c	Tue Apr 08 22:12:12 2008 +0000
+++ b/src/keymap.c	Tue Apr 08 22:13:13 2008 +0000
@@ -563,9 +563,6 @@
 
     GCPRO4 (map, tail, idx, t_binding);
 
-    /* If `t_ok' is 2, both `t' is accepted.  */
-    t_ok = t_ok ? 2 : 0;
-
     for (tail = XCDR (map);
 	 (CONSP (tail)
 	  || (tail = get_keymap (tail, 0, autoload), CONSP (tail)));
@@ -587,10 +584,10 @@
 
 	    if (EQ (key, idx))
 	      val = XCDR (binding);
-	    else if (t_ok > 1 && EQ (key, Qt))
+	    else if (t_ok && EQ (key, Qt))
 	      {
 		t_binding = XCDR (binding);
-		t_ok = 1;
+		t_ok = 0;
 	      }
 	  }
 	else if (VECTORP (binding))