aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2004-10-11 22:36:35 +0000
committerKim F. Storm2004-10-11 22:36:35 +0000
commit332e51c15c33e5033344932424f4f7af99607ffd (patch)
tree39e68e975b8ba295de957c204ce433bd5b87ed90 /src
parentb583964c159599312e90e47d330dab9330a23dda (diff)
downloademacs-332e51c15c33e5033344932424f4f7af99607ffd.tar.gz
emacs-332e51c15c33e5033344932424f4f7af99607ffd.zip
(Fsubstitute_command_keys): Ignore remappings unless there
are no ordinary bindings.
Diffstat (limited to 'src')
-rw-r--r--src/doc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/doc.c b/src/doc.c
index 120d35767b2..e6914d24038 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -776,9 +776,13 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
776 idx = strp - SDATA (string); 776 idx = strp - SDATA (string);
777 tem = Fintern (make_string (start, length_byte), Qnil); 777 tem = Fintern (make_string (start, length_byte), Qnil);
778 778
779 /* Ignore remappings unless there are no ordinary bindings. */
780 tem = Fwhere_is_internal (tem, keymap, Qt, Qnil, Qt);
781 if (NILP (tem))
782 tem = Fwhere_is_internal (tem, keymap, Qt, Qnil, Qnil);
783
779 /* Note the Fwhere_is_internal can GC, so we have to take 784 /* Note the Fwhere_is_internal can GC, so we have to take
780 relocation of string contents into account. */ 785 relocation of string contents into account. */
781 tem = Fwhere_is_internal (tem, keymap, Qt, Qnil, Qnil);
782 strp = SDATA (string) + idx; 786 strp = SDATA (string) + idx;
783 start = SDATA (string) + start_idx; 787 start = SDATA (string) + start_idx;
784 788