From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: `select-frame' or `select-frame-set-input-focus'? Date: Fri, 09 Jan 2004 10:46:33 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3405-Fri09Jan2004104632+0200-eliz@elta.co.il> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1073642420 17243 80.91.224.253 (9 Jan 2004 10:00:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2004 10:00:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 09 11:00:02 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AetQv-0001fT-01 for ; Fri, 09 Jan 2004 11:00:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AeuBW-00063m-Rd for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Jan 2004 05:48:10 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AeuB8-00062c-B2 for help-gnu-emacs@gnu.org; Fri, 09 Jan 2004 05:47:46 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AetIJ-0001lO-Tq for help-gnu-emacs@gnu.org; Fri, 09 Jan 2004 04:51:39 -0500 Original-Received: from [192.114.186.22] (helo=gollum.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AetIJ-0001jc-68 for help-gnu-emacs@gnu.org; Fri, 09 Jan 2004 04:51:07 -0500 Original-Received: from zaretski (pns03-194-187.inter.net.il [80.230.194.187]) by gollum.inter.net.il (Mirapoint Messaging Server MOS 3.3.8-GR) with ESMTP id CEG52634; Fri, 9 Jan 2004 10:49:29 +0200 (IST) Original-To: help-gnu-emacs@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (halloleo@noospaam.myrealbox.com) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15847 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15847 > From: "leo" > 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).