diff options
| author | Karl Heuer | 1997-10-16 18:13:44 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-10-16 18:13:44 +0000 |
| commit | 60b06e5e8b0e671460a5a060df613ebbc5430757 (patch) | |
| tree | f4e6ea593b3f501ec44d89b0e5a15f4307746f84 /src | |
| parent | 1bacc93e703944b40b9296237898ee66e203a2c1 (diff) | |
| download | emacs-60b06e5e8b0e671460a5a060df613ebbc5430757.tar.gz emacs-60b06e5e8b0e671460a5a060df613ebbc5430757.zip | |
(Fwhere_is_internal): some minor mode bindings weren't
being found.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keymap.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/keymap.c b/src/keymap.c index e6053c695c9..84acd616bed 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1883,22 +1883,28 @@ indirect definition itself.") | |||
| 1883 | { | 1883 | { |
| 1884 | Lisp_Object maps; | 1884 | Lisp_Object maps; |
| 1885 | Lisp_Object found, sequences; | 1885 | Lisp_Object found, sequences; |
| 1886 | Lisp_Object keymap1; | ||
| 1886 | int keymap_specified = !NILP (keymap); | 1887 | int keymap_specified = !NILP (keymap); |
| 1887 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; | 1888 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; |
| 1888 | /* 1 means ignore all menu bindings entirely. */ | 1889 | /* 1 means ignore all menu bindings entirely. */ |
| 1889 | int nomenus = !NILP (firstonly) && !EQ (firstonly, Qnon_ascii); | 1890 | int nomenus = !NILP (firstonly) && !EQ (firstonly, Qnon_ascii); |
| 1890 | 1891 | ||
| 1892 | /* Find keymaps accessible from `keymap' or the current | ||
| 1893 | context. But don't muck with the value of `keymap', | ||
| 1894 | because `where_is_internal_1' uses it to check for | ||
| 1895 | shadowed bindings. */ | ||
| 1896 | keymap1 = keymap; | ||
| 1891 | if (! keymap_specified) | 1897 | if (! keymap_specified) |
| 1892 | { | 1898 | { |
| 1893 | #ifdef USE_TEXT_PROPERTIES | 1899 | #ifdef USE_TEXT_PROPERTIES |
| 1894 | keymap = get_local_map (PT, current_buffer); | 1900 | keymap1 = get_local_map (PT, current_buffer); |
| 1895 | #else | 1901 | #else |
| 1896 | keymap = current_buffer->keymap; | 1902 | keymap1 = current_buffer->keymap; |
| 1897 | #endif | 1903 | #endif |
| 1898 | } | 1904 | } |
| 1899 | 1905 | ||
| 1900 | if (!NILP (keymap)) | 1906 | if (!NILP (keymap1)) |
| 1901 | maps = nconc2 (Faccessible_keymaps (get_keymap (keymap), Qnil), | 1907 | maps = nconc2 (Faccessible_keymaps (get_keymap (keymap1), Qnil), |
| 1902 | Faccessible_keymaps (get_keymap (current_global_map), | 1908 | Faccessible_keymaps (get_keymap (current_global_map), |
| 1903 | Qnil)); | 1909 | Qnil)); |
| 1904 | else | 1910 | else |