From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 Message-ID: <83mvj0dkhd.fsf@gnu.org> References: <83a8f1f8l0.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1474562814 10561 195.159.176.226 (22 Sep 2016 16:46:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2016 16:46:54 +0000 (UTC) Cc: 24500@debbugs.gnu.org To: Richard Copley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 22 18:46:50 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bn78u-0000Tk-Gh for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Sep 2016 18:46:36 +0200 Original-Received: from localhost ([::1]:53340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn78s-000556-PK for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Sep 2016 12:46:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn5t0-0003sk-LY for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2016 11:26:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn5sw-0002N8-DE for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2016 11:26:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn5sw-0002N0-AU for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2016 11:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bn5sw-000261-79 for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2016 11:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Sep 2016 15:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24500 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24500-submit@debbugs.gnu.org id=B24500.14745579588046 (code B ref 24500); Thu, 22 Sep 2016 15:26:02 +0000 Original-Received: (at 24500) by debbugs.gnu.org; 22 Sep 2016 15:25:58 +0000 Original-Received: from localhost ([127.0.0.1]:60798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bn5ss-00025h-FY for submit@debbugs.gnu.org; Thu, 22 Sep 2016 11:25:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bn5sr-00025V-4I for 24500@debbugs.gnu.org; Thu, 22 Sep 2016 11:25:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn5si-0002HR-T2 for 24500@debbugs.gnu.org; Thu, 22 Sep 2016 11:25:52 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn5si-0002HL-PM; Thu, 22 Sep 2016 11:25:48 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1487 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bn5sg-0004yb-CB; Thu, 22 Sep 2016 11:25:48 -0400 In-reply-to: (message from Richard Copley on Wed, 21 Sep 2016 21:09:46 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:123548 Archived-At: > From: Richard Copley > 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.