[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `font-lock-extend-region-functions' vs. `font-lock-extend-after-chan
From: |
Tobias C. Rittweiler |
Subject: |
Re: `font-lock-extend-region-functions' vs. `font-lock-extend-after-change-region-function' |
Date: |
Tue, 28 Apr 2009 22:45:37 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
> > what is the difference between the variables
> > `font-lock-extend-region-functions'
> > and
> > `font-lock-extend-after-change-region-function' ?
> > In particular, how do they relate? Which should be used for what?
>
> Have you read the Elisp manual's discussion about font-locking
> multiline elements?
No, I somehow missed that section. Of course, it's all in there! (blush)
> The "right" answer is usually font-lock-extend-region-functions, but
> it's hard to tell without knowing anything more (sometimes it's
> difficult/impossible to write the necessary
> font-lock-extend-region-functions).
>
> > I face the following problem: Font-lock, perhaps just jit-lock (I'm
> > using that), calls `font-lock-fontify-region-function' with start and
> > end values pretty much arbitrary in the buffer.
>
> Yes, that's normal. That's what font-lock-extend-region-functions is for.
Right, works like a charm now.
Thank you very much for your prompt answer!,
-T.
- `font-lock-extend-region-functions' vs. `font-lock-extend-after-change-region-function', Tobias C. Rittweiler, 2009/04/28
- Re: `font-lock-extend-region-functions' vs. `font-lock-extend-after-change-region-function', Stefan Monnier, 2009/04/28
- Re: `font-lock-extend-region-functions' vs. `font-lock-extend-after-change-region-function',
Tobias C. Rittweiler <=
- Re: `font-lock-extend-region-functions' vs. `font-lock-extend-after-change-region-function', Tobias C. Rittweiler, 2009/04/29
- Re: `font-lock-extend-region-functions' vs. `font-lock-extend-after-change-region-function', Stefan Monnier, 2009/04/29
- Re: `font-lock-extend-region-functions' vs. `font-lock-extend-after-change-region-function', Tobias C. Rittweiler, 2009/04/29
- Re: `font-lock-extend-region-functions' vs. `font-lock-extend-after-change-region-function', Stefan Monnier, 2009/04/29
- Re: `font-lock-extend-region-functions' vs. `font-lock-extend-after-change-region-function', Samuel Bronson, 2009/04/29
- Re: `font-lock-extend-region-functions' vs. `font-lock-extend-after-change-region-function', Stefan Monnier, 2009/04/29