[Top][All Lists]

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

Re: generic buffer parsing cache data

From: Stefan Monnier
Subject: Re: generic buffer parsing cache data
Date: Sun, 01 Jul 2007 08:52:23 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

>> > I propose that each point position could have "cached parsing data".
>> > This would be an alist indexed with cache data identifier.
>> Have you experimented with `syntax-ppss'?
> I propose to add something generic.  For instance, Python mode needs to
> know indentation level of blocks.  It seems that `syntax-ppss` doesn't
> return it at all.  And adding everything that might ever be needed by
> some XYZ mode seems counter-productive and complicates an already complex
> function and its return value.

100% agreement.

This said, I think it might make sense to combine the two so that
syntax-ppss returns not just the parse-partial-sexp state but also some
mode-specific data.  At least it's been in my TODO list for a while now.

> As a side note, I was told somewhen that `parse-partial-sexp` is not
> limited to Lisp syntax.  How about this amendment to documentation?

Sounds good,


reply via email to

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