From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#24500: 25.1.50; Can't other-window from minibuffer if Ediff control panel frame present Date: Sat, 1 Oct 2016 11:30:06 +0100 Message-ID: References: <83a8f1f8l0.fsf@gnu.org> <83mvj0dkhd.fsf@gnu.org> <57E6CE51.1040600@gmx.at> <57EE232E.4090301@gmx.at> <57EF7776.80703@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1475318632 22840 195.159.176.226 (1 Oct 2016 10:43:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Oct 2016 10:43:52 +0000 (UTC) Cc: 24500@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 01 12:43:48 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 1bqHlO-0002v3-FR for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Oct 2016 12:43:26 +0200 Original-Received: from localhost ([::1]:55126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqHlN-0002fd-07 for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Oct 2016 06:43:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqHZS-0001Kz-NN for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 06:31:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqHZO-0002Px-E1 for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 06:31:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqHZO-0002Pr-9X for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 06:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bqHZO-0005EU-4E for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 06:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Oct 2016 10:31: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.147531784420087 (code B ref 24500); Sat, 01 Oct 2016 10:31:02 +0000 Original-Received: (at 24500) by debbugs.gnu.org; 1 Oct 2016 10:30:44 +0000 Original-Received: from localhost ([127.0.0.1]:40319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqHZ6-0005Dv-3R for submit@debbugs.gnu.org; Sat, 01 Oct 2016 06:30:44 -0400 Original-Received: from mail-vk0-f53.google.com ([209.85.213.53]:35041) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqHZ4-0005Dh-8D for 24500@debbugs.gnu.org; Sat, 01 Oct 2016 06:30:42 -0400 Original-Received: by mail-vk0-f53.google.com with SMTP id 192so124413058vkl.2 for <24500@debbugs.gnu.org>; Sat, 01 Oct 2016 03:30:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YkdNrWIY1MeG2cU25CHkTJmHa/1byUV69M8vZZhYAZ0=; b=0C3FtrPInEua+ydr1GCFwmgCnNVvEjNYLC6FtxlGaCzUsjc81op59EdLEvVv6ExQB1 dkScpB6b8x4s7yB9NeSTfPFgzbuLZMH4zqHiOqjJ2L9FPsn3kXgV2I5CCfVNe/j6BdP9 GBe22SJdYmFPTbEJmOkdJWkh8+PUMx0GbbxuZItpELR0NUfLGbvAXvkVsTikWhGwsikd PZOBPiEUIx6D7k7+eJQMg5x6Ei3bMqihcU3AOeheue4/yes58Z2DAkVAEqPEtAlOsair bM2X2NEJXolXxRnlP7bmR0LLWoWGJl/tnmnNSTEd5oJ3LNKBiM70/wG/lH7/sReTatpD 4u7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YkdNrWIY1MeG2cU25CHkTJmHa/1byUV69M8vZZhYAZ0=; b=TEX0Np0+uwWlu8gTw0OJ/aZQCT/L3qLqZyNV3dtjfOpmEDIPKS9HryXLBefccK/p38 o9uM2HjZQTIW0Rx/j77hZd8L5oNLISWFtpNv0VYbacdmbl9yDHEtBCTcOlw5222Ig5u0 hkYJfr7ceuqaUrUlu2E2Jj0yCEy9+Sg6EAkCOfrjKKvo15D6tb3+RN0vDvEiiFWM7DBW u/UXtV1PAjcGGX2C2YdW3xUlRsEpDgz6GW3pSO7MHPvrFJKdF8VPaIaFdNwwzzLtT/L7 zLwrHXR1bjErtyjrIPQXz9IJZ0G++MI+ZgrObQ+JrP5eD/J7/JV/XsYcyveHnyde6M8T QaCg== X-Gm-Message-State: AA6/9RmK+zvigeJHsqJiWW2a7WIvp3Wx74uBTeODnYKeupQ1u5lCgDihoSrqScUF6TifpoI7I3mgAEqJ6lkF2w== X-Received: by 10.31.109.195 with SMTP id i186mr8529988vkc.105.1475317836636; Sat, 01 Oct 2016 03:30:36 -0700 (PDT) Original-Received: by 10.159.40.1 with HTTP; Sat, 1 Oct 2016 03:30:06 -0700 (PDT) In-Reply-To: <57EF7776.80703@gmx.at> 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:123836 Archived-At: On 1 October 2016 at 09:44, martin rudalics wrote: >>> Why do you think so? The selected frame is frame 1 ever since C-x o >>> selected it (and it did so twice in a row). >> >> OK, then I now realize I have no idea what "selected frame" means. > > Did you read section "28.10 Input Focus" of the Elisp manual: Yes. > Is there > anything in your scenario that contradicts what has been written there? I don't think so. >> The fact I was attempting to express is that the activated window >> at the window-manager level is frame 2. > > With "activated window at the window-manager level" you mean the window > that has input focus and has its title bar painted differently from > other windows but is not necessarily the topmost window in the Z-order? > That window is here the one showing frame 1 after you switched to it via > C-x o. It's the one showing frame 2, as I said. > Note that there is only one visible difference between C-x 5 o and C-x o > in your scenario: The window selected after C-x 5 o must be on the other > frame. Here, after typing M-x in *scratch* in the recipe: * if I type C-x o the activated window does not change; * if I type C-x 5 o the activated window does change. Is that the visible difference you mean? > The window selected after C-x o can be on the same or the other > frame and depends on the cyclic ordering of windows. In either case the > "The selected window always resides on the selected frame." invariant is > preserved. > There is one Emacs internal difference: While focus is "redirected", the > window for which this happens still gets the selected window's mode-line > appearance. As a rule, that behavior is always used during minibuffer > input, probably because it would be distracting to change highlighting > after typing M-x. But keep in mind that the window initially selected > during minibuffer input is the minibuffer window and not that with the > highlighted mode-line - regardless whether the minibuffer window is on > the same frame or another one. > >> >> I'm not sure I understand what you mean here. Do you mean that C-x 5 o >> >> after the C-g does not select window2? >> > >> > I'd better assume that I don't know what "select window2" means either. >> > >> > I mean that the window with the solid flashing cursor where text is >> > inserted >> > when you type characters is window2, >> >> Not window2, sorry. Rather, it's the window displaying *scratch* on frame >> 1. > > But what's wrong with that? After all you _did_ use C-x o to select > that window. It's not wrong until you type Alt-Tab. >> > and that can't be changed by >> > typing Alt-Tab > > Do you mean that on frame 1 you cannot use Alt-Tab to switch to frame 2? Possibly. Typing Alt-Tab several times switches the window-manager's activation between frame 1 and frame 2 (and other windows that may be present if you hold Alt and type Tab more than once). I can switch activation between the two Emacs windows and any other windows as much as I like, as evidenced by the title-bar painting style. But no amount of typing Alt-Tab changes which Emacs window contains the solid flashing cursor where text is inserted when I type characters. >> (which on this Windows system is not passed to Emacs but >> > activates a different window), > > Which one? Whichever one you want. >> nor by clicking on the non-client area of frame >> > 1 > > But you already are in frame 1. What should that click accomplish? Firstly, no, I'm in frame 2. Secondly, I'm saying that any amount of switching between windows, either using Alt-Tab, or by clicking on title bars, makes no difference to the window where text is inserted. >> In fact I hadn't tried C-x 5 o. That does fix things. > > Anything doing C-x o repeatedly wouldn't fix? Yes. >>>> but clicking inside a window on frame 2 does remove >>>> the redirection and get things back to normal. >> >>> What was abnormal before? >> >> I have no idea what's normal and what isn't any more :) >> >> I had expected activating frame 2 (using the window manager) to let me >> type characters into window2. > > Here at any moment I can use Alt-Tab or the mouse to select any of the > three windows involved in your scenario and continue typing text there. > If this doesn't work on your system please tell me precisely where it > fails. I have tried to do that. Thanks.