diff options
| author | Eli Zaretskii | 2005-12-02 13:55:54 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2005-12-02 13:55:54 +0000 |
| commit | bb0bdf7042a8e97eb220027ed1390d64bdf88522 (patch) | |
| tree | 6223ceb0d4e77cb250b3efc7e431043d32e4a85e | |
| parent | 3d866cebd26c38893136f604c984ac2391e6e087 (diff) | |
| download | emacs-bb0bdf7042a8e97eb220027ed1390d64bdf88522.tar.gz emacs-bb0bdf7042a8e97eb220027ed1390d64bdf88522.zip | |
(Fcompleting_read): If Vminibuffer_completing_file_name is
non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
and Vminibuffer_local_must_match_filename_map keymaps.
(keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
| -rw-r--r-- | src/minibuf.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 00354df3dc9..e7df7bd0153 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1747,8 +1747,12 @@ Completion ignores case if the ambient value of | |||
| 1747 | XSETFASTINT (histpos, 0); | 1747 | XSETFASTINT (histpos, 0); |
| 1748 | 1748 | ||
| 1749 | val = read_minibuf (NILP (require_match) | 1749 | val = read_minibuf (NILP (require_match) |
| 1750 | ? Vminibuffer_local_completion_map | 1750 | ? (NILP (Vminibuffer_completing_file_name) |
| 1751 | : Vminibuffer_local_must_match_map, | 1751 | ? Vminibuffer_local_completion_map |
| 1752 | : Vminibuffer_local_filename_completion_map) | ||
| 1753 | : (NILP (Vminibuffer_completing_file_name) | ||
| 1754 | ? Vminibuffer_local_must_match_map | ||
| 1755 | : Vminibuffer_local_must_match_filename_map), | ||
| 1752 | init, prompt, make_number (pos), 0, | 1756 | init, prompt, make_number (pos), 0, |
| 1753 | histvar, histpos, def, 0, | 1757 | histvar, histpos, def, 0, |
| 1754 | !NILP (inherit_input_method), 0); | 1758 | !NILP (inherit_input_method), 0); |
| @@ -2921,10 +2925,16 @@ keys_of_minibuf () | |||
| 2921 | initial_define_key (Vminibuffer_local_completion_map, '?', | 2925 | initial_define_key (Vminibuffer_local_completion_map, '?', |
| 2922 | "minibuffer-completion-help"); | 2926 | "minibuffer-completion-help"); |
| 2923 | 2927 | ||
| 2928 | initial_define_key (Vminibuffer_local_filename_completion_map, ' ', | ||
| 2929 | "self-insert-command"); | ||
| 2930 | |||
| 2924 | initial_define_key (Vminibuffer_local_must_match_map, Ctl ('m'), | 2931 | initial_define_key (Vminibuffer_local_must_match_map, Ctl ('m'), |
| 2925 | "minibuffer-complete-and-exit"); | 2932 | "minibuffer-complete-and-exit"); |
| 2926 | initial_define_key (Vminibuffer_local_must_match_map, Ctl ('j'), | 2933 | initial_define_key (Vminibuffer_local_must_match_map, Ctl ('j'), |
| 2927 | "minibuffer-complete-and-exit"); | 2934 | "minibuffer-complete-and-exit"); |
| 2935 | |||
| 2936 | initial_define_key (Vminibuffer_local_must_match_filename_map, ' ', | ||
| 2937 | "self-insert-command"); | ||
| 2928 | } | 2938 | } |
| 2929 | 2939 | ||
| 2930 | /* arch-tag: 8f69b601-fba3-484c-a6dd-ceaee54a7a73 | 2940 | /* arch-tag: 8f69b601-fba3-484c-a6dd-ceaee54a7a73 |