From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ivan Sokolov Newsgroups: gmane.lisp.guile.bugs Subject: bug#48658: Elisp lexer misreads ESC in escape sequence form Date: Tue, 25 May 2021 23:47:11 +0300 Message-ID: <874keq5ynk.fsf@ya.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20335"; mail-complaints-to="usenet@ciao.gmane.io" To: 48658@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Tue May 25 22:54:14 2021 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lle46-00054a-6L for guile-bugs@m.gmane-mx.org; Tue, 25 May 2021 22:54:14 +0200 Original-Received: from localhost ([::1]:57326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lle45-0001Nh-4c for guile-bugs@m.gmane-mx.org; Tue, 25 May 2021 16:54:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lle3v-0001MI-H7 for bug-guile@gnu.org; Tue, 25 May 2021 16:54:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35627) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lle3u-0005Mi-7L for bug-guile@gnu.org; Tue, 25 May 2021 16:54:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lle3u-0002PD-5y for bug-guile@gnu.org; Tue, 25 May 2021 16:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Sokolov Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 25 May 2021 20:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48658 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16219759959167 (code B ref -1); Tue, 25 May 2021 20:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 May 2021 20:53:15 +0000 Original-Received: from localhost ([127.0.0.1]:47169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lle38-0002Nl-KJ for submit@debbugs.gnu.org; Tue, 25 May 2021 16:53:15 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lldxU-0001za-4x for submit@debbugs.gnu.org; Tue, 25 May 2021 16:47:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lldxT-0003Io-SC for bug-guile@gnu.org; Tue, 25 May 2021 16:47:23 -0400 Original-Received: from forward104p.mail.yandex.net ([2a02:6b8:0:1472:2741:0:8b7:107]:43321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lldxQ-0001GM-7R for bug-guile@gnu.org; Tue, 25 May 2021 16:47:23 -0400 Original-Received: from sas1-37a29cf4dc11.qloud-c.yandex.net (sas1-37a29cf4dc11.qloud-c.yandex.net [IPv6:2a02:6b8:c08:121b:0:640:37a2:9cf4]) by forward104p.mail.yandex.net (Yandex) with ESMTP id D874A4B018DD for ; Tue, 25 May 2021 23:47:12 +0300 (MSK) Original-Received: from sas1-e00c2743cdb8.qloud-c.yandex.net (sas1-e00c2743cdb8.qloud-c.yandex.net [2a02:6b8:c14:3a22:0:640:e00c:2743]) by sas1-37a29cf4dc11.qloud-c.yandex.net (mxback/Yandex) with ESMTP id grYaB4xArZ-lCK0xdIk; Tue, 25 May 2021 23:47:12 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1621975632; bh=A7pxk5xfbWzqM11oTQrp8nfOUX4OQj4rv/PQZG8npQM=; h=Date:Subject:To:From:Message-ID; b=nkXn9pyN9mr+YWD7WgnNYibn2bBf4vHfALJzZaD9LA+UmTzwnSs9jnqIwvw14tdr3 2SEZ5UOb5BIWZnTvDsrrYSgKzU6534IWGQqA5xR8ouGVPWB3yYA5WTGdYyVkLgeXtW YmN6o12TlDY+Lf6aJm7MP18ZdL8qmzoJPahMoNew= Authentication-Results: sas1-37a29cf4dc11.qloud-c.yandex.net; dkim=pass header.i=@ya.ru Original-Received: by sas1-e00c2743cdb8.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id wZnBpDB4Pw-lCLOxXSk; Tue, 25 May 2021 23:47:12 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Received-SPF: pass client-ip=2a02:6b8:0:1472:2741:0:8b7:107; envelope-from=ivan-p-sokolov@ya.ru; helo=forward104p.mail.yandex.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 25 May 2021 16:53:13 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10111 Archived-At: 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)> ----------------