From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#24803: Redirection problem with separate minibuffer frame Date: Sat, 29 Oct 2016 18:54:07 -0400 Message-ID: References: <58123AD6.4070703@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1477781715 13935 195.159.176.226 (29 Oct 2016 22:55:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 29 Oct 2016 22:55:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) Cc: 24803@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 30 00:55:10 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 1c0cWq-0002pq-2z for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Oct 2016 00:55:08 +0200 Original-Received: from localhost ([::1]:56305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c0cWs-00024U-M4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Oct 2016 18:55:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c0cWn-000239-Kw for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2016 18:55:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c0cWk-0000Re-UP for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2016 18:55:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49705) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c0cWk-0000RY-Qf for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2016 18:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c0cWk-0006WZ-Ja for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2016 18:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Oct 2016 22:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24803 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24803-submit@debbugs.gnu.org id=B24803.147778165225019 (code B ref 24803); Sat, 29 Oct 2016 22:55:02 +0000 Original-Received: (at 24803) by debbugs.gnu.org; 29 Oct 2016 22:54:12 +0000 Original-Received: from localhost ([127.0.0.1]:36871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c0cVw-0006VT-Bf for submit@debbugs.gnu.org; Sat, 29 Oct 2016 18:54:12 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:42441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c0cVu-0006VL-Eo for 24803@debbugs.gnu.org; Sat, 29 Oct 2016 18:54:11 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id u9TMs8UN012269; Sat, 29 Oct 2016 18:54:08 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id A85C56622D; Sat, 29 Oct 2016 18:54:07 -0400 (EDT) In-Reply-To: <58123AD6.4070703@gmx.at> (martin rudalics's message of "Thu, 27 Oct 2016 19:35:18 +0200") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV5842=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5842> : inlines <5388> : streams <1718205> : uri <2317336> 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:125130 Archived-At: > Please revert the frame.c change so we can be sure which of the two is > the real culprit. Reverting the frame.c change seems to fix the problem. BTW I also just noticed that the bogus (the one I get at the end of my recipe) focus is "mutual": - when the mouse points at the minibuffer window, the focus is in the *scratch* buffer. - when the mouse points in the *scratch* window, the focus is in the minibuffer! > Works as intended on both Windows XP and a GTK+ build with XFCE on > Debian. I use focus-follows-mouse plus auto-raise-frame though the > minibuffer does _not_ get autoraised when moving the mouse there. > Actually, that's what I would call a misbehavior here ;-) I don't use auto-raise of any kind. But yes, it's probably dependent on some aspect of the window manager event sequences. > Hmm... This seems to indicate that I do not remove the redirection when > exiting the minibuffer. Could you try to augment in read_minibuf_unwind > > if (minibuf_level == 0) > resize_mini_window (XWINDOW (window), 0); > > to something that for each frame redirects focus to itself? Still haven't found the time to try this, but I just want to mention that until recently, the focus redirection was usually nil rather than "redirected to itself". I'm not sure if there should be a difference between these two states, but I have the suspicion that not all the C code handles those two states in the same way (then again, last time I looked at the redirection code, I concluded that I just don't understand how it's supposed to work, so maybe it's just my misunderstanding). Stefan