From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#8876: 24.0.50; making `menu-bar-update-buffers' use another frame Date: Mon, 17 Jun 2013 07:34:45 -0700 (PDT) Message-ID: <88e3bec9-73e5-49d9-8afe-64b237c09f60@default> References: <> <> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1371479721 21068 80.91.229.3 (17 Jun 2013 14:35:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Jun 2013 14:35:21 +0000 (UTC) To: 8876-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 17 16:35:19 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UoaWb-0005nP-Np for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jun 2013 16:35:17 +0200 Original-Received: from localhost ([::1]:52362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoaWb-0007yo-BJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jun 2013 10:35:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoaWS-0007kU-EA for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2013 10:35:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoaWN-0003nt-MU for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2013 10:35:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoaWN-0003n4-Jd for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2013 10:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UoaWM-00018P-J7 for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2013 10:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jun 2013 14:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8876 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8876-done@debbugs.gnu.org id=D8876.13714796964331 (code D ref 8876); Mon, 17 Jun 2013 14:35:02 +0000 Original-Received: (at 8876-done) by debbugs.gnu.org; 17 Jun 2013 14:34:56 +0000 Original-Received: from localhost ([127.0.0.1]:50755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoaWF-00017m-2Z for submit@debbugs.gnu.org; Mon, 17 Jun 2013 10:34:55 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:39855) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoaWD-00017J-7Q for 8876-done@debbugs.gnu.org; Mon, 17 Jun 2013 10:34:53 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r5HEYiAx010438 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <8876-done@debbugs.gnu.org>; Mon, 17 Jun 2013 14:34:44 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5HEYkJa023725 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <8876-done@debbugs.gnu.org>; Mon, 17 Jun 2013 14:34:46 GMT Original-Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5HEYkZ7023712 for <8876-done@debbugs.gnu.org>; Mon, 17 Jun 2013 14:34:46 GMT In-Reply-To: <> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:75244 Archived-At: Sending again, since the bug was archived (apparently replying to the thread sends your reply to /dev/null if a bug has been archived - quite a feature!). -------------------------------------------------------- > > Attached. Changelog entry: > Thanks, installed, Well, that only took things so far. At the time I did that, Martin had defined `pop-to-buffer-other-frame' in his version of window.el, which I was using as a fix for another bug (since fixed). That code never made it into window.el, however. So I guess it is not so easy now to assign `pop-to-buffer-other-frame' to `menu-bar-select-buffer-function', i.e., to make it pop to the buffer in another frame. This was Martin's definition, at the time: (defsubst pop-to-buffer-other-frame (&optional buffer-or-name norecord label) "Pop to buffer specified by BUFFER-OR-NAME on another frame. The selected frame will be used only if there's no other choice. Optional arguments BUFFER-OR-NAME, NORECORD and LABEL are as for `pop-to-buffer'." (interactive "BPop to buffer on another frame:\nP") (pop-to-buffer buffer-or-name 'other-frame norecord label)) (I would not use a defsubst.) But that is not compatible with the latest `pop-to-buffer'. And when I look at the doc for `pop-to-buffer' I keel over. It tells me I can use an ACTION argument (as Martin did here, with value `other-frame'). But it sends me off to the doc for `display-buffer', whose description of parameter ACTION is incomprehensible to me. WAY too complicated. Can you please tell me what (simple) ACTION argument to pass to `pop-to-buffer' to get it to use another frame? The doc does not make it sound like simply `other-frame' will suffice. ;-) This is the function I'm using so far, with `pop-up-frames': (lambda (buffer &optional other-window norecord) (interactive "BPop to buffer on another frame:\nP") (let ((pop-up-frames t)) (pop-to-buffer buffer other-window norecord))) Is there a different simple way to do this now? Hope so. Thx.