|
From: | Paul Eggert |
Subject: | bug#33940: 27.0.50; ?\^c syntax confuses scanning |
Date: | Mon, 31 Dec 2018 19:58:13 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
Michael Heerdegen wrote:
in 20b858ef13f8f71fae6cbce5cdac31c4dd130600 "Prefer \... to control chars in .el literals" woman.el has been changed to contain reader syntaxes like "?\^]" - which apparently confuses `scan-sexps', e.g. (scan-sexps (point-min) (point-max)) |- (scan-error "Containing expression ends prematurely" 81997 81998) Obviously `scan-sexps' doesn't handle this kind of syntax correctly.
The second argument to scan-sexps is a count, not position, so you might want to rethink that example.
Anyway, I'm not seeing any problems. I built the emacs-26 branch and ran the shell command:
src/emacs -Q lisp/woman.el and then typed: M-: (scan-sexps (point-min) (point-max)) RETand it returned nil, which is what I'd expect. Can you reproduce the problem with a simple, self-contained test case like that?
[Prev in Thread] | Current Thread | [Next in Thread] |