From: Kim F. Storm Date: Mon, 11 Oct 2004 22:36:35 +0000 (+0000) Subject: (Fsubstitute_command_keys): Ignore remappings unless there X-Git-Tag: ttn-vms-21-2-B4~4620 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=332e51c15c33e5033344932424f4f7af99607ffd;p=emacs.git (Fsubstitute_command_keys): Ignore remappings unless there are no ordinary bindings. --- 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 idx = strp - SDATA (string); tem = Fintern (make_string (start, length_byte), Qnil); + /* Ignore remappings unless there are no ordinary bindings. */ + tem = Fwhere_is_internal (tem, keymap, Qt, Qnil, Qt); + if (NILP (tem)) + tem = Fwhere_is_internal (tem, keymap, Qt, Qnil, Qnil); + /* Note the Fwhere_is_internal can GC, so we have to take relocation of string contents into account. */ - tem = Fwhere_is_internal (tem, keymap, Qt, Qnil, Qnil); strp = SDATA (string) + idx; start = SDATA (string) + start_idx;