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

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

Re: my-calculate-indent function


From: Tim X
Subject: Re: my-calculate-indent function
Date: Fri, 20 Apr 2007 12:21:54 +1000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>
> PS: In Emacs<22, parse-partial-sexp can give you that info instead of
>     syntax-ppss.

As I understand it syntax-ppss parses the whole file (but uses a caching system
to improve performance). Am I right in assuming parse-partial-sexp under emacs
22 would achieve a similar result, but more efficiently and without the caching
stuff as it only parses a part of the file?

Just interested as a new mode I've been working on is using syntax-ppss, which
seems find given my hardware and size of the files I'm typically working on,
but at the time of writing, I did have a small concern regarding how well the
approach would work on large input files.

Tim

-- 
tcross (at) rapttech dot com dot au


reply via email to

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