[Top][All Lists]

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

Re: C Mode: acceleration in brace deserts.

From: Stefan Monnier
Subject: Re: C Mode: acceleration in brace deserts.
Date: Fri, 04 Dec 2009 23:49:27 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

> Since we do not have the low level routines now here is an idea to get
> things working now:
> - Maybe use syntax-ppss. It will cache the information and MuMaMo has
> support for making this per chunk + major mode. This is needed instead
> of directly calling (parse-partial-sexp 0 to).

Yes, I think the best way is to integrate it into syntax-ppss, but the
problem is that syntax-ppss is currently fairly limited.  A first
extension would be to add to syntax-ppss something similar to
font-lock-syntactic-keywords.  That should be fairly easy to do.

But it would still be restricted to parse-partial-sexp (possibly
tweaked by syntax-table text-properties), which is not sufficient in
general, so we should either provide a replacement for or extend
parse-partial-sexp  to be more powerful and flexible.


reply via email to

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