unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Eli Zaretskii" <eliz@elta.co.il>
Subject: Re: `select-frame' or `select-frame-set-input-focus'?
Date: Fri, 09 Jan 2004 10:46:33 +0200	[thread overview]
Message-ID: <3405-Fri09Jan2004104632+0200-eliz@elta.co.il> (raw)
In-Reply-To: <btl6uu$gj3$1@otis.netspace.net.au> (halloleo@noospaam.myrealbox.com)

> 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	other threads:[~2004-01-09  8:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-09  3:18 `select-frame' or `select-frame-set-input-focus'? leo
2004-01-09  8:46 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3405-Fri09Jan2004104632+0200-eliz@elta.co.il \
    --to=eliz@elta.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).