diff options
| author | Kim F. Storm | 2004-10-11 22:36:35 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-10-11 22:36:35 +0000 |
| commit | 332e51c15c33e5033344932424f4f7af99607ffd (patch) | |
| tree | 39e68e975b8ba295de957c204ce433bd5b87ed90 /src | |
| parent | b583964c159599312e90e47d330dab9330a23dda (diff) | |
| download | emacs-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -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 | ||