From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.devel Subject: Re: Stealth fontification GCs a lot Date: Fri, 15 Apr 2005 08:47:07 +0200 Message-ID: References: <200504140017.50453.jyavner@member.fsf.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1113548703 7973 80.91.229.2 (15 Apr 2005 07:05:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Apr 2005 07:05:03 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 15 09:05:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DMKsn-0003UZ-3I for ged-emacs-devel@m.gmane.org; Fri, 15 Apr 2005 09:04:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMKwD-00056U-VP for ged-emacs-devel@m.gmane.org; Fri, 15 Apr 2005 03:08:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DMKpQ-0002rn-DS for emacs-devel@gnu.org; Fri, 15 Apr 2005 03:01:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DMKmj-00027E-Te for emacs-devel@gnu.org; Fri, 15 Apr 2005 02:58:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMKmh-0001yk-1E for emacs-devel@gnu.org; Fri, 15 Apr 2005 02:58:35 -0400 Original-Received: from [134.96.7.25] (helo=triton.rz.uni-saarland.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DMKcb-0002wc-1E; Fri, 15 Apr 2005 02:48:09 -0400 Original-Received: from iwi-gate.iwi.uni-sb.de (iwi-gate.iwi.uni-sb.de [134.96.72.13]) by triton.rz.uni-saarland.de (8.12.10/8.12.10) with ESMTP id j3F6lJwx6168320; Fri, 15 Apr 2005 08:47:19 +0200 (CEST) Original-Received: from [134.96.72.190] (helo=neutrino.iwi.uni-sb.de) by iwi-gate.iwi.uni-sb.de with esmtp (Exim 4.43 (FreeBSD)) id 1DMKba-0009Ny-Hr; Fri, 15 Apr 2005 08:47:06 +0200 Original-Received: from angeli by neutrino.iwi.uni-sb.de with local (Exim 4.50) id 1DMKbb-0002Vw-Th; Fri, 15 Apr 2005 08:47:07 +0200 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Thu, 14 Apr 2005 22:44:55 -0400") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) X-IWi-MailScanner-Information: Please contact the ISP for more information X-IWi-MailScanner: Found to be clean X-IWi-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 5, autolearn=disabled) X-MailScanner-From: angeli@iwi.uni-sb.de X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.1 (triton.rz.uni-saarland.de [134.96.7.25]); Fri, 15 Apr 2005 08:47:19 +0200 (CEST) X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.30.0.7; VDF 6.30.0.97 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36009 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36009 * Richard Stallman (2005-04-15) writes: > I don't really mind an initial fontification of the whole buffer. A > worse annoyance of stealth fontification is that this happens again > and again after every modification of the buffer. > > Are you saying that stealth fontification rechecks the whole buffer > after any change in it? I often have that impression. Now I actually looked at the code and it does not refontify the whole buffer but the buffer downwards from the position a change happened. The doc string of `jit-lock-after-change' explains that: (defun jit-lock-after-change (start end old-len) "Mark the rest of the buffer as not fontified after a change. Installed on `after-change-functions'. START and END are the start and end of the changed text. OLD-LEN is the pre-change length. This function ensures that lines following the change will be refontified in case the syntax of those lines has changed. Refontification will take place when text is fontified stealthily." -- Ralf