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

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

Re: `select-frame' or `select-frame-set-input-focus'?


From: Eli Zaretskii
Subject: Re: `select-frame' or `select-frame-set-input-focus'?
Date: Fri, 09 Jan 2004 10:46:33 +0200

> From: "leo" <halloleo@noospaam.myrealbox.com>
> Newsgroups: gnu.emacs.help
> Date: Fri, 9 Jan 2004 14:18:45 +1100
> 
> now i stumbled across the function `select-frame-set-input-focus' which
> doesn't do anything different to `select-frame' on my system win2000 system.

This is only true for the default configuration of the MS-Windows
window management policy, whereby you need to click on a window to
switch the input focus to it.  But if you change that (as I like to
do on my systems) so that merely moving the mouse pointer to another
window sets input focus to that other window, the two functions will
give different results.

Also, `select-frame-set-input-focus' raises the frame, which is
important if the frame was minimized.

> so what's the generally more recommended function for a new frame:
> `select-frame' or `select-frame-set-input-focus'?

It looks to me that the latter is marginally better (more portable and
its effect is more reliably predictable in all possible situations).




reply via email to

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