From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: display-buffer-other-frame - useful? doc string? Date: Sat, 05 Apr 2008 22:28:27 -0400 Message-ID: References: <002401c8820f$7d6042c0$0600a8c0@us.oracle.com> <000001c8977b$146abc10$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207448927 2401 80.91.229.12 (6 Apr 2008 02:28:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Apr 2008 02:28:47 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 06 04:29:19 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JiKdD-0001AD-DJ for ged-emacs-devel@m.gmane.org; Sun, 06 Apr 2008 04:29:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JiKca-0000c5-AI for ged-emacs-devel@m.gmane.org; Sat, 05 Apr 2008 22:28:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JiKcW-0000bz-In for emacs-devel@gnu.org; Sat, 05 Apr 2008 22:28:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JiKcU-0000bn-1w for emacs-devel@gnu.org; Sat, 05 Apr 2008 22:28:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JiKcT-0000bh-Sz for emacs-devel@gnu.org; Sat, 05 Apr 2008 22:28:33 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JiKcT-000166-Mn for emacs-devel@gnu.org; Sat, 05 Apr 2008 22:28:33 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JiKcT-00061x-Ee for emacs-pretest-bug@gnu.org; Sat, 05 Apr 2008 22:28:33 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JiKcQ-00015U-0W for emacs-pretest-bug@gnu.org; Sat, 05 Apr 2008 22:28:33 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JiKcP-00015Q-Pf for emacs-pretest-bug@gnu.org; Sat, 05 Apr 2008 22:28:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvACAMLS90fO+J/WdGdsb2JhbACBXI94ASqXfQ X-IronPort-AV: E=Sophos;i="4.25,610,1199682000"; d="scan'208";a="17881914" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 05 Apr 2008 22:28:27 -0400 Original-Received: from pastel.home ([206.248.159.214]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id MGI59227; Sat, 05 Apr 2008 22:28:27 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 5372A8898; Sat, 5 Apr 2008 22:28:27 -0400 (EDT) In-Reply-To: <000001c8977b$146abc10$0200a8c0@us.oracle.com> (Drew Adams's message of "Sat, 5 Apr 2008 17:13:45 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:94471 gmane.emacs.pretest.bugs:21895 Archived-At: > I thought this had been fixed. CVS shows that the code and doc string > are still problematic. The only thing that was done was to comment out > the silly `lower-frame' and `make-frame(-in)-visible' dance and add > a comment saying that that was harmful and silly. (That at least > stopped the frame from being lowered.) The problem is that display-buffer doesn't work as it should. So we should fix display-buffer. Can you try the following: (lexical-let ((f pop-up-frame-function)) (setq pop-up-frame-function (lambda () (let ((win (selected-window))) (unwind-protect (funcall f) (when (window-live-p win) (select-window win) (select-frame-set-input-focus (window-frame win)))))))) If this works, can you try to inline select-frame-set-input-focus and remove each part one by one until you figure out which part is necessary and which part isn't. The difficulty is that select-frame-set-input-focus doesn't do the right thing in my situation: it raises the current frame whereas it shouldn't be doing that. Stefan