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#45898: 27.1; wedged in redisplay again Date: Thu, 09 Jun 2022 13:45:00 +0300 Message-ID: <83sfoe2k0j.fsf@gnu.org> References: <46b65e3f-cf3d-a3f2-9a9a-100e58274ff6@jovi.net> <87h74wh9x7.fsf@gnus.org> <83bkv47evy.fsf@gnu.org> <87k09rbcmn.fsf@gnus.org> <83a6an5jt3.fsf@gnu.org> <8335gf5er3.fsf@gnu.org> <87leu686z4.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5277"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs-hacker2018@jovi.net, 45898@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 09 15:10:39 2022 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 1nzHvq-0001CO-Ln for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Jun 2022 15:10:38 +0200 Original-Received: from localhost ([::1]:42944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzHvp-000393-IF for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Jun 2022 09:10:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzFfv-00071b-9B for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2022 06:46:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51227) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzFfv-00051U-0S for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2022 06:46:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nzFft-0002NM-Tz for bug-gnu-emacs@gnu.org; Thu, 09 Jun 2022 06:46: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, 09 Jun 2022 10:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45898 X-GNU-PR-Package: emacs Original-Received: via spool by 45898-submit@debbugs.gnu.org id=B45898.16547715139050 (code B ref 45898); Thu, 09 Jun 2022 10:46:01 +0000 Original-Received: (at 45898) by debbugs.gnu.org; 9 Jun 2022 10:45:13 +0000 Original-Received: from localhost ([127.0.0.1]:45124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzFf7-0002Lt-1f for submit@debbugs.gnu.org; Thu, 09 Jun 2022 06:45:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzFf4-0002Ld-Qn for 45898@debbugs.gnu.org; Thu, 09 Jun 2022 06:45:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51804) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzFez-0004hr-Er; Thu, 09 Jun 2022 06:45:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Rwxbg106W0DpYOeAMO2VYgBYH04nNO/y/gd/uCLo1U8=; b=SUYtoFiyFcmx ZdSp4/GmnbmdPLk9fumdN+5a5Egr+mCoOBHfa4TXvS/fZuMgGzyCoN9y2pjenaJCctqYAASpjnfUH 4RGgnPp58yfJ2HlxySr779Rge5uRqB7tS9c6y6d+u84UZDrBSDBUTX/5Uzcu3QqmoHXT/Oxzw1Z7g X0oxSMf7R1pQfmcSXLT1RNK9qGJXefrhcv//O8bu8zfrvMv+6TVtuEE63QFXf10i757/fRoVAXoVM hozuCXAq3th0ISGo+TeHHNwiRvs+B9Wq73NQZQ1V5FpVjg9w1afuEUfsMcERAZNW5I8Wp+UyKq6h4 Duh9BIEFYOFYnEuInWTOvA==; Original-Received: from [87.69.77.57] (port=1226 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 1nzFey-0002j5-Qx; Thu, 09 Jun 2022 06:45:05 -0400 In-Reply-To: <87leu686z4.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 09 Jun 2022 12:30:07 +0200) 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:234047 Archived-At: > From: Lars Ingebrigtsen > Cc: Emacs-hacker2018@jovi.net, 45898@debbugs.gnu.org > Date: Thu, 09 Jun 2022 12:30:07 +0200 > > > As for the C-g idea, I think a better and cleaner idea would be to use > > atimers to detect signs of potentially a very long redisplay cycle, > > and then do...something. Not unlike what we already do with the > > hourglass-cursor feature. > > Ah, yes, that's true -- we already almost have something here via the > hourglass thing. Hm... So we could call something from an atimer... > but do we have a way to (safely) signal to redisplay that it should stop > what it's doing? Atimers just set a flag, and the function is invoked the first time that flag is tested, which is currently at some random time after that, depending on what the code does. So this will need to be somehow improved to make sure we don't delay the check for too long (or maybe it is already "good enough", I don't know). Then there's a problem of determining which window is the problematic one.