unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#12030: 24.0.97; y-or-n-p and redirect-frame-focus
@ 2012-07-23  9:35 martin rudalics
  2012-07-23 10:08 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: martin rudalics @ 2012-07-23  9:35 UTC (permalink / raw)
  To: 12030

`yes-or-no-p' eventually winds up calling read_minibuf which does

   if (minibuffer_auto_raise)
     Fraise_frame (mini_frame);
   ...
   if (!EQ (mini_frame, selected_frame))
     Fredirect_frame_focus (selected_frame, mini_frame);

`y-or-n-p' instead does

                     (when minibuffer-auto-raise
		      (raise-frame (window-frame (minibuffer-window))))
		    ...
		    (redirect-frame-focus (window-frame (minibuffer-window)))

which strikes me as incongruent with the former since IIUC the last form
only redirects the minibuffer-window frame's focus to itself.  If this
is not the intended behavior, a possible source of the bug is that the
second argument of `redirect-frame-focus' is not mandatory.  As a
consequence, authors (including me) tend to consider its first argument
reference the frame that shall be focused.

martin





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-25  9:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-23  9:35 bug#12030: 24.0.97; y-or-n-p and redirect-frame-focus martin rudalics
2012-07-23 10:08 ` Stefan Monnier
2012-07-25  9:46   ` martin rudalics

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).