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

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

Re: parse-partial-sexp confused by temp?


From: Andreas Röhler
Subject: Re: parse-partial-sexp confused by temp?
Date: Wed, 29 Apr 2015 17:39:24 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


Am 29.04.2015 um 15:38 schrieb Stefan Monnier:
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.


         Stefan



Thanks responding.

However, this would not explain the wrong result saying inside a string.

Came across an error in other context, where it turned out

syntax-ppss

did read only from beginning of line, which was wrong.
So abondoned it, using

(parse-partial-sexp  since.


Andreas



reply via email to

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