From 84cb7b4562d2075284f15bcc832d156d0cf0d71a Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 8 Apr 2008 22:13:13 +0000 Subject: [PATCH] (access_keymap): Remove the value 2 for t_ok which was used for generic chars, which do not exist any more in emacs-unicode. --- src/ChangeLog | 5 +++++ src/keymap.c | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index e6b81874bd4..e1ef9ffb52a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-04-08 Stefan Monnier + + * 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 * coding.c (detect_coding_emacs_mule) diff --git a/src/keymap.c b/src/keymap.c index 94d2ab5fe67..814d9e09a14 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -563,9 +563,6 @@ access_keymap (map, idx, t_ok, noinherit, autoload) 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 @@ access_keymap (map, idx, t_ok, noinherit, autoload) 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)) -- 2.39.2