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

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

Re: switch-to-buffer-other-frame changes focus/mouse to that other frame


From: Stefan Monnier
Subject: Re: switch-to-buffer-other-frame changes focus/mouse to that other frame
Date: Wed, 08 Dec 2010 15:32:10 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>   A "switch-to-buffer-other-frame" switches to a (newly created)
>   frame, but keeps the focus (and the mouse) on it's current
>   location in

>     GNU Emacs 22.1.1 (x86_64-suse-linux-gnu, GTK+ Version 2.12.0)
>     of 2008-05-16 on willimas

>   as a "switch-to-buffer-other-window" (with pop-up-frames==f) does.

>   However, the same "switch-to-buffer-other-frame" in

>     GNU Emacs 23.1.1 (x86_64-suse-linux-gnu, GTK+ Version 2.18.6)
>     of 2010-04-01 on build17

>   gives the focus to (and places the mouse in) the (newly created)
>   frame.

Giving focus is part of the intended semantics of switch-to-*, so this
change in Emacs-23 is considered a bug *fix* rather than a bug.  If you
want to display in a new frame without selecting it, you'll want
to use something like display-buffer.

As for moving the mouse, it does seem undesirable, tho it would be
expected&normal if you've set focus-follows-mouse to a non-nil value.

Note that all the mouse movement and focus manipulation when creating
a new frame is terribly dependent on the window-manager (and its
configuration) and it is difficult to make it work reliably in all the
possible different cases.  So when reporting such problems, try and
provide as much info as possible about your window-manager so as to try
and make it possible for someone to reproduce the problem.


        Stefan


reply via email to

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