bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#56305: 29.0.50; 'yes-or-no-p' deselects minibuffer frame


From: Alan Mackenzie
Subject: bug#56305: 29.0.50; 'yes-or-no-p' deselects minibuffer frame
Date: Mon, 11 Jul 2022 20:01:52 +0000

Hello, Stefan.

On Mon, Jul 11, 2022 at 13:06:40 -0400, Stefan Monnier wrote:
> > Apologies: the doc string for select-window virtually says it grabs the
> > focus.  Couldn't we go the whole way, and explicitly state that
> > select-window is really "select-window-set-input-focus"?

> This sounds problematic at the very least for cases like
> `with-selected-window` and `save-window-excursion`, where we don't
> really want the code to "set and (un/re)set" the focus.  And similarly
> when code does `select-window` while Emacs doesn't have focus at all.

Actually, at the moment I don't believe that select-window does grab the
focus.  I've been a bit confused about this over the last day or so.

> We do have a kind of messy situation w.r.t distinguishing the notion of
> selected-frame (and selected-window to some extend) from its interaction
> with window-manager focus.  But I'm not sure we can (nor should) really
> unify the two.

No.  But if we did, it would be via an extra argument `no-focus' to
select-window.  I still say no.

>         Stefan

-- 
Alan Mackenzie (Nuremberg, Germany).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]