[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Documentation for SYNTAX-BEGIN in font-lock-defaults

From: Lennart Borgman (gmail)
Subject: Documentation for SYNTAX-BEGIN in font-lock-defaults
Date: Fri, 04 Jan 2008 01:09:17 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20071031 Thunderbird/ Mnenhy/

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.)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]