unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: 9922@debbugs.gnu.org
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	[thread overview]
Message-ID: <83hb20b4g8.fsf@gnu.org> (raw)
In-Reply-To: <83zkghm33t.fsf@gnu.org>

> Date: Mon, 31 Oct 2011 20:24:06 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> 
>  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.





  reply	other threads:[~2011-11-19 13:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-31 18:24 bug#9922: 24.0.91; prompt by y-or-n-p changes tool bar on another frame Eli Zaretskii
2011-11-19 13:57 ` Eli Zaretskii [this message]
2012-04-26 14:46   ` Chong Yidong
2012-04-26 15:09     ` Eli Zaretskii
2012-04-27  1:01     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83hb20b4g8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=9922@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).