From: bojohan+news@dd.chalmers.se (Johan Bockgård)
To: emacs-devel@gnu.org
Subject: Re: font-lock-extend-region-multiline: Args out of range: 0, 0
Date: Wed, 09 Apr 2008 00:12:39 +0200 [thread overview]
Message-ID: <yoijd4p03siw.fsf@remote2.student.chalmers.se> (raw)
In-Reply-To: 20080408131112.GD2937@muc.de
Alan Mackenzie <acm@muc.de> writes:
> I can't see any reason why it would ever be useful for
> font-lock-after-change-extend-region-function not to be buffer local.
I agree, but
There are several variables that control how Font Lock mode
highlights text. But major modes should not set any of these
variables directly. Instead, they should set `font-lock-defaults'
as a buffer-local variable. The value assigned to this variable is
used, if and when Font Lock mode is enabled, to set all the other
variables.
This will DTRT.
--
Johan Bockgård
prev parent reply other threads:[~2008-04-08 22:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-08 2:35 font-lock-extend-region-multiline: Args out of range: 0, 0 an0
2008-04-08 6:04 ` David Hansen
2008-04-08 9:29 ` Alan Mackenzie
2008-04-08 9:36 ` David Hansen
2008-04-08 13:11 ` Alan Mackenzie
2008-04-08 13:10 ` an0
2008-04-08 22:12 ` Johan Bockgård [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yoijd4p03siw.fsf@remote2.student.chalmers.se \
--to=bojohan+news@dd.chalmers.se \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.