From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#44448: Fwd: bug#44448: Date: Thu, 12 Aug 2021 17:07:06 +0300 Message-ID: <83mtpmdaet.fsf@gnu.org> References: <83y298dx56.fsf@gnu.org> <83wnoqde8d.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16763"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44448@debbugs.gnu.org To: amaikinono@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 12 16:08:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mEBNV-00049F-H0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Aug 2021 16:08:13 +0200 Original-Received: from localhost ([::1]:48582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEBNU-00074C-8R for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Aug 2021 10:08:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEBNK-000741-5c for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 10:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56240) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEBNJ-0004d4-QB for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 10:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mEBNJ-0002p1-Lj for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 10:08:01 -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, 12 Aug 2021 14:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44448 X-GNU-PR-Package: emacs Original-Received: via spool by 44448-submit@debbugs.gnu.org id=B44448.162877725010805 (code B ref 44448); Thu, 12 Aug 2021 14:08:01 +0000 Original-Received: (at 44448) by debbugs.gnu.org; 12 Aug 2021 14:07:30 +0000 Original-Received: from localhost ([127.0.0.1]:39553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEBMo-0002oD-DR for submit@debbugs.gnu.org; Thu, 12 Aug 2021 10:07:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEBMm-0002ny-Ao for 44448@debbugs.gnu.org; Thu, 12 Aug 2021 10:07:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38608) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEBMh-0004Lz-2K; Thu, 12 Aug 2021 10:07:23 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2458 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEBMg-0006NM-MJ; Thu, 12 Aug 2021 10:07:23 -0400 In-Reply-To: <83wnoqde8d.fsf@gnu.org> (message from Eli Zaretskii on Thu, 12 Aug 2021 15:44:34 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211678 Archived-At: > Date: Thu, 12 Aug 2021 15:44:34 +0300 > From: Eli Zaretskii > Cc: 44448@debbugs.gnu.org > > Thanks. I see the cause of it: it's the :eval forms that we execute > when we redisplay the mode line, as part of redisplaying a window. > When more than one window displays the same buffer at different buffer > positions, when Emacs redisplays a non-selected window, it temporarily > moves point to the place where it is displayed in that non-selected > window. If C-g is processed while those :eval forms run, with the > buffer's point temporarily moved, you will see point in the selected > window "inherit" the position of point from the other window showing > the same buffer. As evidence, after this happens, you should be able > to see this in *Messages*: > > Error during redisplay: (mode-line-default-help-echo #) signaled (quit) Actually, that cannot be the whole story. Because evaluating the :eval forms in the mode line arranges for catching the errors (and the above text in *Messages* is the evidence that it works here), and so we should have still run redisplay_window to completion after that, which includes restoring the buffer's point to its original value. Hmm...