emacs-devel
[Top][All Lists]
Advanced

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

Re: Musings: Supposed places of safety, guaranteed by parse-partial-sexp


From: Stefan Monnier
Subject: Re: Musings: Supposed places of safety, guaranteed by parse-partial-sexp are not safe.
Date: Sun, 04 Dec 2011 22:33:37 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

>>> If you change (nth 5 ppss) you would still have to say that (nth 4 ppss)
>>> is unreliable in this special case.
>> Not if (nth 5 ppss) says that the buffer position is the one *after* the
>> "/*" sequence.  Of course for "*/" we'd conversely want to use the state
>> *before* "*/".
> What I meant was that the caller would have to care about (nth 5 ppss)
> too, wherever she now looked only at (nth 3 ppss) and (nth 4 ppss).

That's what I understood and my suggestion does address this issue (tho
it means that (nth 5 ppss) will sometimes refer to a buffer position
after (point) and sometimes before).

A case that needs to work is "/*/" in C mode, for example.


        Stefan



reply via email to

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