From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.bugs Subject: Re: font-lock latency Date: Thu, 05 Sep 2002 05:58:47 +0200 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031198310 28570 127.0.0.1 (5 Sep 2002 03:58:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 5 Sep 2002 03:58:30 +0000 (UTC) Cc: eliz@is.elta.co.il, bug-gnu-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17mnmn-0007Qf-00 for ; Thu, 05 Sep 2002 05:58:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17mnoP-0000Tb-00; Thu, 05 Sep 2002 00:00:09 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17mnna-0000Hg-00 for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2002 23:59:18 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17mnnY-0000HT-00 for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2002 23:59:17 -0400 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by monty-python.gnu.org with esmtp (Exim 4.10) id 17mnnV-0000GR-00; Wed, 04 Sep 2002 23:59:14 -0400 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.6/8.12.6) with ESMTP id g853won3010774 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 5 Sep 2002 05:58:50 +0200 Original-To: rms@gnu.org X-Hashcash: 0:020905:rms@gnu.org:a76e287d93d46194 X-Hashcash: 0:020905:eliz@is.elta.co.il:ce5f3288b40150b9 X-Hashcash: 0:020905:bug-gnu-emacs@gnu.org:4108adfa535fbf3e In-Reply-To: (Richard Stallman's message of "Wed, 04 Sep 2002 22:47:25 -0400") Original-Lines: 20 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3425 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3425 Richard Stallman writes: > Doesn't help, the line is still incorrectly highlighted. I even tried > pressing M-g M-g on every line of the buffer, but it was still wrong. > C-l doesn't help either. Only way to get it right is to wait a few > (3?) seconds. > > If some code that runs after 3 seconds gets it right, > the first thing to do is find that code, > and see how it gets the right results. The code is `jit-lock-stealth-fontify'. I now realized that if I set `jit-lock-stealth-time' to 0 _before_ I enable font-lock-mode, it does what I want -- that is, update the buffer immediately. jit-lock.el looks like voodoo to me, so I'm not going to try to find out what caused the original problem. Unless it has negative consequences, I think the default of `jit-lock-stealth-time' should be changed to 0 so that this bug isn't visible. Assuming noone finds the original cause of the problem, that is.