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: Mon, 05 Dec 2011 09:01:53 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux)

>>> 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).
> I still miss what you need (nth 5 ppss) for here.  Is it for providing
> the OLDSTATE argument in another call to `parse-partial-sexp'?

Yes.
Think of calling parse-partial-sexp twice, passing the first result to
the second call, where the first result is in the middle of a "/*/".


        Stefan



reply via email to

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