unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 33940@debbugs.gnu.org
Subject: bug#33940: 27.0.50; ?\^c syntax confuses scanning
Date: Mon, 31 Dec 2018 19:58:13 -0800	[thread overview]
Message-ID: <7076b21c-8563-943b-f699-90f3a362111c@cs.ucla.edu> (raw)
In-Reply-To: <8736qdnkx0.fsf@web.de>

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)) RET

and it returned nil, which is what I'd expect. Can you reproduce the problem 
with a simple, self-contained test case like that?





  reply	other threads:[~2019-01-01  3:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-01  2:58 bug#33940: 27.0.50; ?\^c syntax confuses scanning Michael Heerdegen
2019-01-01  3:58 ` Paul Eggert [this message]
2019-01-01  4:12   ` Michael Heerdegen
2019-01-01 19:42     ` Paul Eggert
2019-01-02  0:28       ` Michael Heerdegen
2019-01-02  0:48         ` Paul Eggert
2019-01-02  9:49         ` Andreas Schwab
2019-01-02 11:31           ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7076b21c-8563-943b-f699-90f3a362111c@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=33940@debbugs.gnu.org \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).