Mercurial > emacs
changeset 67260:f5d06dd5ca9b
(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.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 02 Dec 2005 13:55:54 +0000 |
parents | 134dc8d03e55 |
children | 447cbde40d64 |
files | src/minibuf.c |
diffstat | 1 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/minibuf.c Fri Dec 02 13:47:11 2005 +0000 +++ b/src/minibuf.c Fri Dec 02 13:55:54 2005 +0000 @@ -1747,8 +1747,12 @@ 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 @@ 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