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#31695: bug-gnu-emacs@gnu.org Date: Mon, 04 Jun 2018 19:29:12 +0300 Message-ID: <83tvqibjmv.fsf@gnu.org> References: <20180603.101706.47071122.enometh@meer.net> <5B13DD66.1080809@gmx.at> <83h8mjddvk.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1528129691 14008 195.159.176.226 (4 Jun 2018 16:28:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2018 16:28:11 +0000 (UTC) Cc: enometh@meer.net, 31695@debbugs.gnu.org To: rudalics@gmx.at Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 04 18:28:06 2018 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 1fPsKz-0003Uq-Hx for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jun 2018 18:28:05 +0200 Original-Received: from localhost ([::1]:40929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPsN6-0005PQ-Nj for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jun 2018 12:30:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPsMw-0005Ng-4c for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 12:30:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPsMt-0003DW-GL for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 12:30:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53869) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPsMt-0003DN-D2 for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 12:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fPsMt-0000Nm-4x for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 12:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jun 2018 16:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31695 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 31695-submit@debbugs.gnu.org id=B31695.15281297561278 (code B ref 31695); Mon, 04 Jun 2018 16:30:03 +0000 Original-Received: (at 31695) by debbugs.gnu.org; 4 Jun 2018 16:29:16 +0000 Original-Received: from localhost ([127.0.0.1]:33533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPsM8-0000KY-6r for submit@debbugs.gnu.org; Mon, 04 Jun 2018 12:29:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPsM6-0000K0-3p for 31695@debbugs.gnu.org; Mon, 04 Jun 2018 12:29:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPsLy-0002gz-2C for 31695@debbugs.gnu.org; Mon, 04 Jun 2018 12:29:08 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPsLx-0002gk-VM; Mon, 04 Jun 2018 12:29:06 -0400 Original-Received: from [176.228.60.248] (port=2268 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fPsLw-0004k6-L6; Mon, 04 Jun 2018 12:29:05 -0400 In-reply-to: <83h8mjddvk.fsf@gnu.org> (message from Eli Zaretskii on Sun, 03 Jun 2018 19:38:23 +0300) 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:146958 Archived-At: > Date: Sun, 03 Jun 2018 19:38:23 +0300 > From: Eli Zaretskii > Cc: enometh@meer.net, 31695@debbugs.gnu.org > > > Date: Sun, 03 Jun 2018 14:21:58 +0200 > > From: martin rudalics > > > > This works correctly here in Emacs 23.4.1 and is broken in 24.5.50.1. > > It became broken in Emacs 24.3, according to my testing. > > > If Eli doesn't come up with a clue, could someone with a fast machine > > please try to bisect this. > > Right. > > If no one comes up with the culprit, I will look into this tomorrow. I took a look, but as expected, got lost among twisted little passages, all alike. It looks like the problem might be with the insane dance we perform when entering recursive edit in the minibuffer, where we save and restore the window configuration of the selected frame, and also of the frame that serves as the minibuffer frame for the selected frame. Another potential culprit is select_window_1, which added the call to set_point_from_marker at its end, something that wasn't there in Emacs 24.2. In any case, the immediate cause of the problem is that when redisplay is entered the offending window is selected and has its point set at BOB. So redisplays redraws it accordingly. Btw, note that if you modify the recipe to do it from frame $a, the problem doesn't happen. Which seems to imply that this is somehow related to the order in which redisplay redraws frames. I think. Let me know if I can help more.