From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: lazy-lock vs. jit-lock Date: Thu, 29 Dec 2005 14:18:05 -0500 Message-ID: <87wthn3ef6.fsf-monnier+emacs@gnu.org> References: <878xu36evm.fsf-monnier+gnu.emacs.help@gnu.org> <17af13780512291020h530791f5g48a3ba0b4c60dcea@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1135890620 25572 80.91.229.2 (29 Dec 2005 21:10:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2005 21:10:20 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 29 22:10:19 2005 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Es50B-0001Pn-3l for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Dec 2005 22:08:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Es51Y-0003MY-A7 for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Dec 2005 16:09:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Es3JF-00029c-He for help-gnu-emacs@gnu.org; Thu, 29 Dec 2005 14:19:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Es3JE-00029C-KK for help-gnu-emacs@gnu.org; Thu, 29 Dec 2005 14:19:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Es3JE-000297-C3 for help-gnu-emacs@gnu.org; Thu, 29 Dec 2005 14:19:32 -0500 Original-Received: from [209.226.175.110] (helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Es3Jc-0007vC-LN for help-gnu-emacs@gnu.org; Thu, 29 Dec 2005 14:19:56 -0500 Original-Received: from alfajor ([67.71.26.159]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20051229191805.LNEZ23065.tomts43-srv.bellnexxia.net@alfajor>; Thu, 29 Dec 2005 14:18:05 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id D08EDD7697; Thu, 29 Dec 2005 14:18:05 -0500 (EST) Original-To: Ian Zimmerman In-Reply-To: <17af13780512291020h530791f5g48a3ba0b4c60dcea@mail.gmail.com> (Ian Zimmerman's message of "Thu, 29 Dec 2005 13:20:11 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Originating-IP: [0] X-Mailman-Approved-At: Thu, 29 Dec 2005 16:09:11 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32295 Archived-At: >> If those parts are displayed and yet they're not fontified it's a bug which >> you should report via M-x report-emacs-bug. > This is the case. I'll do a bug report ... but this involves my own mode > and a not exactly mainstream language, so I wonder how far it will get me. External code is OK. Of course the more self-contained the recipe, the better. Also a good description of the faulty behavior (what you have to do to cause it, how it manifests itself, ...) is sometimes enough to understand the problem (without reproducing it ourselves). > The fact that jit-lock interacts with Emacs C code is not encouraging, > I fear I will be asked to gdb Emacs which I won't. We may ask you to debug it, but you don't have to do it. >> Lazy-lock has some known bugs (I remember some missing on-screen >> fontification using outline-minor-mode, for example), >is less efficient< > Can you expand on the last point? What makes lazy-lock less efficient? lazy-lock tries to guess which part of the buffer is displayed, based on various pieces of information. But those guesses take work and are necessarily conservative. jit-lock on the other hand gets this info from the horse's mouth without any effort. Stefan