From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Hansen Newsgroups: gmane.emacs.devel Subject: Re: pop-to-buffer does not change input focus Date: Sun, 23 Apr 2006 21:31:38 +0200 Message-ID: <444BD61A.6020607@soem.dk> References: <44494739.9010302@soem.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145820731 4831 80.91.229.2 (23 Apr 2006 19:32:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Apr 2006 19:32:11 +0000 (UTC) Cc: David Reitter , Emacs-Devel ' Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 23 21:32:05 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FXkJN-0002kY-WC for ged-emacs-devel@m.gmane.org; Sun, 23 Apr 2006 21:32:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FXkJN-00079n-FY for ged-emacs-devel@m.gmane.org; Sun, 23 Apr 2006 15:32:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FXkJ9-00078y-2j for emacs-devel@gnu.org; Sun, 23 Apr 2006 15:31:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FXkJ7-000785-4n for emacs-devel@gnu.org; Sun, 23 Apr 2006 15:31:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FXkJ6-000781-Um for emacs-devel@gnu.org; Sun, 23 Apr 2006 15:31:44 -0400 Original-Received: from [212.99.225.245] (helo=odin.broadcom.dk) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FXkLB-0003aq-CH for emacs-devel@gnu.org; Sun, 23 Apr 2006 15:33:53 -0400 Original-Received: from pppoe3-ves.broadcom.dk ([212.99.255.42] helo=[10.17.0.131]) by odin.broadcom.dk with esmtp (Exim 4.24; FreeBSD) id 1FXkIK-000JOl-0z; Sun, 23 Apr 2006 21:30:56 +0200 User-Agent: Debian Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: en-us, en Original-To: Stefan Monnier In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53277 Archived-At: Stefan Monnier wrote: >But in Fpop_to_buffer, we call Fselect_window on the window just displayed >by Fdisplay_buffer and *that* should cause the input focus to be set. > > I don't think Fselect_window is supposed to set the input focus. AFAICS from reading section 29.9 in the Emacs Lisp Manual (Input Focus), the only lisp function that changes input focus is select-frame-set-input-focus. The reason why the frame selected by pop-to-buffer gets input focus when it is newly created but not when it existed already, is because newly created frames get input focus (at least under my test test conditions (GNU/Linux with Gnome)), whereas frames just raised don't. IHMO this is confusing. Why don't select-frame set the input focus?