all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Richard Copley <rcopley@gmail.com>
Cc: 24500@debbugs.gnu.org
Subject: bug#24500: 25.1.50; Can't other-window from minibuffer if Ediff control panel frame present
Date: Thu, 22 Sep 2016 18:26:06 +0300	[thread overview]
Message-ID: <83mvj0dkhd.fsf@gnu.org> (raw)
In-Reply-To: <CAPM58ojrrjd3vcW7FS9JhcMZK_hCXMBDedr-C21naMJH9YTsJA@mail.gmail.com> (message from Richard Copley on Wed, 21 Sep 2016 21:09:46 +0100)

> From: Richard Copley <rcopley@gmail.com>
> Date: Wed, 21 Sep 2016 21:09:46 +0100
> Cc: 24500@debbugs.gnu.org
> 
> >> C-x b * RET ; create a spare buffer so we can invoke ediff-buffers
> >> M-x ediff-buffers RET RET RET
> >> C-x 5 o ; Activate main frame
> >> M-x     ; Select minibuffer
> >> C-x C-o ; Something not very useful happens
> >>
> >> At this point in the recipe Emacs is in a strange state. The cursor in
> >> the minibuffer is solid but not blinking. There are visual changes in
> >> the Ediff control frame as though the window is selected, but the
> >> Ediff frame isn't actually activated. Typing C-g doesn't exit the
> >> minibuffer (which is still reading the command for M-x). Typing a
> >> self-inserting character does send that character to the minibuffer,
> >> and returns things to normal.
> >
> > Isn't this just the normal way of having input to one frame being
> > redirected to another?
> 
> I don't see how it is normal, so I'm probably missing something. The
> input to the main frame being redirected to the Ediff frame, or vice
> versa?

Vice versa.  The Ediff control frame is a minibuffer-less frame, and
when it is created, it specifies the minibuffer of the main frame as
its minibuffer.

> Why?

That is how Emacs uses frame A for minibuffer input that pertains to
frame B.

> And why did "C-x C-o" put me in that state, be it normal or
> otherwise, rather than selecting one of the windows in the main
> frame?

(You meant "C-x o", not "C-x C-o".)

"C-x o" switches to "some other window in the cyclic ordering of
windows".  It does so by calling next-window, which is called in a way
that doesn't limit it to return windows only on the current frame.  As
you yourself say in the original report:

  If you miss out the "Activate main frame" step, then you can cycle
  through all the windows of both frames [...]

So what happens here is that next-window returns the window on the
Ediff control frame, and Emacs then selects it, and also makes the
control frame the selected frame.  But because the original selected
frame, when you typed "M-x", was the main frame (and we are still
reading from its minibuffer), Emacs switches back to the main frame
right away.  And that's what you see: the single window of the Ediff
control frame becomes the selected window, but its frame doesn't
become the selected frame.

Not sure what, if anything, could or should be done about this.
Perhaps Martin will have some tricks up his sleeves.  It's a corner
use case, regardless.





  reply	other threads:[~2016-09-22 15:26 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-21 17:23 bug#24500: 25.1.50; Can't other-window from minibuffer if Ediff control panel frame present Richard Copley
2016-09-21 17:47 ` Eli Zaretskii
2016-09-21 20:09   ` Richard Copley
2016-09-22 15:26     ` Eli Zaretskii [this message]
2016-09-24 19:04       ` martin rudalics
2016-09-28 23:21         ` Richard Copley
2016-09-30  8:32           ` martin rudalics
2016-09-30 18:13             ` Richard Copley
2016-09-30 18:21               ` Richard Copley
2016-10-01  8:44               ` martin rudalics
2016-10-01 10:30                 ` Richard Copley
2016-10-01 12:29                   ` Richard Copley
2016-10-01 13:09                     ` martin rudalics
2016-10-01 13:08                   ` martin rudalics
2016-10-01 14:54                     ` Richard Copley
2016-10-01 18:50                       ` martin rudalics
2016-10-03 18:32                         ` Richard Copley
2016-10-04  6:49                           ` martin rudalics
2016-10-03 19:35           ` Richard Copley
2016-10-04  6:49             ` martin rudalics
2016-10-08 17:37             ` martin rudalics
2016-10-08 18:28               ` Richard Copley
2016-10-09  7:51                 ` martin rudalics
2016-10-17  8:58                   ` martin rudalics
2016-09-23  6:05 ` Tino Calancha

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

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

  git send-email \
    --in-reply-to=83mvj0dkhd.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=24500@debbugs.gnu.org \
    --cc=rcopley@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.