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 10:21:10 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux)

>> The better way to fix it is probably to change the (nth 5 ppss) value so
>> it holds something like "buffer position actually described by PPSS in
>> case the requested buffer position is in the middle of a lexeme" and
>> so it can be used for both backslashes and multi-char comment markers.
> 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* "*/".


        Stefan



reply via email to

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