unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Documentation for SYNTAX-BEGIN in font-lock-defaults
@ 2008-01-04  0:09 Lennart Borgman (gmail)
  2008-01-04  0:26 ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 2+ messages in thread
From: Lennart Borgman (gmail) @ 2008-01-04  0:09 UTC (permalink / raw)
  To: Emacs Devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-04  0:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-04  0:09 Documentation for SYNTAX-BEGIN in font-lock-defaults Lennart Borgman (gmail)
2008-01-04  0:26 ` Lennart Borgman (gmail)

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).