From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.bugs Subject: Re: Font-lock: Major mode should be able to specify region to fontify. Date: 10 May 2002 17:31:53 -0400 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <5lpu03sn92.fsf@rum.cs.yale.edu> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021084564 26815 127.0.0.1 (11 May 2002 02:36:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 11 May 2002 02:36:04 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 176Mjs-0006yN-00 for ; Sat, 11 May 2002 04:36:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 176Mk2-0002Rg-00; Fri, 10 May 2002 22:36:14 -0400 Original-Received: from dimail.epfl.ch ([128.178.79.31]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 176Mhj-0002Ac-00 for ; Fri, 10 May 2002 22:33:51 -0400 Original-Received: from dinews.epfl.ch (news@disunds1 [128.178.79.23]) by dimail.epfl.ch (8.8.X/EPFL-8.1g) with SMTP id EAA22774 for ; Sat, 11 May 2002 04:33:49 +0200 (MET DST) Original-To: gnu-emacs-bug@gnu.org Original-Newsgroups: gnu.emacs.bug Original-Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 X-Original-NNTP-Posting-Host: rum.cs.yale.edu X-Original-Trace: 10 May 2002 17:31:54 -0400, rum.cs.yale.edu Original-Path: rum.cs.yale.edu!rum.cs.yale.edu Original-NNTP-Posting-Host: liasun13.epfl.ch X-Original-NNTP-Posting-Host: liasun13.epfl.ch Original-X-Trace: 11 May 2002 04:33:47 +0100, liasun13.epfl.ch Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 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:1287 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1287 >>>>> "Alan" == Alan Mackenzie writes: > I have implemented this feature in font-lock.el (and friends) by creating > a new abnormal hook variable which, if set, is called by one of the > font-lock after-change functions. Here is the patch. The context-diff > is based on the source files from Emacs 21.1. Please use the latest CVS code as a base, whenever possible. As for other solutions to your problem: 1 - use font-lock-multiline (but this is a bit expensive) 2 - use jit-lock-defer-multiline (see the CVS' etc/NEWS file) Solution 2 was written specifically for this kind of case. Stefan PS: Your changelog entries don't look right. They should look like * filename (functionname, varname, othername): blabla. (morefunctionchanged): blabli.