From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: font-lock-beginning-of-syntax-function semi-obsolete? Date: Fri, 20 May 2005 11:24:10 +0200 Message-ID: <87is1ez1vp.fsf@xs4all.nl> References: <87oec8ry4m.fsf@xs4all.nl> <87br82d8zp.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1116582890 24160 80.91.229.2 (20 May 2005 09:54:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 May 2005 09:54:50 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 20 11:54:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DZ4CQ-0007o9-Mw for ged-emacs-devel@m.gmane.org; Fri, 20 May 2005 11:53:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DZ4FF-0007za-H7 for ged-emacs-devel@m.gmane.org; Fri, 20 May 2005 05:56:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DZ3zp-0000sP-Cc for emacs-devel@gnu.org; Fri, 20 May 2005 05:40:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DZ3zn-0000rM-VP for emacs-devel@gnu.org; Fri, 20 May 2005 05:40:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DZ3zj-0000XU-VR for emacs-devel@gnu.org; Fri, 20 May 2005 05:40:40 -0400 Original-Received: from [194.109.24.30] (helo=smtp-vbr10.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DZ3u3-0005Cu-5P for emacs-devel@gnu.org; Fri, 20 May 2005 05:34:47 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr10.xs4all.nl (8.12.11/8.12.11) with ESMTP id j4K9O9k3085463; Fri, 20 May 2005 11:25:40 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DZ3jm-0001eO-00; Fri, 20 May 2005 11:24:10 +0200 Original-To: Stefan Monnier In-Reply-To: <87br82d8zp.fsf@xs4all.nl> (Lute Kamstra's message of "Mon, 25 Apr 2005 20:08:58 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 53 X-Virus-Scanned: by XS4ALL Virus Scanner 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:37383 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37383 Lute Kamstra writes: > Stefan Monnier writes: > >>> So, how do you make Font Lock use the function in the variable >>> syntax-begin-function to move to top level? >> >> I don't understand the question. What have you tried? > >> From what I understand, font-lock-beginning-of-syntax-function is > initialized from font-lock-defaults. You can either specify nil or a > function name. If you specify nil, Font Lock uses the beginning of > the buffer. If you specify a function, Font Lock uses that function. > How do you make Font Lock use the function in the variable > syntax-begin-function? Can somebody confirm that this change is correct? Lute. Index: lisp/font-lock.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/font-lock.el,v retrieving revision 1.256 diff -c -r1.256 font-lock.el *** lisp/font-lock.el 19 May 2005 02:15:09 -0000 1.256 --- lisp/font-lock.el 20 May 2005 09:22:48 -0000 *************** *** 563,573 **** a place such that any bracket-pairs outside it can be ignored for Emacs syntax analysis and fontification). ! If this is nil, the beginning of the buffer is used, which is ! always correct but tends to be slow. ! This is normally set via `font-lock-defaults'. ! This variable is semi-obsolete; we recommend setting ! `syntax-begin-function' instead.") (defvar font-lock-mark-block-function nil "*Non-nil means use this function to mark a block of text. --- 563,573 ---- a place such that any bracket-pairs outside it can be ignored for Emacs syntax analysis and fontification). ! If this is nil, Font Lock uses `syntax-begin-function' to move back ! outside of any comment, string, or sexp. This variable is semi-obsolete; ! we recommend setting `syntax-begin-function' instead. ! ! This is normally set via `font-lock-defaults'.") (defvar font-lock-mark-block-function nil "*Non-nil means use this function to mark a block of text.