emacs-devel
[Top][All Lists]
Advanced

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

font-lock-beginning-of-syntax-function semi-obsolete?


From: Lute Kamstra
Subject: font-lock-beginning-of-syntax-function semi-obsolete?
Date: Thu, 21 Apr 2005 16:40:57 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

I'm updating lispref/modex.texi and noticed that the docstring of
font-lock-beginning-of-syntax-function says that it is semi-obsolete:

  *Non-nil means use this function to move back outside all constructs.
  When called with no args it should move point backward to a place which
  is not in a string or comment and not within any bracket-pairs (or else,
  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.

So, how do you make Font Lock use the function in the variable
syntax-begin-function to move to top level?

Lute.




reply via email to

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