unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Documentation for SYNTAX-BEGIN in font-lock-defaults
Date: Fri, 04 Jan 2008 01:26:11 +0100	[thread overview]
Message-ID: <477D7D23.20405@gmail.com> (raw)
In-Reply-To: <477D792D.1010407@gmail.com>

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.

      reply	other threads:[~2008-01-04  0:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-04  0:09 Documentation for SYNTAX-BEGIN in font-lock-defaults Lennart Borgman (gmail)
2008-01-04  0:26 ` Lennart Borgman (gmail) [this message]

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=477D7D23.20405@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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).