[Top][All Lists]

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

Re: parse-partial-sexp confused by temp?

From: Stefan Monnier
Subject: Re: parse-partial-sexp confused by temp?
Date: Wed, 29 Apr 2015 09:38:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Any ideas?

First things first: replace (parse-partial-sexp (point-min) (point))
with (syntax-ppss) which will do the same but more efficiently (caches
the intermediate results and shares this cache with other users such as
font-lock), and will know to run `syntax-propertize' if the major mode
said so.


reply via email to

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