diff options
author | Eli Zaretskii <[email protected]> | 2005-12-02 13:55:54 +0000 |
---|---|---|
committer | Eli Zaretskii <[email protected]> | 2005-12-02 13:55:54 +0000 |
commit | bb0bdf7042a8e97eb220027ed1390d64bdf88522 (patch) | |
tree | 6223ceb0d4e77cb250b3efc7e431043d32e4a85e /src | |
parent | 3d866cebd26c38893136f604c984ac2391e6e087 (diff) |
(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.
Diffstat (limited to 'src')
-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 00354df3dc..e7df7bd015 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -1747,8 +1747,12 @@ Completion ignores case if the ambient value of XSETFASTINT (histpos, 0); val = read_minibuf (NILP (require_match) - ? Vminibuffer_local_completion_map - : Vminibuffer_local_must_match_map, + ? (NILP (Vminibuffer_completing_file_name) + ? Vminibuffer_local_completion_map + : Vminibuffer_local_filename_completion_map) + : (NILP (Vminibuffer_completing_file_name) + ? Vminibuffer_local_must_match_map + : Vminibuffer_local_must_match_filename_map), init, prompt, make_number (pos), 0, histvar, histpos, def, 0, !NILP (inherit_input_method), 0); @@ -2921,10 +2925,16 @@ keys_of_minibuf () initial_define_key (Vminibuffer_local_completion_map, '?', "minibuffer-completion-help"); + initial_define_key (Vminibuffer_local_filename_completion_map, ' ', + "self-insert-command"); + initial_define_key (Vminibuffer_local_must_match_map, Ctl ('m'), "minibuffer-complete-and-exit"); initial_define_key (Vminibuffer_local_must_match_map, Ctl ('j'), "minibuffer-complete-and-exit"); + + initial_define_key (Vminibuffer_local_must_match_filename_map, ' ', + "self-insert-command"); } /* arch-tag: 8f69b601-fba3-484c-a6dd-ceaee54a7a73 |