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: Sat, 14 Aug 2021 12:25:43 +0300 Message-ID: <838s14bco8.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="34963"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44448@debbugs.gnu.org To: Amai Kinono Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 14 11:27:11 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 1mEpwc-0008t0-Jm for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Aug 2021 11:27:10 +0200 Original-Received: from localhost ([::1]:60170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEpwb-00047l-Bt for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Aug 2021 05:27:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEpwU-000449-II for bug-gnu-emacs@gnu.org; Sat, 14 Aug 2021 05:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60241) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEpwU-0004y8-Az for bug-gnu-emacs@gnu.org; Sat, 14 Aug 2021 05:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mEpwU-0006y5-6t for bug-gnu-emacs@gnu.org; Sat, 14 Aug 2021 05:27: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: Sat, 14 Aug 2021 09:27:02 +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.162893316626720 (code B ref 44448); Sat, 14 Aug 2021 09:27:02 +0000 Original-Received: (at 44448) by debbugs.gnu.org; 14 Aug 2021 09:26:06 +0000 Original-Received: from localhost ([127.0.0.1]:43554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEpva-0006wu-Ho for submit@debbugs.gnu.org; Sat, 14 Aug 2021 05:26:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEpvY-0006wQ-6o for 44448@debbugs.gnu.org; Sat, 14 Aug 2021 05:26:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46210) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEpvS-0004Bm-8w; Sat, 14 Aug 2021 05:25:59 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3016 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 1mEpvR-0006Ko-DT; Sat, 14 Aug 2021 05:25:58 -0400 In-Reply-To: (message from Amai Kinono on Fri, 13 Aug 2021 17:49:24 +0800) 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:211814 Archived-At: [Please use Reply All when you reply, to keep the bug address on the CC list.] > From: Amai Kinono > Date: Fri, 13 Aug 2021 17:49:24 +0800 > > Thanks for testing! I feel kind of relieved when I know it can be reproduced. > > > 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. > > > As evidence, after this happens, you should be able > > to see this in *Messages*: > > > > Error during redisplay: (mode-line-default-help-echo #) signaled (quit) > > I'm afraid this is not the truth. If you eval > > (setq-default mode-line-format nil) > > before step 6, the problem still happens, and there's no error messages in the *Messages* buffer. Not here, it doesn't. If I set mode-line-format to nil in the buffer that visits paren.el, I cannot reproduce the problem anymore. However, as I wrote in my other message, the :eval form in the mode line cannot be the whole story, because we evaluate these forms in a way that should (and does) catch any errors, including quit. Something else is at work here. P.S. FTR, I use setq, not setq-default, and I also do this before running the experiment (to avoid unrelated triggers for redisplay): M-x blink-cursor-mode RET M-x global-eldoc-mode RET And M-~ after pasting the code which starts the overlays. > When testing with mode-line-format being nil, I noticed that: > > - after I pressed C-x b and I'm in the minibuffer, > - occasionally, when I'm visiting *Messages* or *Buffer list* buffer, > > The overlay that should appear at the bottom of paren.el moves to its beginning. The reason looks like > (point-max) is returning the maximum point in current buffer. I don't know if this fact has anything to do with > the bug, though. I'm not sure either, but your timer functions in general don't switch to the specific buffer, so this could be unrelated.