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: Last steps for pretesting (font-lock-extend-region-function) Date: Tue, 25 Apr 2006 16:26:24 -0400 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145996824 570 80.91.229.2 (25 Apr 2006 20:27:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2006 20:27:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 25 22:26:58 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FYU7d-0000SP-N9 for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2006 22:26:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYU7d-0006Np-DT for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2006 16:26:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYU7G-0006Ak-D3 for emacs-devel@gnu.org; Tue, 25 Apr 2006 16:26:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYU7F-00069k-Hs for emacs-devel@gnu.org; Tue, 25 Apr 2006 16:26:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYU7F-00069a-7F for emacs-devel@gnu.org; Tue, 25 Apr 2006 16:26:33 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FYU9m-0000EB-0e for emacs-devel@gnu.org; Tue, 25 Apr 2006 16:29:10 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 88EFA2DE901; Tue, 25 Apr 2006 16:26:32 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 3BE4E445C; Tue, 25 Apr 2006 16:26:24 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 1FB3D71500; Tue, 25 Apr 2006 16:26:24 -0400 (EDT) Original-To: Ralf Angeli In-Reply-To: (Ralf Angeli's message of "Tue, 25 Apr 2006 22:12:28 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca 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:53416 Archived-At: > Now I feel a bit guilty that I didn't mention this earlier. Anyway, I > thought that a hook in f-l-d-f-r might be useful despite the > possibility mentioned above as a "documentable" and common way of > extending the region. But you are right, it's not really necessary. I was thinking of documenting this use of font-lock-fontify-region-function in the new "multi line font lock elements" node of the elisp manual. Do you think a separate hook is still necessary? The way I see it, a separate hook would only really make sense if it were a "normal" hook where you can place several functions, so that minor modes can also use it reliably and easily. > But then, IMO, a hook in `after-change-functions' is not strictly > necessary either. Its only benefit might be that refontification of > the extended region happens faster. I don't understand what you're saying here. Stefan