emacs-devel
[Top][All Lists]
Advanced

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

Re: C Mode: acceleration in brace deserts.


From: Alan Mackenzie
Subject: Re: C Mode: acceleration in brace deserts.
Date: Fri, 4 Dec 2009 11:56:05 +0000
User-agent: Mutt/1.5.9i

On Fri, Dec 04, 2009 at 12:03:27PM +0100, Lennart Borgman wrote:
> On Fri, Dec 4, 2009 at 11:34 AM, Lennart Borgman

> Just a question I forgot: Why are you not using syntax-ppss here
> [keeping track of comments/strings in c-parse-state's supporting
> functions]?  Are you not looking for the same thing (ie inside comment
> or string).

I think at the time I did it, it was just less work to write it from
scratch.  syntax-ppss isn't a well encapsulated system, and it almost
requires its users to read its source code to see exactly what it does.
Also, c-parse-state (in effect) changes the syntax table in use by
setting category properties.  At the time, I was considering actually
changing the syntax table (for reasons I'm not entirely clear about any
more).  Does syntax-ppss exist in XEmacs, and if so, since when?  Some of
syntax-ppss's supporting infrastructure only came into existence after
syntax-ppss itself.

> If you did it that way then it would already be supported by MuMaMo.

Ah.  That sounds like a good reason to change my new code to use
syntax-ppss.  :-(  But not before the first pretest release next week.

-- 
Alan Mackenzie (Nuremberg, Germany).




reply via email to

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