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: Wed, 15 Jun 2011 15:06:26 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308175658 32102 80.91.229.12 (15 Jun 2011 22:07:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2011 22:07:38 +0000 (UTC) To: 8876@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 16 00:07:34 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QWyFJ-0004Jl-0J for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Jun 2011 00:07:33 +0200 Original-Received: from localhost ([::1]:39389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWyFI-00049z-0F for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jun 2011 18:07:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWyEr-00049B-8e for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 18:07:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWyEo-0002iP-He for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 18:07:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWyEo-0002iG-9G for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 18:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QWyEn-0007Kt-Rp; Wed, 15 Jun 2011 18:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jun 2011 22:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8876 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.130817560928177 (code B ref -1); Wed, 15 Jun 2011 22:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Jun 2011 22:06:49 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QWyEa-0007KP-G5 for submit@debbugs.gnu.org; Wed, 15 Jun 2011 18:06:49 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QWyEX-0007KD-Ql for submit@debbugs.gnu.org; Wed, 15 Jun 2011 18:06:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWyER-0002em-7W for submit@debbugs.gnu.org; Wed, 15 Jun 2011 18:06:40 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:39850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWyEQ-0002eg-SO for submit@debbugs.gnu.org; Wed, 15 Jun 2011 18:06:38 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWyEP-00042A-5J for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 18:06:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWyEN-0002eC-BN for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 18:06:36 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:65518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWyEM-0002dz-JI for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2011 18:06:35 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p5FM6UhZ012118 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 15 Jun 2011 22:06:33 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p5FM6UVF015227 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 15 Jun 2011 22:06:30 GMT Original-Received: from abhmt017.oracle.com (abhmt017.oracle.com [141.146.116.26]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p5FM6P2m031398 for ; Wed, 15 Jun 2011 17:06:25 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 15 Jun 2011 15:06:24 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcwrqHh7NwCxGopCTE+34zhr1qGmnA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4DF92CE9.00F6:SCFMA922111,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 15 Jun 2011 18:07:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:47214 Archived-At: Starting with Emacs 23, you changed `menu-bar-update-buffers' so that it no longer uses `menu-bar-select-buffer'. (That command is now used only in msb.el.) Instead of `menu-bar-select-buffer', `menu-bar-update-buffers' now uses this: `(lambda () (interactive) (switch-to-buffer ,(cdr pair)) Before Emacs 23 it was trivial to make menu choice use a separate frame: trivially redefine `menu-bar-select-buffer' (or advise it, I suppose). Here, for instance, is a redefinition that covers all versions of Emacs: (defun menu-bar-select-buffer () "Switch to `last-command-event' buffer in other frame." (interactive) (if (fboundp 'pop-to-buffer-other-frame) ; Emacs 24+ (pop-to-buffer-other-frame last-command-event) (switch-to-buffer-other-frame last-command-event))) But that is useless now, since `menu-bar-select-buffer' is no longer called. Dunno what the problem was with using `last-command-event', which caused you to switch to the lambda code above. Wouldn't `menu-bar-select-buffer' work just as well? What to do now, to make menu selection use another frame? Copy and modify trivially the long `menu-bar-update-buffers' definition, either redefining it or (preferably) replacing it on `menu-bar-update-hook'? Do you have another suggestion? It was so simple and flexible before; it seems so complex and monolithic now. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-06-13 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.5) --no-opt --cflags -Ic:/build/include'