From: Lute Kamstra <Lute.Kamstra.lists@xs4all.nl>
Subject: font-lock-beginning-of-syntax-function semi-obsolete?
Date: Thu, 21 Apr 2005 16:40:57 +0200 [thread overview]
Message-ID: <87oec8ry4m.fsf@xs4all.nl> (raw)
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.
next reply other threads:[~2005-04-21 14:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-21 14:40 Lute Kamstra [this message]
2005-04-25 17:25 ` font-lock-beginning-of-syntax-function semi-obsolete? Stefan Monnier
2005-04-25 18:08 ` Lute Kamstra
2005-05-20 9:24 ` Lute Kamstra
2005-05-20 13:02 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oec8ry4m.fsf@xs4all.nl \
--to=lute.kamstra.lists@xs4all.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).