From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#745: marked as done (pop-to-buffer, frames, and input focus) Date: Thu, 11 Sep 2008 00:05:06 -0700 Message-ID: References: <48C8C046.50203@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1221116706-4813-0" X-Trace: ger.gmane.org 1221116881 6210 80.91.229.12 (11 Sep 2008 07:08:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 07:08:01 +0000 (UTC) To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 09:08:55 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KdgIQ-0002uy-8O for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 09:08:54 +0200 Original-Received: from localhost ([127.0.0.1]:45706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdgHP-0007yx-SI for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 03:07:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdgHD-0007oB-IX for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 03:07:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdgHC-0007nT-Ie for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 03:07:39 -0400 Original-Received: from [199.232.76.173] (port=48790 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdgHC-0007nQ-DH for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 03:07:38 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:39405) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KdgHB-0000G9-NM for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 03:07:38 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KdgHB-0001zQ-0v for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 03:07:37 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8B77XwQ006605; Thu, 11 Sep 2008 00:07:33 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8B756W8005391; Thu, 11 Sep 2008 00:05:06 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 745 X-Emacs-PR-Package: emacs X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20465 Archived-At: This is a multi-part message in MIME format... ------------=_1221116706-4813-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Thu, 11 Sep 2008 08:52:54 +0200 with message-id <48C8C046.50203@gmx.at> and subject line Re: bug#745: pop-to-buffer, frames, and input focus has caused the Emacs bug report #745, regarding pop-to-buffer, frames, and input focus to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 745: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D745 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1221116706-4813-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,BAYES_00, FB_WORD1_END_DOLLAR,RCVD_IN_DNSWL_LOW,UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Aug 2008 07:34:24 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7K7YJoN013215 for ; Wed, 20 Aug 2008 00:34:21 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KViCx-0006G0-Iv for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 03:34:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KViCv-0006DG-L9 for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 03:34:18 -0400 Received: from [199.232.76.173] (port=46449 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KViCv-0006D8-Hg for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 03:34:17 -0400 Received: from mx20.gnu.org ([199.232.41.8]:3999) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KViCv-0003q7-A7 for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 03:34:17 -0400 Received: from cgp1.rolmail.net ([195.254.252.190] helo=rolmail.net) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KViCt-0003DO-68 for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 03:34:15 -0400 Received: from dummy.name; Wed, 20 Aug 2008 09:34:10 +0200 Received: from dummy.name; Wed, 20 Aug 2008 09:35:32 +0200 From: Helmut Eller To: bug-gnu-emacs@gnu.org Subject: pop-to-buffer, frames, and input focus Date: Wed, 20 Aug 2008 09:35:31 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Hi, The behavior of pop-to-buffer in combination with multiple frames is rather unpredictable or at least not what I expected. For example: shell$ cat pop-to-buffer-test.el (let ((frame (selected-frame)) (pop-up-frames t)) (display-buffer (get-buffer-create "foo")) (select-frame-set-input-focus frame)) (let ((display-buffer-reuse-frames t)) (pop-to-buffer "foo")) shell$ emacs -Q -l pop-to-buffer-test.el Pops up two frames, one frame displays the "foo" buffer and the other the "*scratch*" buffer (so far so good). But the "foo" frame has not the input focus. Isn't pop-to-buffer supposed to switch input focus too? Also note that I had to save and restore the selected frame around display-buffer. If I try emacs -Q --eval '(let ((pop-up-frames t)) (display-buffer (get-buffer-create "foo")))' the "foo" buffer is selected, even though display-buffer should not switch the selected window. Not even save-window-excursion stops display-buffer from switching the frame: emacs -Q --eval '(save-window-excursion (let ((pop-up-frames t)) (display-buffer (get-buffer-create "foo"))))' This is with: GNU Emacs 23.0.60.4 (i686-pc-linux-gnu, GTK+ Version 2.8.20) of 2008-08-15 on xaital Windowing system distributor `The X.Org Foundation', version 11.0.70101000 configured using `configure '--without-sound' '--without-pop' '--without-gif' '--without-tiff'' My window manager is Sawfish 1.3. Helmut. ------------=_1221116706-4813-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 745-done) by emacsbugs.donarmstrong.com; 11 Sep 2008 06:55:32 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8B6tSE8002151 for <745-done@emacsbugs.donarmstrong.com>; Wed, 10 Sep 2008 23:55:30 -0700 Received: (qmail invoked by alias); 11 Sep 2008 06:55:22 -0000 Received: from 62-47-49-206.adsl.highway.telekom.at (EHLO [62.47.49.206]) [62.47.49.206] by mail.gmx.net (mp030) with SMTP; 11 Sep 2008 08:55:22 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18GqYAtAZoGtfhtlakxOkEleyIUINDMMISoo2kb00 guijHs4GJhRAqR Message-ID: <48C8C046.50203@gmx.at> Date: Thu, 11 Sep 2008 08:52:54 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: 745-done@emacsbugs.donarmstrong.com CC: Helmut Eller Subject: Re: bug#745: pop-to-buffer, frames, and input focus References: <48AEEBB8.50201@gmx.at> <48AFFD26.3040204@gmx.at> <48B2B78C.9090407@gmx.at> <48B50C63.8010402@gmx.at> <48B69007.20604@gmx.at> <48B7181B.7080706@gmx.at> <48B7C0DA.8040104@gmx.at> <48B901B0.90701@gmx.at> <48B94E28.9040707@gmx.at> <48C26FDE.9080101@gmx.at> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.72 Fixed as 2008-09-11 Martin Rudalics * window.el (pop-to-buffer): If the window for buffer-or-name is not on the selected frame, raise that window's frame and give it input focus. (Bug#745) ------------=_1221116706-4813-0--