GNU bug report logs -
#63967
28.2; switch-to-buffer in normal window fails if minibuffer window is active
Previous Next
Reported by: Al Petrofsky <al <at> petrofsky.org>
Date: Fri, 9 Jun 2023 04:10:02 UTC
Severity: normal
Found in version 28.2
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Drew Adams <drew.adams <at> oracle.com>
> CC: "al <at> petrofsky.org" <al <at> petrofsky.org>,
> "rudalics <at> gmx.at"
> <rudalics <at> gmx.at>,
> "monnier <at> iro.umontreal.ca" <monnier <at> iro.umontreal.ca>,
> "63967 <at> debbugs.gnu.org" <63967 <at> debbugs.gnu.org>
> Date: Sun, 11 Jun 2023 14:35:59 +0000
>
> > > > Perhaps we should modify the minibuffer code
> > > > to note which window should be current after
> > > > the completion or abortion of the minibuffer
> > > > read action.
> >
> > > Isn't that simply "the window which was selected
> > > before entering the minibuffer"?
> >
> > Most of the time, yes. If that window no longer
> > exists on termination of the minibuffer, or we've
> > moved to a different frame, things aren't so simple.
>
> You can and will ignore this, but IMO _all_ of
> the above is misguided and short-sighted. "Isn't
> that simply...?" is just plain wrong - both the
> question and any single answer.
I will indeed ignore most of what you say -- because you seem to
completely misunderstand what this discussion is about. See below.
> It isn't "simply" _anything_ you can preconceive.
> It's _whichever window ended up_ selected after
> using the minibuffer. Nothing more, nothing less.
Using the minibuffer doesn't by itself cause any window to be
selected. Using the minibuffer just supplies to whatever command that
prompted the user with the response to the prompt. Then the
minibuffer is exited, and only then the command continues its
execution, and could very well choose another window to be the
selected one.
This discussion is about what happens _immediately_ after
read-from-minibuffer exits, which just provides the response to the
prompt. It has nothing to do with what you are talking about, and
doesn't affect the window that will be the selected one after the
command exits.
read-from-minibuffer invokes recursive-editing cycle. When that cycle
ends, it should leave the window/frame configuration intact, or as
intact as possible. Why? because most commands that invoke
read-from-minibuffer in its interactive form do not expect the window
configuration to change after the interactive form finishes its job.
And if you still don't agree, then let's agree to disagree.
This bug report was last modified 1 year and 340 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.