GNU bug report logs -
#22983
syntax-ppss returns wrong result.
Previous Next
Reported by: Alan Mackenzie <acm <at> muc.de>
Date: Fri, 11 Mar 2016 15:13:02 UTC
Severity: normal
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
Message #153 received at 22983 <at> debbugs.gnu.org (full text, mbox):
> difficult, I agree, but do we need it? How often are there going to be
> nested or alternating narrowing with enough calls to syntax-ppss to
> cause the establishment of syntax-ppss-cache (as opposed to merely
> syntax-ppss-last, which my patch doesn't consider sufficient reason to
> store a new narrow-cache)? (These aren't rhetorical questions, by the
> way, but real ones. Which is the best way forward?)
I agree that it probably doesn't make much difference in practice.
> I couldn't agree more. However, syntax-ppss is established and there
> are callers that depend on its literal specification. Maybe a way
> forward would be to introduce a new function equivalent to
> (parse-partial-sexp 1 x) and deprecate syntax-ppss. However, a name
> would need to be found for this new function, not an easy task. ;-)
> (syntax-ppss is a very good name, but couldn't be reused.)
Let's go with your patch for now, and then see if Dmitry's impression
that adding a call to `widen` before the call works even better.
Stefan
This bug report was last modified 7 years and 229 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.