diff options
| author | Lars Ingebrigtsen | 2022-04-17 17:36:58 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-04-17 18:06:26 +0200 |
| commit | b49cca70128246a4e9a226bfc6eb08e934a7043f (patch) | |
| tree | 74d422d56c373d84787dca72528acff2069d67ef /src | |
| parent | dd451a37ddf9e1358c56bdb9c65606c1a7967f07 (diff) | |
| download | emacs-b49cca70128246a4e9a226bfc6eb08e934a7043f.tar.gz emacs-b49cca70128246a4e9a226bfc6eb08e934a7043f.zip | |
Make :filters run in the correct buffer in describe-buffer-bindings
* lisp/help.el (describe-map-tree): Take an optional buffer parameter.
(describe-map): Ditto, and use it to run `lookup-key' in the
correct buffer. This fixes problems of filters being run in the
wrong buffer (bug#39149).
* src/keymap.c (Fdescribe_buffer_bindings): Pass in BUFFER to
describe-map-tree.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keymap.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/keymap.c b/src/keymap.c index 83c54e26300..da0a52bd2c1 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -2867,7 +2867,7 @@ You type Translation\n\ | |||
| 2867 | CALLN (Ffuncall, | 2867 | CALLN (Ffuncall, |
| 2868 | Qdescribe_map_tree, | 2868 | Qdescribe_map_tree, |
| 2869 | Vkey_translation_map, Qnil, Qnil, prefix, | 2869 | Vkey_translation_map, Qnil, Qnil, prefix, |
| 2870 | msg, nomenu, Qt, Qnil, Qnil); | 2870 | msg, nomenu, Qt, Qnil, Qnil, buffer); |
| 2871 | } | 2871 | } |
| 2872 | 2872 | ||
| 2873 | /* Print the (major mode) local map. */ | 2873 | /* Print the (major mode) local map. */ |
| @@ -2881,7 +2881,7 @@ You type Translation\n\ | |||
| 2881 | CALLN (Ffuncall, | 2881 | CALLN (Ffuncall, |
| 2882 | Qdescribe_map_tree, | 2882 | Qdescribe_map_tree, |
| 2883 | start1, Qt, shadow, prefix, | 2883 | start1, Qt, shadow, prefix, |
| 2884 | msg, nomenu, Qnil, Qnil, Qnil); | 2884 | msg, nomenu, Qnil, Qnil, Qnil, buffer); |
| 2885 | shadow = Fcons (start1, shadow); | 2885 | shadow = Fcons (start1, shadow); |
| 2886 | start1 = Qnil; | 2886 | start1 = Qnil; |
| 2887 | } | 2887 | } |
| @@ -2894,7 +2894,7 @@ You type Translation\n\ | |||
| 2894 | CALLN (Ffuncall, | 2894 | CALLN (Ffuncall, |
| 2895 | Qdescribe_map_tree, | 2895 | Qdescribe_map_tree, |
| 2896 | start1, Qt, shadow, prefix, | 2896 | start1, Qt, shadow, prefix, |
| 2897 | msg, nomenu, Qnil, Qnil, Qnil); | 2897 | msg, nomenu, Qnil, Qnil, Qnil, buffer); |
| 2898 | shadow = Fcons (start1, shadow); | 2898 | shadow = Fcons (start1, shadow); |
| 2899 | } | 2899 | } |
| 2900 | else | 2900 | else |
| @@ -2917,7 +2917,7 @@ You type Translation\n\ | |||
| 2917 | CALLN (Ffuncall, | 2917 | CALLN (Ffuncall, |
| 2918 | Qdescribe_map_tree, | 2918 | Qdescribe_map_tree, |
| 2919 | start1, Qt, shadow, prefix, | 2919 | start1, Qt, shadow, prefix, |
| 2920 | msg, nomenu, Qnil, Qnil, Qnil); | 2920 | msg, nomenu, Qnil, Qnil, Qnil, buffer); |
| 2921 | shadow = Fcons (start1, shadow); | 2921 | shadow = Fcons (start1, shadow); |
| 2922 | } | 2922 | } |
| 2923 | 2923 | ||
| @@ -2950,7 +2950,7 @@ You type Translation\n\ | |||
| 2950 | CALLN (Ffuncall, | 2950 | CALLN (Ffuncall, |
| 2951 | Qdescribe_map_tree, | 2951 | Qdescribe_map_tree, |
| 2952 | maps[i], Qt, shadow, prefix, | 2952 | maps[i], Qt, shadow, prefix, |
| 2953 | msg, nomenu, Qnil, Qnil, Qnil); | 2953 | msg, nomenu, Qnil, Qnil, Qnil, buffer); |
| 2954 | shadow = Fcons (maps[i], shadow); | 2954 | shadow = Fcons (maps[i], shadow); |
| 2955 | SAFE_FREE (); | 2955 | SAFE_FREE (); |
| 2956 | } | 2956 | } |
| @@ -2968,7 +2968,7 @@ You type Translation\n\ | |||
| 2968 | CALLN (Ffuncall, | 2968 | CALLN (Ffuncall, |
| 2969 | Qdescribe_map_tree, | 2969 | Qdescribe_map_tree, |
| 2970 | start1, Qt, shadow, prefix, | 2970 | start1, Qt, shadow, prefix, |
| 2971 | msg, nomenu, Qnil, Qnil, Qnil); | 2971 | msg, nomenu, Qnil, Qnil, Qnil, buffer); |
| 2972 | } | 2972 | } |
| 2973 | else | 2973 | else |
| 2974 | { | 2974 | { |
| @@ -2976,7 +2976,7 @@ You type Translation\n\ | |||
| 2976 | CALLN (Ffuncall, | 2976 | CALLN (Ffuncall, |
| 2977 | Qdescribe_map_tree, | 2977 | Qdescribe_map_tree, |
| 2978 | start1, Qt, shadow, prefix, | 2978 | start1, Qt, shadow, prefix, |
| 2979 | msg, nomenu, Qnil, Qnil, Qnil); | 2979 | msg, nomenu, Qnil, Qnil, Qnil, buffer); |
| 2980 | } | 2980 | } |
| 2981 | 2981 | ||
| 2982 | shadow = Fcons (start1, shadow); | 2982 | shadow = Fcons (start1, shadow); |
| @@ -2987,7 +2987,7 @@ You type Translation\n\ | |||
| 2987 | CALLN (Ffuncall, | 2987 | CALLN (Ffuncall, |
| 2988 | Qdescribe_map_tree, | 2988 | Qdescribe_map_tree, |
| 2989 | current_global_map, Qt, shadow, prefix, | 2989 | current_global_map, Qt, shadow, prefix, |
| 2990 | msg, nomenu, Qnil, Qt, Qnil); | 2990 | msg, nomenu, Qnil, Qt, Qnil, buffer); |
| 2991 | 2991 | ||
| 2992 | /* Print the function-key-map translations under this prefix. */ | 2992 | /* Print the function-key-map translations under this prefix. */ |
| 2993 | if (!NILP (KVAR (current_kboard, Vlocal_function_key_map))) | 2993 | if (!NILP (KVAR (current_kboard, Vlocal_function_key_map))) |
| @@ -2996,7 +2996,7 @@ You type Translation\n\ | |||
| 2996 | CALLN (Ffuncall, | 2996 | CALLN (Ffuncall, |
| 2997 | Qdescribe_map_tree, | 2997 | Qdescribe_map_tree, |
| 2998 | KVAR (current_kboard, Vlocal_function_key_map), Qnil, Qnil, prefix, | 2998 | KVAR (current_kboard, Vlocal_function_key_map), Qnil, Qnil, prefix, |
| 2999 | msg, nomenu, Qt, Qnil, Qnil); | 2999 | msg, nomenu, Qt, Qnil, Qnil, buffer); |
| 3000 | } | 3000 | } |
| 3001 | 3001 | ||
| 3002 | /* Print the input-decode-map translations under this prefix. */ | 3002 | /* Print the input-decode-map translations under this prefix. */ |
| @@ -3006,7 +3006,7 @@ You type Translation\n\ | |||
| 3006 | CALLN (Ffuncall, | 3006 | CALLN (Ffuncall, |
| 3007 | Qdescribe_map_tree, | 3007 | Qdescribe_map_tree, |
| 3008 | KVAR (current_kboard, Vinput_decode_map), Qnil, Qnil, prefix, | 3008 | KVAR (current_kboard, Vinput_decode_map), Qnil, Qnil, prefix, |
| 3009 | msg, nomenu, Qt, Qnil, Qnil); | 3009 | msg, nomenu, Qt, Qnil, Qnil, buffer); |
| 3010 | } | 3010 | } |
| 3011 | return Qnil; | 3011 | return Qnil; |
| 3012 | } | 3012 | } |