From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Doc patch for `fontification-functions': Date: Thu, 28 Jan 2010 14:44:21 -0500 Message-ID: References: <20100127135716.GA3432@muc.de> <20100127153733.GD3432@muc.de> <20100128113056.GE2285@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1264708083 21199 80.91.229.12 (28 Jan 2010 19:48:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jan 2010 19:48:03 +0000 (UTC) Cc: Lennart Borgman , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 28 20:48:00 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NaaLK-0005Pm-EH for ged-emacs-devel@m.gmane.org; Thu, 28 Jan 2010 20:47:54 +0100 Original-Received: from localhost ([127.0.0.1]:54290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaaLJ-00009x-GH for ged-emacs-devel@m.gmane.org; Thu, 28 Jan 2010 14:47:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NaaI5-0006oZ-43 for emacs-devel@gnu.org; Thu, 28 Jan 2010 14:44:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NaaI0-0006kp-BI for emacs-devel@gnu.org; Thu, 28 Jan 2010 14:44:32 -0500 Original-Received: from [199.232.76.173] (port=47578 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaaHz-0006kR-Q0 for emacs-devel@gnu.org; Thu, 28 Jan 2010 14:44:27 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:47417) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NaaHz-0004Qf-Bi for emacs-devel@gnu.org; Thu, 28 Jan 2010 14:44:27 -0500 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o0SJiLHA004403; Thu, 28 Jan 2010 14:44:21 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 19D983A7A3; Thu, 28 Jan 2010 14:44:21 -0500 (EST) In-Reply-To: <20100128113056.GE2285@muc.de> (Alan Mackenzie's message of "Thu, 28 Jan 2010 11:30:56 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3458=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:120610 Archived-At: >> The documentation (elisp manual) and doc string for this are poor. >> They only say what you should use the hook for, not when it's called. >> In particular, they don't say explicitly what happens when font lock >> isn't enabled, or when a different font-lock-support-mode is active. >> I take it the hook is called regardless of these things. > Here's a patch to fix this. I've also converted some "each function"s > to "the functions [collectively]". May I commit the patch (with a > proper ChangeLog entry, of course)? If you feel like adding a pointer to jit-lock-register, that would be great, since it's an interface that's a lot easier to use. Stefan