bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#22983: syntax-ppss returns wrong result.


From: Dmitry Gutov
Subject: bug#22983: syntax-ppss returns wrong result.
Date: Sun, 20 Mar 2016 01:20:13 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0

On 03/20/2016 01:00 AM, Vitalie Spinu wrote:

Thanks for this. This is a step in right direction IMHO.

One side note. `parsep-ppss` has a condition-case for args-out-of-range which
could be easily optimized out. You already know that you are calling
parse-partial-sexp with out of range arguments if narrowing is in place.

That seems like it might make the code more complex: there are several parse-partial-sexp calls inside condition-case (for different situations with the existing cache), and we may have to add a comparison near each of them.

The
current error check obfuscates the logic and makes debugging harder. Would it be
possible for you to have a look once you are on it? Not a big deal though.

I think you can still follow the execution flow with edebug, can't you?

If you're debugging a problem with args-out-of-range, another option is to replace `condition-case' with `condition-case-unless-debug' and re-evaluate the definition (but restore it when you're done, otherwise the args-out-of-range handler won't fire, I think).





reply via email to

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