GNU bug report logs -
#45072
28.0.50; Emacs switches other buffer back uncontrollably, if other window's buffer is changed by user during minibuffer editing
Previous Next
Reported by: Jean Louis <bugs <at> gnu.support>
Date: Sun, 6 Dec 2020 14:09:01 UTC
Severity: minor
Tags: fixed
Fixed in version 28.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #92 received at 45072 <at> debbugs.gnu.org (full text, mbox):
> What do you type to accept a suggestion? I can't find a key
> to accept a suggestion without exiting the minibuffer.
When I type here
C-h f set- RET
I get a completions window with the "set-" prefixed completions. When I
now type
auto RET
the completions window pops down and the minibuffer window shows
set-auto-
When I now type another RET, the completions window pops up again and
shows the "set-auto-" prefixed completions with the minibuffer showing
set-auto-
When I now type an "m" I get a help window showing me help for
'set-auto-mode'.
So here the pop down works already and I have no idea why it cannot be
extended to the entire completion mechanism.
> Then maybe the commands that pop up the completions window
> should clean up their windows after use. What would be the
> right place to remove used windows? Maybe in exit-minibuffer?
> Or in some unwind-protect in case the user types C-g?
The completion mechanism should clean up its traces as soon as it is
finished - either a choice has been made or it has been aborted: This
can mean to clean up windows or frames, size back a minibuffer window or
remove a pop up menu or a dialogue box. But I hardly ever use that
mechanism so I cannot tell how it works (or should work) in practice.
In either case 'exit-minibuffer' is too late. It must be either the
caller of completions - just in case it wants to, for example, reuse the
present window for refining the list of completions - or the called
which might be more noisy with windows popping up and down. And I
suppose that completions are not invoked from minibuffer interactions
alone ...
> This means that quit-window should be used on the completions window.
> It should do the right thing: either restore a previous buffer in that window,
> or close the window if no more buffers were displayed in it.
Yes. But IMO that should be done _before_ reading from the minibuffer
interaction finished.
martin
This bug report was last modified 3 years and 291 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.