diff options
| author | Richard M. Stallman | 1994-02-04 23:09:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-02-04 23:09:25 +0000 |
| commit | 9a425dcb39e07b6cda4c7ba217162fdc9aa3aeb7 (patch) | |
| tree | f32200a76ac607fdee7e2bfee4269526ca038089 /src/doc.c | |
| parent | 9228cfacd5fb124243299e27681a06ed93b61db0 (diff) | |
| download | emacs-9a425dcb39e07b6cda4c7ba217162fdc9aa3aeb7.tar.gz emacs-9a425dcb39e07b6cda4c7ba217162fdc9aa3aeb7.zip | |
(Fsubstitute_command_keys): Pass keymap as that arg
to Fwhere_is_internal. Init keymap from Voverriding_local_map.
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 10 |
1 files changed, 8 insertions, 2 deletions
| @@ -37,6 +37,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 37 | 37 | ||
| 38 | Lisp_Object Vdoc_file_name; | 38 | Lisp_Object Vdoc_file_name; |
| 39 | 39 | ||
| 40 | extern Lisp_Object Voverriding_local_map; | ||
| 41 | |||
| 40 | Lisp_Object | 42 | Lisp_Object |
| 41 | get_doc_string (filepos) | 43 | get_doc_string (filepos) |
| 42 | long filepos; | 44 | long filepos; |
| @@ -391,7 +393,11 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int | |||
| 391 | name = Qnil; | 393 | name = Qnil; |
| 392 | GCPRO4 (str, tem, keymap, name); | 394 | GCPRO4 (str, tem, keymap, name); |
| 393 | 395 | ||
| 394 | keymap = current_buffer->keymap; | 396 | /* KEYMAP is either nil (which means search all the active keymaps) |
| 397 | or a specified local map (which means search just that and the | ||
| 398 | global map). If non-nil, it might come from Voverriding_local_map, | ||
| 399 | or from a \\<mapname> construct in STR itself.. */ | ||
| 400 | keymap = Voverriding_local_map; | ||
| 395 | 401 | ||
| 396 | bsize = XSTRING (str)->size; | 402 | bsize = XSTRING (str)->size; |
| 397 | bufp = buf = (unsigned char *) xmalloc (bsize); | 403 | bufp = buf = (unsigned char *) xmalloc (bsize); |
| @@ -425,7 +431,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int | |||
| 425 | /* Save STRP in IDX. */ | 431 | /* Save STRP in IDX. */ |
| 426 | idx = strp - (unsigned char *) XSTRING (str)->data; | 432 | idx = strp - (unsigned char *) XSTRING (str)->data; |
| 427 | tem = Fintern (make_string (start, length), Qnil); | 433 | tem = Fintern (make_string (start, length), Qnil); |
| 428 | tem = Fwhere_is_internal (tem, keymap, Qnil, Qt, Qnil); | 434 | tem = Fwhere_is_internal (tem, keymap, Qt, Qnil); |
| 429 | 435 | ||
| 430 | /* Disregard menu bar bindings; it is positively annoying to | 436 | /* Disregard menu bar bindings; it is positively annoying to |
| 431 | mention them when there's no menu bar, and it isn't terribly | 437 | mention them when there's no menu bar, and it isn't terribly |