Mercurial > emacs
comparison src/keymap.c @ 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 | c7dd307b0ec5 |
children | 8971ddf55736 |
comparison
equal
deleted
inserted
replaced
93881:c0fe31fb3833 | 93882:9eaa3ee184e9 |
---|---|
561 Lisp_Object t_binding = Qnil; | 561 Lisp_Object t_binding = Qnil; |
562 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; | 562 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; |
563 | 563 |
564 GCPRO4 (map, tail, idx, t_binding); | 564 GCPRO4 (map, tail, idx, t_binding); |
565 | 565 |
566 /* If `t_ok' is 2, both `t' is accepted. */ | |
567 t_ok = t_ok ? 2 : 0; | |
568 | |
569 for (tail = XCDR (map); | 566 for (tail = XCDR (map); |
570 (CONSP (tail) | 567 (CONSP (tail) |
571 || (tail = get_keymap (tail, 0, autoload), CONSP (tail))); | 568 || (tail = get_keymap (tail, 0, autoload), CONSP (tail))); |
572 tail = XCDR (tail)) | 569 tail = XCDR (tail)) |
573 { | 570 { |
585 { | 582 { |
586 Lisp_Object key = XCAR (binding); | 583 Lisp_Object key = XCAR (binding); |
587 | 584 |
588 if (EQ (key, idx)) | 585 if (EQ (key, idx)) |
589 val = XCDR (binding); | 586 val = XCDR (binding); |
590 else if (t_ok > 1 && EQ (key, Qt)) | 587 else if (t_ok && EQ (key, Qt)) |
591 { | 588 { |
592 t_binding = XCDR (binding); | 589 t_binding = XCDR (binding); |
593 t_ok = 1; | 590 t_ok = 0; |
594 } | 591 } |
595 } | 592 } |
596 else if (VECTORP (binding)) | 593 else if (VECTORP (binding)) |
597 { | 594 { |
598 if (NATNUMP (idx) && XFASTINT (idx) < ASIZE (binding)) | 595 if (NATNUMP (idx) && XFASTINT (idx) < ASIZE (binding)) |