From unknown Sat Sep 13 13:15:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12937: 24.2; Fontification performed in 'jit-lock-defer-time' in any case (don't wait while Emacs become really idle). Resent-From: Oleksandr Gavenko Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Nov 2012 20:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12937 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 12937@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13533586646223 (code B ref -1); Mon, 19 Nov 2012 20:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Nov 2012 20:57:44 +0000 Received: from localhost ([127.0.0.1]:55612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TaYPY-0001cJ-3v for submit@debbugs.gnu.org; Mon, 19 Nov 2012 15:57:44 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33260) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TaYPV-0001cC-LA for submit@debbugs.gnu.org; Mon, 19 Nov 2012 15:57:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaYOP-0006T6-AB for submit@debbugs.gnu.org; Mon, 19 Nov 2012 15:56:36 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:36179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaYOP-0006T0-6i for submit@debbugs.gnu.org; Mon, 19 Nov 2012 15:56:33 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaYOO-0006jq-7h for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2012 15:56:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaYON-0006SU-4L for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2012 15:56:32 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:64997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaYOM-0006SK-U7 for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2012 15:56:31 -0500 Received: by mail-ee0-f41.google.com with SMTP id d41so3631574eek.0 for ; Mon, 19 Nov 2012 12:56:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=xIxaDfDWlFBCmagdjS/cFQldvNGT4Bske546gO1CbZE=; b=aA/yxM+9h1GKRr6PuTtSDUsRlxjz3e6lsWq+RTZbKQDNjOZamJ75GsUgQUtdhvoYZL 3dOO1sDBG88SS/EqN30q+fPJ15pUVzDQ4OI4TjTk+kJi8CCQL2sajxsfypXKvrdVD+Is AxQeZehDOSQdMtU1AxqiRWBIq504Fh44wYWVIEBRrJuTXvUwLfA1yhqkD+jhlk2q9/Qo 9KKn7mdao4f2pLoNOSA+0V+THe2uOemnsX7qKv63e6iU/I3izOhIVsSXG80P/UKftOQC GpWSXoxJs7C8kRra0ppHaeDv5sHlV0Sl21B3s0o+LJ1SqPa29NN9J1X9cgnrbNuHvrOV 4y0w== Received: by 10.14.199.134 with SMTP id x6mr27564618een.31.1353358590065; Mon, 19 Nov 2012 12:56:30 -0800 (PST) Received: from desktop ([37.229.16.202]) by mx.google.com with ESMTPS id g47sm26312200eeo.6.2012.11.19.12.56.27 (version=SSLv3 cipher=OTHER); Mon, 19 Nov 2012 12:56:28 -0800 (PST) From: Oleksandr Gavenko Date: Mon, 19 Nov 2012 22:56:26 +0200 Message-ID: <87obitia6d.fsf@gavenkoa.example.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) I open (a very long .c file): emacs-bzr/trunk/src/coding.c and hold DOWN key. Text in buffer scrolls up but with jerks (random stops of scrolling for a little time) due to fontification actions. >From 'jit-lock-defer-time' docs: Idle time after which deferred fontification should take place. If nil, fontification is not deferred. I would try to workaround jerks with: (setq jit-lock-defer-time 0.01) and with same negative effect by (see below): (setq jit-lock-defer-time 3.0) When I hold DOWN key text scrolls up with jerks again! Because fontification performed again. I expect that when I *hold* key Emacs in not idle (it get user input and redisplay text!!) so don't understand why fontification take place. May be I misunderstand idling concept in Emacs and should read manuals deeper... Also note that fixing CC-mode is not a solution as there are many possible external modes that can be useful but with slow fontification. So it is good to have 'jit-lock-defer-time' behaviour that allow trick with defer fontification. I know some peoples use workflow when they use scroll-bars for very fast moving around a file (to get brief look of file content). I prefer use PageUp/PageDown keys to perform this task. In GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-09-09 on trouble, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11204000 -- Best regards! From unknown Sat Sep 13 13:15:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12937: 24.2; Fontification performed in 'jit-lock-defer-time' in any case (don't wait while Emacs become really idle). Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Nov 2012 21:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12937 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Oleksandr Gavenko Cc: 12937@debbugs.gnu.org Received: via spool by 12937-submit@debbugs.gnu.org id=B12937.13533606239178 (code B ref 12937); Mon, 19 Nov 2012 21:31:02 +0000 Received: (at 12937) by debbugs.gnu.org; 19 Nov 2012 21:30:23 +0000 Received: from localhost ([127.0.0.1]:55661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TaYv9-0002Nz-7U for submit@debbugs.gnu.org; Mon, 19 Nov 2012 16:30:23 -0500 Received: from relais.videotron.ca ([24.201.245.36]:53316) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TaYv6-0002Nr-W4 for 12937@debbugs.gnu.org; Mon, 19 Nov 2012 16:30:21 -0500 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from ceviche.home ([24.201.208.110]) by VL-VM-MR001.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0MDR0076W7OERPB0@VL-VM-MR001.ip.videotron.ca> for 12937@debbugs.gnu.org; Mon, 19 Nov 2012 16:29:03 -0500 (EST) Received: by ceviche.home (Postfix, from userid 20848) id 31009660FF; Mon, 19 Nov 2012 16:29:02 -0500 (EST) From: Stefan Monnier Message-id: References: <87obitia6d.fsf@gavenkoa.example.com> Date: Mon, 19 Nov 2012 16:29:02 -0500 In-reply-to: <87obitia6d.fsf@gavenkoa.example.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > I would try to workaround jerks with: > (setq jit-lock-defer-time 0.01) > and with same negative effect by (see below): > (setq jit-lock-defer-time 3.0) I don't see that. I'm not sure how you tried, it but I did [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [24.201.245.36 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] 0.0 T_HDRS_LCASE Odd capitalization of message header 0.0 T_MANY_HDRS_LCASE Odd capitalization of multiple message headers X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > I would try to workaround jerks with: > (setq jit-lock-defer-time 0.01) > and with same negative effect by (see below): > (setq jit-lock-defer-time 3.0) I don't see that. I'm not sure how you tried, it but I did [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [24.201.245.36 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] > I would try to workaround jerks with: > (setq jit-lock-defer-time 0.01) > and with same negative effect by (see below): > (setq jit-lock-defer-time 3.0) I don't see that. I'm not sure how you tried, it but I did src/emacs -Q --eval '(setq jit-lock-defer-time 0.01)' src/xdisp.c and scrolling with page-down indeed is jerky and I see that the buffer is getting fontified (at least occasionally). But if I try again with src/emacs -Q --eval '(setq jit-lock-defer-time 0.1)' src/xdisp.c then the scrolling is fast&smooth and it only gets fontified when I stop scrolling. I suspect that fontification takes place in the 0.01s case because redisplay itself takes more than 0.01s, so after redisplay we check timers and see that we've been idle for more than 0.01s (and there's no input yet because my repeat rate is 30Hz). BTW, with 0.01s the behavior is particularly poor because the redisplay is even slower than without it: we first do a redisplay without fontification, and then we fontify and have to redo a redisplay, so the first redisplay is mostly wasted work. > Also note that fixing CC-mode is not a solution as there are many possible > external modes that can be useful but with slow fontification. Fixing cc-mode is not a general solution, indeed, but it should also be done. Stefan From unknown Sat Sep 13 13:15:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12937: 24.2; Fontification performed in 'jit-lock-defer-time' in any case (don't wait while Emacs become really idle). Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Nov 2012 04:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12937 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Oleksandr Gavenko Cc: 12937@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 12937-submit@debbugs.gnu.org id=B12937.135338410313692 (code B ref 12937); Tue, 20 Nov 2012 04:02:02 +0000 Received: (at 12937) by debbugs.gnu.org; 20 Nov 2012 04:01:43 +0000 Received: from localhost ([127.0.0.1]:56067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Taf1r-0003Yn-7z for submit@debbugs.gnu.org; Mon, 19 Nov 2012 23:01:43 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:56280) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Taf1p-0003Yg-AG for 12937@debbugs.gnu.org; Mon, 19 Nov 2012 23:01:41 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MDR00L00PSR2700@a-mtaout20.012.net.il> for 12937@debbugs.gnu.org; Tue, 20 Nov 2012 06:00:33 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MDR00KC2PSXE1D0@a-mtaout20.012.net.il>; Tue, 20 Nov 2012 06:00:33 +0200 (IST) Date: Tue, 20 Nov 2012 06:00:12 +0200 From: Eli Zaretskii In-reply-to: <87obitia6d.fsf@gavenkoa.example.com> X-012-Sender: halo1@inter.net.il Message-id: <83y5hwx6sz.fsf@gnu.org> References: <87obitia6d.fsf@gavenkoa.example.com> X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Oleksandr Gavenko > Date: Mon, 19 Nov 2012 22:56:26 +0200 > > I open (a very long .c file): > > emacs-bzr/trunk/src/coding.c > > and hold DOWN key. Text in buffer scrolls up but with jerks (random stops of > scrolling for a little time) due to fontification actions. > > >From 'jit-lock-defer-time' docs: > > Idle time after which deferred fontification should take place. > If nil, fontification is not deferred. > > I would try to workaround jerks with: > > (setq jit-lock-defer-time 0.01) > > and with same negative effect by (see below): > > (setq jit-lock-defer-time 3.0) > > When I hold DOWN key text scrolls up with jerks again! Because fontification > performed again. > > I expect that when I *hold* key Emacs in not idle (it get user input and > redisplay text!!) [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Oleksandr Gavenko > Date: Mon, 19 Nov 2012 22:56:26 +0200 > > I open (a very long .c file): > > emacs-bzr/trunk/src/coding.c > > and hold DOWN key. Text in buffer scrolls up but with jerks (random stops of > scrolling for a little time) due to fontification actions. > > >From 'jit-lock-defer-time' docs: > > Idle time after which deferred fontification should take place. > If nil, fontification is not deferred. > > I would try to workaround jerks with: > > (setq jit-lock-defer-time 0.01) > > and with same negative effect by (see below): > > (setq jit-lock-defer-time 3.0) > > When I hold DOWN key text scrolls up with jerks again! Because fontification > performed again. > > I expect that when I *hold* key Emacs in not idle (it get user input and > redisplay text!!) [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] > From: Oleksandr Gavenko > Date: Mon, 19 Nov 2012 22:56:26 +0200 > > I open (a very long .c file): > > emacs-bzr/trunk/src/coding.c > > and hold DOWN key. Text in buffer scrolls up but with jerks (random stops of > scrolling for a little time) due to fontification actions. > > >From 'jit-lock-defer-time' docs: > > Idle time after which deferred fontification should take place. > If nil, fontification is not deferred. > > I would try to workaround jerks with: > > (setq jit-lock-defer-time 0.01) > > and with same negative effect by (see below): > > (setq jit-lock-defer-time 3.0) > > When I hold DOWN key text scrolls up with jerks again! Because fontification > performed again. > > I expect that when I *hold* key Emacs in not idle (it get user input and > redisplay text!!) It depends on the auto-repeat rate of your keyboard and the speed of your CPU. With some combinations of those, I won't be surprised to learn that Emacs has some idle time between auto-repeated keystrokes. From unknown Sat Sep 13 13:15:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12937: 24.2; Fontification performed in 'jit-lock-defer-time' in any case (don't wait while Emacs become really idle). Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Oct 2019 22:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12937 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 12937@debbugs.gnu.org, Oleksandr Gavenko Received: via spool by 12937-submit@debbugs.gnu.org id=B12937.157247551714985 (code B ref 12937); Wed, 30 Oct 2019 22:46:02 +0000 Received: (at 12937) by debbugs.gnu.org; 30 Oct 2019 22:45:17 +0000 Received: from localhost ([127.0.0.1]:51796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPwiL-0003tJ-Bt for submit@debbugs.gnu.org; Wed, 30 Oct 2019 18:45:17 -0400 Received: from quimby.gnus.org ([80.91.231.51]:35708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPwiJ-0003qI-Ax for 12937@debbugs.gnu.org; Wed, 30 Oct 2019 18:45:16 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPwiE-0007r1-AG; Wed, 30 Oct 2019 23:45:12 +0100 From: Lars Ingebrigtsen References: <87obitia6d.fsf@gavenkoa.example.com> Date: Wed, 30 Oct 2019 23:45:09 +0100 In-Reply-To: (Stefan Monnier's message of "Mon, 19 Nov 2012 16:29:02 -0500") Message-ID: <875zk5ont6.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: > I don't see that. I'm not sure how you tried, it but I did > > src/emacs -Q --eval '(setq jit-lock-defer-time 0.01)' src/xdisp.c > > and scrolling with page-down indeed is jerky and I see that the b [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Monnier writes: > I don't see that. I'm not sure how you tried, it but I did > > src/emacs -Q --eval '(setq jit-lock-defer-time 0.01)' src/xdisp.c > > and scrolling with page-down indeed is jerky and I see that the buffer > is getting fontified (at least occasionally). But if I try again with > > src/emacs -Q --eval '(setq jit-lock-defer-time 0.1)' src/xdisp.c > > then the scrolling is fast&smooth and it only gets fontified when > I stop scrolling. I tried this in Emacs 27 (on a pretty fast laptop), and I got no jerkiness when holding (and things are fontified as I scroll). I also tried 0.001. So is this still a problem? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 30 18:45:23 2019 Received: (at control) by debbugs.gnu.org; 30 Oct 2019 22:45:23 +0000 Received: from localhost ([127.0.0.1]:51799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPwiQ-0003yp-LG for submit@debbugs.gnu.org; Wed, 30 Oct 2019 18:45:23 -0400 Received: from quimby.gnus.org ([80.91.231.51]:35724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPwiM-0003uB-HH for control@debbugs.gnu.org; Wed, 30 Oct 2019 18:45:18 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPwiJ-0007rC-Rc for control@debbugs.gnu.org; Wed, 30 Oct 2019 23:45:17 +0100 Date: Wed, 30 Oct 2019 23:45:15 +0100 Message-Id: <874kzpont0.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #12937 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 12937 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 12937 + moreinfo quit From unknown Sat Sep 13 13:15:30 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Oleksandr Gavenko Subject: bug#12937: closed (Re: bug#12937: 24.2; Fontification performed in 'jit-lock-defer-time' in any case (don't wait while Emacs become really idle).) Message-ID: References: <87sgh2tnp4.fsf@stefankangas.se> <87obitia6d.fsf@gavenkoa.example.com> X-Gnu-PR-Message: they-closed 12937 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: moreinfo Reply-To: 12937@debbugs.gnu.org Date: Fri, 17 Apr 2020 10:25:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1587119102-6701-1" This is a multi-part message in MIME format... ------------=_1587119102-6701-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #12937: 24.2; Fontification performed in 'jit-lock-defer-time' in any case = (don't wait while Emacs become really idle). which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 12937@debbugs.gnu.org. --=20 12937: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D12937 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1587119102-6701-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 12937-done) by debbugs.gnu.org; 17 Apr 2020 10:24:15 +0000 Received: from localhost ([127.0.0.1]:39986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPOAR-0001iK-Cv for submit@debbugs.gnu.org; Fri, 17 Apr 2020 06:24:15 -0400 Received: from ted.gofardesign.uk ([67.225.143.91]:45798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPOAQ-0001i6-A6 for 12937-done@debbugs.gnu.org; Fri, 17 Apr 2020 06:24:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BHE2M8EKx+FzRNnUWeYpg/mLBG6F5eunJz07x9g33JM=; b=eA59yyNyxFmWYkXymGVHjLCowb MpZtsMzqEnA92B/AIuOF4Xk0pLLdYYscLOiHPjPfGBZj+XpLE8WRGYV1rOqzFQzQ+eG3A3sczTzrT F+QB/qVN4/mStB1klfymNjnL4hvmgEfZU6nK+8V4WhnlOdX3zpE0DJ7C+F7/WjcxcQJm1BgbSY9J8 M6R1+rrOpmwCfj0MAR9myTYfFNM1TuZIaFeZfBRjm72+dasef0F7DrZHCOgPofb6DPWKrmJKFs5gg j9IdMcyawKLHzdBYwFCLjmz308/7Ncicc50cSUwPM4bYsM6O53/cVVa0tzcWqjrZPMptaoe6sFxaA 4AvSH4xw==; Received: from h-4-70-69.a785.priv.bahnhof.se ([155.4.70.69]:35182 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jPOAK-001loY-LE; Fri, 17 Apr 2020 06:24:08 -0400 From: Stefan Kangas To: Lars Ingebrigtsen Subject: Re: bug#12937: 24.2; Fontification performed in 'jit-lock-defer-time' in any case (don't wait while Emacs become really idle). In-Reply-To: <875zk5ont6.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 30 Oct 2019 23:45:09 +0100") References: <87obitia6d.fsf@gavenkoa.example.com> <875zk5ont6.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Fri, 17 Apr 2020 12:24:07 +0200 Message-ID: <87sgh2tnp4.fsf@stefankangas.se> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 12937-done Cc: 12937-done@debbugs.gnu.org, Stefan Monnier , Oleksandr Gavenko X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Stefan Monnier writes: > >> I don't see that. I'm not sure how you tried, it but I did >> >> src/emacs -Q --eval '(setq jit-lock-defer-time 0.01)' src/xdisp.c >> >> and scrolling with page-down indeed is jerky and I see that the buffer >> is getting fontified (at least occasionally). But if I try again with >> >> src/emacs -Q --eval '(setq jit-lock-defer-time 0.1)' src/xdisp.c >> >> then the scrolling is fast&smooth and it only gets fontified when >> I stop scrolling. > > I tried this in Emacs 27 (on a pretty fast laptop), and I got no > jerkiness when holding (and things are fontified as I scroll). I > also tried 0.001. > > So is this still a problem? More information was requested, but none was given within 6 months, so I'm closing this bug. If this is still an issue, please reply to this email (use "Reply to all" in your email client) and we can reopen the bug report. Best regards, Stefan Kangas ------------=_1587119102-6701-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 19 Nov 2012 20:57:44 +0000 Received: from localhost ([127.0.0.1]:55612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TaYPY-0001cJ-3v for submit@debbugs.gnu.org; Mon, 19 Nov 2012 15:57:44 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33260) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TaYPV-0001cC-LA for submit@debbugs.gnu.org; Mon, 19 Nov 2012 15:57:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaYOP-0006T6-AB for submit@debbugs.gnu.org; Mon, 19 Nov 2012 15:56:36 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:36179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaYOP-0006T0-6i for submit@debbugs.gnu.org; Mon, 19 Nov 2012 15:56:33 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaYOO-0006jq-7h for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2012 15:56:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaYON-0006SU-4L for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2012 15:56:32 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:64997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaYOM-0006SK-U7 for bug-gnu-emacs@gnu.org; Mon, 19 Nov 2012 15:56:31 -0500 Received: by mail-ee0-f41.google.com with SMTP id d41so3631574eek.0 for ; Mon, 19 Nov 2012 12:56:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=xIxaDfDWlFBCmagdjS/cFQldvNGT4Bske546gO1CbZE=; b=aA/yxM+9h1GKRr6PuTtSDUsRlxjz3e6lsWq+RTZbKQDNjOZamJ75GsUgQUtdhvoYZL 3dOO1sDBG88SS/EqN30q+fPJ15pUVzDQ4OI4TjTk+kJi8CCQL2sajxsfypXKvrdVD+Is AxQeZehDOSQdMtU1AxqiRWBIq504Fh44wYWVIEBRrJuTXvUwLfA1yhqkD+jhlk2q9/Qo 9KKn7mdao4f2pLoNOSA+0V+THe2uOemnsX7qKv63e6iU/I3izOhIVsSXG80P/UKftOQC GpWSXoxJs7C8kRra0ppHaeDv5sHlV0Sl21B3s0o+LJ1SqPa29NN9J1X9cgnrbNuHvrOV 4y0w== Received: by 10.14.199.134 with SMTP id x6mr27564618een.31.1353358590065; Mon, 19 Nov 2012 12:56:30 -0800 (PST) Received: from desktop ([37.229.16.202]) by mx.google.com with ESMTPS id g47sm26312200eeo.6.2012.11.19.12.56.27 (version=SSLv3 cipher=OTHER); Mon, 19 Nov 2012 12:56:28 -0800 (PST) From: Oleksandr Gavenko To: bug-gnu-emacs@gnu.org Subject: 24.2; Fontification performed in 'jit-lock-defer-time' in any case (don't wait while Emacs become really idle). Date: Mon, 19 Nov 2012 22:56:26 +0200 Message-ID: <87obitia6d.fsf@gavenkoa.example.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) I open (a very long .c file): emacs-bzr/trunk/src/coding.c and hold DOWN key. Text in buffer scrolls up but with jerks (random stops of scrolling for a little time) due to fontification actions. >From 'jit-lock-defer-time' docs: Idle time after which deferred fontification should take place. If nil, fontification is not deferred. I would try to workaround jerks with: (setq jit-lock-defer-time 0.01) and with same negative effect by (see below): (setq jit-lock-defer-time 3.0) When I hold DOWN key text scrolls up with jerks again! Because fontification performed again. I expect that when I *hold* key Emacs in not idle (it get user input and redisplay text!!) so don't understand why fontification take place. May be I misunderstand idling concept in Emacs and should read manuals deeper... Also note that fixing CC-mode is not a solution as there are many possible external modes that can be useful but with slow fontification. So it is good to have 'jit-lock-defer-time' behaviour that allow trick with defer fontification. I know some peoples use workflow when they use scroll-bars for very fast moving around a file (to get brief look of file content). I prefer use PageUp/PageDown keys to perform this task. In GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-09-09 on trouble, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11204000 -- Best regards! ------------=_1587119102-6701-1--