From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.bugs Subject: bug#745: pop-to-buffer, frames, and input focus Date: Fri, 22 Aug 2008 16:27:22 +0200 Message-ID: References: <48AC2F4A.1000507@gmx.at> <48AC851A.3020906@gmx.at> <48AD2FB5.3000204@gmx.at> <48ADD085.50505@gmx.at> Reply-To: Helmut Eller , 745@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219416470 28560 80.91.229.12 (22 Aug 2008 14:47:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2008 14:47:50 +0000 (UTC) Cc: 745@emacsbugs.donarmstrong.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 22 16:48:42 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 1KWXwI-00083g-QI for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Aug 2008 16:48:35 +0200 Original-Received: from localhost ([127.0.0.1]:36696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWXvL-00084F-9U for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Aug 2008 10:47:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWXvH-00082N-EA for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2008 10:47:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWXvG-000810-Jx for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2008 10:47:30 -0400 Original-Received: from [199.232.76.173] (port=49667 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWXvG-00080k-FU for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2008 10:47:30 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45524) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KWXvF-0005Ww-Oa for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2008 10:47:30 -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 m7MElRKY001088; Fri, 22 Aug 2008 07:47:27 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7MEZ3oc029228; Fri, 22 Aug 2008 07:35:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Helmut Eller Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 22 Aug 2008 14:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 745 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 745-submit@emacsbugs.donarmstrong.com id=B745.121941516327242 (code B ref 745); Fri, 22 Aug 2008 14:35:03 +0000 Original-Received: (at 745) by emacsbugs.donarmstrong.com; 22 Aug 2008 14:26:03 +0000 Original-Received: from rolmail.net (cgp1.rolmail.net [195.254.252.190]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7MEPxoU027236 for <745@emacsbugs.donarmstrong.com>; Fri, 22 Aug 2008 07:26:00 -0700 Original-Received: from dummy.name; Fri, 22 Aug 2008 16:25:57 +0200 Original-Received: from dummy.name; Fri, 22 Aug 2008 16:27:22 +0200 In-Reply-To: <48ADD085.50505@gmx.at> (martin rudalics's message of "Thu, 21 Aug 2008 22:31:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Fri, 22 Aug 2008 10:47:30 -0400 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:19639 Archived-At: * martin rudalics [2008-08-21 22:31+0200] writes: >> pop-to-buffer doesn't switch input focus with: Sawfish, kwin, >> metacity, fluxbox, twm. >> It does with icewm. >> >> display-buffer seems to switch focus with: Sawfish, kwin, fluxbox, >> icewm, twm. > > You probably mean display-buffer does _not_ switch focus with these. I meant to say: display-buffer _does_ switch focus when creating a new frame with those window managers: Sawfish, kwin, fluxbox, icewm, twm. >> I still think that display-buffer should neither select the other frame >> nor give it the input focus. (Whether the other frame should be raised >> or not should probably be customizable, but that's a minor issue.) > > I agree with you but I'm afraid there were issues with this. If you > have some spare time please look at the threads starting with > > http://lists.gnu.org/archive/html/emacs-devel/2006-04/msg00922.html > > http://lists.gnu.org/archive/html/emacs-devel/2005-11/msg00107.html > > http://lists.gnu.org/archive/html/emacs-devel/2008-03/msg00946.html > > respectively. At the very least you will find out that you're not > alone. Those messages are several years old. And it looks like nobody is going to fix the issue this time. Maybe we could move the input focus to the selected frame in a lazy fashion. E.g. when Emacs waits for new events, we could compare the currently focused frame with the selected frame, and if they differ we could switch the focus to the selected frame. This would make select-frame more useful. Helmut.