From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Documentation for SYNTAX-BEGIN in font-lock-defaults Date: Fri, 04 Jan 2008 01:26:11 +0100 Message-ID: <477D7D23.20405@gmail.com> References: <477D792D.1010407@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199406391 18914 80.91.229.12 (4 Jan 2008 00:26:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jan 2008 00:26:31 +0000 (UTC) To: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 04 01:26:42 2008 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.50) id 1JAaOX-0004ZH-37 for ged-emacs-devel@m.gmane.org; Fri, 04 Jan 2008 01:26:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAaOA-0000PA-En for ged-emacs-devel@m.gmane.org; Thu, 03 Jan 2008 19:26:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JAaO7-0000Ou-0O for emacs-devel@gnu.org; Thu, 03 Jan 2008 19:26:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JAaO4-0000OY-Ms for emacs-devel@gnu.org; Thu, 03 Jan 2008 19:26:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAaO4-0000OQ-FT for emacs-devel@gnu.org; Thu, 03 Jan 2008 19:26:12 -0500 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JAaO4-0004kT-90 for emacs-devel@gnu.org; Thu, 03 Jan 2008 19:26:12 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:63249 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JAaO2-0000QG-7s for emacs-devel@gnu.org; Fri, 04 Jan 2008 01:26:10 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <477D792D.1010407@gmail.com> X-Antivirus: avast! (VPS 080103-0, 2008-01-03), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1JAaO2-0000QG-7s. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JAaO2-0000QG-7s fc5b9fa5faaef01e821080783ca4def2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:86028 Archived-At: Lennart Borgman (gmail) wrote: > In my version of Emacs (info "(elisp) Font Lock Basics") says > > The fifth element, SYNTAX-BEGIN, specifies the value of > `font-lock-beginning-of-syntax-function'. We recommend setting > this variable to `nil' and using `syntax-begin-function' instead. > > while the doc string for `font-lock-default' says > > If SYNTAX-BEGIN is non-nil, it should be a function with no args > used to move backwards outside any enclosing syntactic block, for > syntactic fontification. Typical values are `beginning-of-line' > (i.e., the start of the line is known to be outside a syntactic > block), or `beginning-of-defun' for programming modes or > `backward-paragraph' for textual modes (i.e., the mode-dependent > function is known to move outside a syntactic block). If nil, the > beginning of the buffer is used as a position outside of a syntactic > block, in the worst case. > > (This maybe changed in CVS, but I am unable to check now.) Please forget this. Reading a bit more on the Info page reveals that this also recommends to use syntax-begin-function.