emacs-devel
[Top][All Lists]
Advanced

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

Re: Stop frames stealing eachothers' minibuffers!


From: Alan Mackenzie
Subject: Re: Stop frames stealing eachothers' minibuffers!
Date: Sun, 10 Jan 2021 16:03:42 +0000

Hello, Stefan.

On Sat, Jan 09, 2021 at 20:34:12 -0500, Stefan Monnier wrote:
> > It is nevertheless the standard function to call to move focus to a
> > different frame.

> Yes, but since setting focus is problematic in general (because of the
> many different ways it can be handled depending on the GUI and window
> manager and age of the captain), we usually try to refrain from doing it
> at all: it's usually a source of problems even if it looks like
> a solution in the short term.

In this case, selecting the frame is the essential part of the process.
It happens after a minibuffer is exited, and selects the frame in which
the minibuffer was opened, the one in which the coming action is to take
place.

> IIRC `raise-frame` is often a good middle ground which gets most of the
> benefit of `select-frame-set-input-focus` with much fewer problems.


>         Stefan

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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