From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9922: 24.0.91; prompt by y-or-n-p changes tool bar on another frame Date: Sat, 19 Nov 2011 15:57:11 +0200 Message-ID: <83hb20b4g8.fsf@gnu.org> References: <83zkghm33t.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1321711226 21299 80.91.229.12 (19 Nov 2011 14:00:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Nov 2011 14:00:26 +0000 (UTC) To: 9922@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 19 15:00:22 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 1RRlSv-0005nA-5y for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Nov 2011 15:00:21 +0100 Original-Received: from localhost ([::1]:42809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRlSp-000441-ER for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Nov 2011 09:00:15 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRlSc-0003NY-8y for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 09:00:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRlSa-0005Xc-Jq for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 09:00:02 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRlSa-0005XY-H3 for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 09:00:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RRlTa-00065E-Hy for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 09:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Nov 2011 14:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9922 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9922-submit@debbugs.gnu.org id=B9922.132171122923336 (code B ref 9922); Sat, 19 Nov 2011 14:01:02 +0000 Original-Received: (at 9922) by debbugs.gnu.org; 19 Nov 2011 14:00:29 +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 1RRlT3-00064L-1k for submit@debbugs.gnu.org; Sat, 19 Nov 2011 09:00:29 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RRlSz-00064A-FH for 9922@debbugs.gnu.org; Sat, 19 Nov 2011 09:00:27 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LUW00A00UTK8T00@a-mtaout22.012.net.il> for 9922@debbugs.gnu.org; Sat, 19 Nov 2011 15:59:02 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.237.133]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LUW008ARUUBWHJ0@a-mtaout22.012.net.il> for 9922@debbugs.gnu.org; Sat, 19 Nov 2011 15:59:02 +0200 (IST) In-reply-to: <83zkghm33t.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 19 Nov 2011 09:01:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:54060 Archived-At: > Date: Mon, 31 Oct 2011 20:24:06 +0200 > From: Eli Zaretskii > > emacs -Q > C-h i > C-x 5 b RET > > Now switch to the frame that shows the "*info*" buffer and type > > M-: (y-or-n-p "Foo?") RET > > After you hit RET, Emacs prompts in the minibuffer, and the tool bar > on the frame that shows "*scratch*" suddenly shows button > configuration of the Info mode! It returns to its correct > configuration once you exit the minibuffer. First, this is a regression: Emacs 23.3 does not exhibit this behavior. Second, the problem seems to be caused by this fragment from subr.el:read-key: (use-global-map (let ((map (make-sparse-keymap))) ;; Don't hide the menu-bar and tool-bar entries. (define-key map [menu-bar] (lookup-key global-map [menu-bar])) (define-key map [tool-bar] (lookup-key global-map [tool-bar])) map)) This seems as if it actually intends to produce the buggy behavior. Curiously, the same code exists in Emacs 23.3, but the tool bars on the other frames are not affected in Emacs 23.3. I couldn't find the change in Emacs 24 that are responsible for the different behavior.