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: Sat, 25 Jun 2022 14:29:41 +0300 Message-ID: <835ykpasm2.fsf@gnu.org> References: <46b65e3f-cf3d-a3f2-9a9a-100e58274ff6@jovi.net> <8335gf5er3.fsf@gnu.org> <87leu686z4.fsf@gnus.org> <83sfoe2k0j.fsf@gnu.org> <87zgim6qtt.fsf@gnus.org> <83mtem2dc9.fsf@gnu.org> <87y1y63qmq.fsf@gnus.org> <83h74t3k5u.fsf@gnu.org> <87tu8sx569.fsf@gnus.org> <83v8t6us8t.fsf@gnu.org> <87zgiinptk.fsf@gnus.org> <83mteiufih.fsf@gnu.org> <877d5kojbo.fsf@gnus.org> <83zgigu3e0.fsf@gnu.org> <500e4b9c69f2a90e7cf05b956178d71b@webmail.orcon.net.nz> <835yl3tnv3.fsf@gnu.org> <83iloyo0x7.fsf@gnu.org> <83mte5jukr.fsf@gnu.org> <837d57gbed.fsf@gnu.org> <83o7yicx3p.fsf@gnu.org> <0B5FE52E-BC81-4A05-86F1-91C6AFCB6F7D@gmail.com> <83r13db6hp.fsf@gnu.org> <56F03F59-40AD-48F2-92C8-9858C2423327@gmail.com> <83a6a1awv0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19986"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45898@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 25 13:30:13 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 1o53zQ-00053e-5V for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jun 2022 13:30:12 +0200 Original-Received: from localhost ([::1]:50952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o53zO-0007Z4-KA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jun 2022 07:30:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o53zH-0007Yg-50 for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 07:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50349) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o53zG-0000dc-SM for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 07:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o53zG-0003Ur-Hz for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 07:30: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, 25 Jun 2022 11:30:02 +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.165615659813406 (code B ref 45898); Sat, 25 Jun 2022 11:30:02 +0000 Original-Received: (at 45898) by debbugs.gnu.org; 25 Jun 2022 11:29:58 +0000 Original-Received: from localhost ([127.0.0.1]:44246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o53zB-0003UA-LA for submit@debbugs.gnu.org; Sat, 25 Jun 2022 07:29:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51932) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o53z7-0003Ts-3g for 45898@debbugs.gnu.org; Sat, 25 Jun 2022 07:29:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o53z1-0000aM-4s; Sat, 25 Jun 2022 07:29:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=yb5m8TIzPa+4leW8rVTbSh+S1Z1cziqFg3uYZvrV1FE=; b=ICFqYiK1RgPJVQzkpYe4 vVaa8rWkdXHkB5S/jbsttq9ORrTKgKpxx3kZUGCGEq/ziOJvhtiDMXRlZvmsHccAQpKTlmjOjQu8U cx4SwfUiqzaCOcPfgKBnolRUBJCyFWz25uI1f38hMIXHge+Znd1yBuqdGivM+J6Ys1SqgsaAqdEBf sHzUNEC0NzgD+I10Aydgixg6Ki/m23KqKlije4v3iQns+ZcbPwdiRN7970y8QWv2cm2HqXHSHon9r SIIsWDJT/OFx/PYp5DVSlfApzv3zjg31Io5n4dvlYygkQTM1CND7mXgII1ZxwaB0rlFmI5YEvVohE tk8Da1WzYnQNsA==; Original-Received: from [87.69.77.57] (port=1405 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 1o53yz-00054Z-4z; Sat, 25 Jun 2022 07:29:46 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Sat, 25 Jun 2022 13:10:14 +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:235249 Archived-At: > From: Gerd Möllmann > Date: Sat, 25 Jun 2022 13:10:14 +0200 > Cc: 45898@debbugs.gnu.org > > > You mean, just update_ticks? That's too general, IMO. I'd like > > people to have an idea what that does when they just see the call. > > > > But I'm not good with names. > > I love update_ticks! And I'm good with names, trust me ;-). And I'm volunteering to do the work! Fine with me, have fun. > >> You mean a case, where small numbers of ticks sum up by calling these Lisp functions often enough? > > > > Actually, I meant something even simpler: a Lisp program that calls, > > say, regexp search repeatedly, to accumulate enough ticks that would > > signal an error, thus aborting that Lisp program. > > That's 100% what I also meant. Sorry for not being clear. > > Do you think redisplaying_p would suffice as an indicator? > > That should be true if and only if redisplay_internal is in the call stack. Also, redisplay_internal is a no-op if called recursively. Or better said, both used to be the case. Yes, I know; and it's still the case. Originally, I indeed only looked at redisplaying_p. But then cases with C-n and C-v wouldn't be caught, because these commands, although they call the display code, run without redisplay_internal in the call stack. And very sluggish response from these and similar commands is generally perceived as "redisplay problems". So I wanted to catch them as well, without waiting for redisplay cycle they cause (which by itself may or may not be "too slow" -- just moving the cursor is an optimization there, as you know).