From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: RE: display-buffer-other-frame - useful? doc string? Date: Mon, 7 Apr 2008 09:52:08 -0700 Message-ID: <000501c898cf$b7b62940$c2b22382@us.oracle.com> References: <002401c8820f$7d6042c0$0600a8c0@us.oracle.com><000001c8977b$146abc10$0200a8c0@us.oracle.com><000001c897bb$26e5ebe0$0200a8c0@us.oracle.com><001901c8984d$5a62fe80$0200a8c0@us.oracle.com> <000301c898ca$704e8930$c2b22382@us.oracle.com> <47FA4F5B.1050708@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1207587197 648 80.91.229.12 (7 Apr 2008 16:53:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Apr 2008 16:53:17 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 'Stefan Monnier' To: "'Lennart Borgman \(gmail\)'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 07 18:53:49 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 1JiubF-0002XC-19 for ged-emacs-devel@m.gmane.org; Mon, 07 Apr 2008 18:53:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jiuab-0004k3-RD for ged-emacs-devel@m.gmane.org; Mon, 07 Apr 2008 12:53:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JiuaT-0004gq-Hf for emacs-devel@gnu.org; Mon, 07 Apr 2008 12:52:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JiuaR-0004eV-Mx for emacs-devel@gnu.org; Mon, 07 Apr 2008 12:52:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JiuaR-0004dz-Ef for emacs-devel@gnu.org; Mon, 07 Apr 2008 12:52:51 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JiuaP-00038X-OA for emacs-devel@gnu.org; Mon, 07 Apr 2008 12:52:50 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JiuaO-0002lq-87 for emacs-pretest-bug@gnu.org; Mon, 07 Apr 2008 12:52:48 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JiuaH-00034Q-5N for emacs-pretest-bug@gnu.org; Mon, 07 Apr 2008 12:52:47 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JiuaF-000338-6X for emacs-pretest-bug@gnu.org; Mon, 07 Apr 2008 12:52:40 -0400 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m37GqYgv016490; Mon, 7 Apr 2008 11:52:35 -0500 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m377v8ql007210; Mon, 7 Apr 2008 10:52:34 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3640988911207587128; Mon, 07 Apr 2008 09:52:08 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 07 Apr 2008 09:52:08 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <47FA4F5B.1050708@gmail.com> Thread-Index: AciYzq1nqFP2vQeUTzCO6s4gndAycwAAIn1g X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:94594 gmane.emacs.pretest.bugs:21925 Archived-At: > Can you give us some code to test? Stefan's code. Load cl.el, then eval this: (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)))))))) Then try `C-x 5 C-o' (`display-buffer-other-frame'). If the code works, it should make `display-buffer' (and so `display-buffer-other-frame') use the redefined `pop-up-frame-function', which should display the buffer without selecting it. What I see instead is that the displayed buffer gets selected - its frame gets the focus, which is not the intention.