* bug#43083: ‘completion-content-when-empty’ is not reset
@ 2020-08-28 10:46 Dario Gjorgjevski
0 siblings, 0 replies; only message in thread
From: Dario Gjorgjevski @ 2020-08-28 10:46 UTC (permalink / raw)
To: 43083; +Cc: Lars Ingebrigtsen
Hi,
Commit 1b8d369c38 introduced ‘completion-content-when-empty’ which, at
the moment, is populated by ‘icomplete-completions’. This works well
with one small catch: if ‘icomplete-completions’ has not run yet (e.g.,
one does C-x b followed by a very quick RET), the value of
‘completion-content-when-empty’ from the *previous interaction with the
minibuffer* will be used.
An example illustrating the problem is:
0. emacs -Q
1. M-x icomplete-mode
2. (setq icomplete-show-matches-on-no-input t)
3. C-x f, then wait a bit, then C-g to cancel
4. C-x b followed by a quick RET
What will happen is that Emacs will switch to a buffer named “./” or
similar -- the value of ‘completion-content-when-empty’ from the C-x f
in step 3.
Therefore, I suggest is that we reset ‘completion-content-when-empty’
somewhere. Perhaps in ‘icomplete-minibuffer-setup’?
Best regards,
Dario
--
dario.gjorgjevski@gmail.com :: +49 1525 8666837
% gpg --keyserver 'hkps://hkps.pool.sks-keyservers.net' \
\`> --recv-keys '744A4F0B4F1C9371'
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-28 10:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-28 10:46 bug#43083: ‘completion-content-when-empty’ is not reset Dario Gjorgjevski
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).