From: Ivan Sokolov <ivan-p-sokolov@ya.ru>
To: 48658@debbugs.gnu.org
Subject: bug#48658: Elisp lexer misreads ESC in escape sequence form
Date: Tue, 25 May 2021 23:47:11 +0300 [thread overview]
Message-ID: <874keq5ynk.fsf@ya.ru> (raw)
Hello,
I found that Elisp lexer interprets Elisp escape sequence for ESC as
something different. The backtrace I got eralier (not present here)
points to line 328 in language/elisp/lexer.scm, I think get-character is
wrong.
https://git.savannah.gnu.org/cgit/guile.git/tree/module/language/elisp/lexer.scm?h=v3.0.7#n328
Emacs:
----------------
*** Welcome to IELM *** Type (describe-mode) for help.
ELISP> emacs-version
"28.0.50"
ELISP> ?\C-a
1 (#o1, #x1, ?\C-a)
ELISP> "\C-a"
"^A"
ELISP> ?\C-\[
27 (#o33, #x1b, ?\C-\[)
ELISP> "\C-["
"^["
----------------
Guile:
----------------
GNU Guile 3.0.7
Copyright (C) 1995-2021 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
elisp@(guile-user)> ?\C-a
$1 = 1
elisp@(guile-user)> "\C-a"
$2 = "\x01"
elisp@(guile-user)> ?\C-\[
$3 = 67108955
elisp@(guile-user)> "\C-["
While reading expression:
In procedure integer->char: Argument 1 out of range: 67108955
elisp@(guile-user)>
----------------
reply other threads:[~2021-05-25 20:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874keq5ynk.fsf@ya.ru \
--to=ivan-p-sokolov@ya.ru \
--cc=48658@debbugs.gnu.org \
/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.
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).