help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XKCD/541 compliance, anyone?


From: Stefan Monnier
Subject: Re: XKCD/541 compliance, anyone?
Date: Wed, 07 Jan 2015 17:37:14 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Now this question remains: how to ensure that syntax-propertize is
> getting called everywhere?

Depends what you mean by "everywhere".  It "should" be called internally
by things like forward-sexp, but currently isn't.
What you can do is something like

   (jit-lock-register (lambda (from to) (syntax-propertize to)) t)

[ This needs to be called individually in each buffer.  ]
It will make sure that all the visible text has been syntax-propertized,
regardless of font-lock-mode.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]