From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Defer jit-lock on a per-buffer basis Date: Thu, 15 Nov 2012 18:55:32 +0200 Message-ID: <83obiyu7p7.fsf@gnu.org> References: <87r4nvmcx7.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1352998524 26676 80.91.229.3 (15 Nov 2012 16:55:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Nov 2012 16:55:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 15 17:55:35 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TZ2j0-0004or-FO for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Nov 2012 17:55:34 +0100 Original-Received: from localhost ([::1]:43381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZ2iq-0002qF-2D for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Nov 2012 11:55:24 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZ2ii-0002pz-JQ for help-gnu-emacs@gnu.org; Thu, 15 Nov 2012 11:55:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZ2if-0001lg-HU for help-gnu-emacs@gnu.org; Thu, 15 Nov 2012 11:55:16 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:41986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZ2if-0001lK-9G for help-gnu-emacs@gnu.org; Thu, 15 Nov 2012 11:55:13 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MDJ00L00G8AB800@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Thu, 15 Nov 2012 18:55:11 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MDJ00LVXGBW5K80@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Thu, 15 Nov 2012 18:55:08 +0200 (IST) In-reply-to: <87r4nvmcx7.fsf@thinkpad.tsdh.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87709 Archived-At: > From: Tassilo Horn > Date: Thu, 15 Nov 2012 10:29:56 +0100 > > recently this blog post > > http://tsengf.blogspot.de/2012/11/slow-scrolling-speed-in-emacs.html > > suggested to set `jit-lock-defer-time' to some small fraction to defer > jit-lock fontification a bit. This has an enormous effect for example > when scrolling in large c-mode buffers. > > However, most of the time I work with buffers that are rather small and > instant fontification is fast enough. There, deferring font-lock is > somewhat distracting. > > So is there a way to enable deferred jit-lock on a per-buffer basis? Not without rewriting the JIT Lock code, I think. JIT Lock goes over all of the buffers with the same timers, so any option you customize will affect all of the buffers.