GNU bug report logs -
#19031
24.4; find-file in icomplete-mode shows completions with no input
Previous Next
Reported by: Ole Laursen <olau <at> iola.dk>
Date: Wed, 12 Nov 2014 16:42:02 UTC
Severity: normal
Tags: fixed
Found in version 24.4
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #15 received at 19031 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Ole Laursen <olau <at> iola.dk> writes:
>
>> Run emacs -Q, evaluate
>>
>> (icomplete-mode 1)
>>
>> then press C-x C-f and wait a second. There's now completions in the
>> minibuffer despite icomplete-show-matches-on-no-input being nil. Perhaps
>> icomplete is confused by the current working dir being present in C-x
>> C-f.
>
> I think the icomplete-show-matches-on-no-input doc string is just
> unclear here. It seems like the point of the variable is that you can
> set it to non-nil to force icomplete to wait until we have completions
> before displaying the prompt? When it's the default nil value, it'll
> still show all the matches, but they may arrive asynchronously.
When the `icomplete-show-matches-on-no-input` variable is nil,
completions will be not shown while minibuffer is empty:
1. emacs -Q
2. M-x icomplete-mode
3. M-x
=> No completions
4. f
=> Completions
5. C-/
=> No completions
With the 'find-file' function, minibuffer already contains the text --
the default directory. Once the minibuffer will become empty
completions will be hidden:
1. emacs -Q
2. M-x icomplete-mode
3. C-x C-f
=> Completions
4. C-x h C-w
=> No completions
> I've now clarified this in the doc string in Emacs 28.
Maybe it would be better to replace the text
"When non-nil, show completions when first prompting for input."
with something like
"When non-nil, show completions when minibuffer is empty."
This bug report was last modified 4 years and 220 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.