[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Clarification needed: syntax-propertize vs font-lock-syntax-table
From: |
Dmitry Gutov |
Subject: |
Re: Clarification needed: syntax-propertize vs font-lock-syntax-table |
Date: |
Tue, 24 Nov 2015 13:35:04 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0 |
On 11/24/2015 10:58 AM, Wedler, Christoph wrote:
I now checked the code: it is done via jit-lock-after-change in
after-change-functions. As I have guessed, syntax-propertize currently
only works correctly if font-lock is switched on.
font-lock depends on syntax-propertize. Not the other way around.
Yes, but navigation command like M-x forward-list do not depend on
font-lock, but they do depend on syntax-propertize (consider parentheses
in generic strings).
Hm, actually, that has changed in
ab21f61a552f038485d40218dfd94a16b843eb52. So yes, there's a difference
between Emacs 24 and 25 here. Sorry for the confusion.
Ok, I'll name it syntax-ppss-open-positions (like (nth 0 ppss) is called
syntax-ppss-depth, and not syntax-ppss-list-depth).
Sounds good.
Well, that was the point of the above function: in the former case, the
function body is changed to (mapcar 'car (nth 9 ppss)), and will stay
the same in the latter.
Sorry, I lost you here. Former case?
- Clarification needed: syntax-propertize vs font-lock-syntax-table, Wedler, Christoph, 2015/11/18
- Re: Clarification needed: syntax-propertize vs font-lock-syntax-table, Dmitry Gutov, 2015/11/18
- RE: Clarification needed: syntax-propertize vs font-lock-syntax-table, Wedler, Christoph, 2015/11/20
- Re: Clarification needed: syntax-propertize vs font-lock-syntax-table, Dmitry Gutov, 2015/11/20
- RE: Clarification needed: syntax-propertize vs font-lock-syntax-table, Wedler, Christoph, 2015/11/23
- Re: Clarification needed: syntax-propertize vs font-lock-syntax-table, Dmitry Gutov, 2015/11/23
- RE: Clarification needed: syntax-propertize vs font-lock-syntax-table, Wedler, Christoph, 2015/11/24
- Re: Clarification needed: syntax-propertize vs font-lock-syntax-table,
Dmitry Gutov <=