GNU bug report logs - #30132
27.0.50; scan-sexps and ##

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Michael Heerdegen <michael_heerdegen@HIDDEN>; Keywords: patch; merged with #15998; dated Mon, 15 Jan 2018 18:10:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 15998 30132. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 30132 <at> debbugs.gnu.org:


Received: (at 30132) by debbugs.gnu.org; 12 Feb 2018 16:12:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 12 11:12:17 2018
Received: from localhost ([127.0.0.1]:39894 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1elGiF-0000Ta-EI
	for submit <at> debbugs.gnu.org; Mon, 12 Feb 2018 11:12:17 -0500
Received: from mout.web.de ([212.227.17.12]:42209)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1elGiD-0000TL-9o
 for 30132 <at> debbugs.gnu.org; Mon, 12 Feb 2018 11:12:13 -0500
Received: from drachen.dragon ([188.99.169.170]) by smtp.web.de (mrweb101
 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LxfOx-1ejDX20m55-017AzR; Mon, 12
 Feb 2018 17:12:07 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: 30132 <at> debbugs.gnu.org
Subject: Re: bug#30132: 27.0.50; scan-sexps and ##
References: <87y3kzat94.fsf@HIDDEN>
Date: Mon, 12 Feb 2018 17:12:06 +0100
In-Reply-To: <87y3kzat94.fsf@HIDDEN> (Michael Heerdegen's message of "Mon, 15
 Jan 2018 19:09:43 +0100")
Message-ID: <873726kx0p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux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zfOthoOp6RWZuJx8swbKoULUmqifp18gE5LfFAeDdhgw5eoky1V4TIe/b4ZMxPHSf7LwO0X
 TV2mhxz88YG2HqXNm6c9E1XSnc+YE1HjBnBztkadxz0caBpW1o=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 30132
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> Hello,
>
> Insert into *scratch*
>
>   (list ##)
>
> and put point at the beginning of "##".

BTW, this is not the only kind of situation where `scan-sexps' can error
for expressions containing ##.  In particular, point doesn't necessarily
need to be directly before "##" for the problem to occur.


Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30132; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Jan 2018 18:10:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 15 13:10:00 2018
Received: from localhost ([127.0.0.1]:57742 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eb9Cq-0004GD-40
	for submit <at> debbugs.gnu.org; Mon, 15 Jan 2018 13:10:00 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35921)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1eb9Cn-0004Fn-VU
 for submit <at> debbugs.gnu.org; Mon, 15 Jan 2018 13:09:58 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1eb9Ci-0002LK-0i
 for submit <at> debbugs.gnu.org; Mon, 15 Jan 2018 13:09:52 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:45758)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1eb9Ch-0002L5-Tk
 for submit <at> debbugs.gnu.org; Mon, 15 Jan 2018 13:09:51 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55117)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1eb9Cg-0006rY-Jq
 for bug-gnu-emacs@HIDDEN; Mon, 15 Jan 2018 13:09:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1eb9Cd-0002HC-EO
 for bug-gnu-emacs@HIDDEN; Mon, 15 Jan 2018 13:09:50 -0500
Received: from mout.web.de ([212.227.15.14]:52345)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1eb9Cd-0002G2-3p
 for bug-gnu-emacs@HIDDEN; Mon, 15 Jan 2018 13:09:47 -0500
Received: from drachen.dragon ([94.216.137.3]) by smtp.web.de (mrweb003
 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Mb8xf-1eI5wp1F0N-00Kf0Z for
 <bug-gnu-emacs@HIDDEN>; Mon, 15 Jan 2018 19:09:44 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; scan-sexps and ##
Date: Mon, 15 Jan 2018 19:09:43 +0100
Message-ID: <87y3kzat94.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:jp8XPwAlqeFzlYfXs79aLdk4e1NJcEwnNr7VcDUBLESVpez+Ozf
 yNBukD5yvwxmzBQCRM4gEtZ5uDr6tyQilTnxlKK6i5iethRay37KYRwjzygMvYFyDCLPRmA
 367t4/0LtFL9HkY6qXGdOEntm2j49/JwfAHhhEaK017D5koXLqJN/vuOJW218n2pDTvQRHl
 6bsAKWwFKeiEpnwsK6yIQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:S5qjaNCCvh4=:GimweAsGSsXgRAPA3Ibhdd
 wmRFr8kDfmzcBwH20O0KO7zy6c9PBxGthetFaAL1Sm/IK8BXu3VPgIbZpbaGAqkgsMxvLwZhL
 wVXnFveX3hlRh0ARHRPv7q38cVm8xXSsbCy7qJmEFStyt6j29gtoSWq5stQ6sMnY678cS46Qs
 JUdMF42ZDB600MtcORHaVgYsewU7fHhPw01izTA1Kdw61EsS3COHiIUyDGyqjBjP6gq/LnpD8
 J0RX69cPdkU8TPPgCj9CTicrkGArgC8DbXW9g2zPJGPTiuHSuypRa9xta56jgemq1osiPVT0k
 zk5djRprs2ZlWkBQMKQMxfphQjVfLtPs9DFl+Dl0Wxse57DgfYk95QIhTio3tyTW9SVzegyhH
 JnHpgkAuKI74BFrS7C9RFNa6FxcDwVHAPlfg381eyYahAhldZVsSQ+O9CNVvPGzd00HwVXhrx
 QTvDZ80gIflNzegb54rDN0mV8JT+j1pwnUETS8dEs/YTBBcOCEMhUtrwrCz2SgLoYJUJigKDH
 SXTvrmODXPo2sCAs6f9lk2H8LgNmeA5SV6xJjgQSMl9D329nBoxIQ40BK4ie52ZTqkiwTTqdu
 nFfZ4WUO5Ng9sgfZff7/uQJe1Q0D/6jpqnlvnX7JszQLYAkozFqSRBkFNehCcpGsX/tRaKj5V
 hgUs2nfyLVcx63xxVJSAUU9d3Jfoj8f9yptyM+hW8BmlHaYtqp9YJccsAAKZwVzdDg9X60br0
 Oq7uVLtCSaYOp5gUdbPZ3OGWtvXww4TpcimYfsWkPIRubBew5XY+R49IoJZR7R+yTyvw9A4Mk
 f8TEBMKfQXB3CSQ8exYG7c8MKaa5UFITiLZF1y4mz8luh9h3/s=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)


Hello,

Insert into *scratch*

  (list ##)

and put point at the beginning of "##".  Then eval M-:

  (goto-char (scan-sexps (point) 1))

and you get

| Debugger entered--Lisp error: (scan-error "Containing expression ends prematurely" 154 155)
|   scan-sexps(152 1)
|   (goto-char (scan-sexps (point) 1))
|   eval((goto-char (scan-sexps (point) 1)) t)
|   eval-expression((goto-char (scan-sexps (point) 1)) nil nil 127)
|   funcall-interactively(eval-expression (goto-char (scan-sexps (point) 1)) nil nil 127)
|   call-interactively(eval-expression nil nil)
|   command-execute(eval-expression)

Expected is that the scan doesn't fail.

## is the rarely used representation of an interned symbol named with
the empty string.  My problem is that where it is used (like in
"org-list.el"), el-search.el gets into trouble.


Thanks in advance,

Michael.


In GNU Emacs 27.0.50 (build 17, x86_64-pc-linux-gnu, GTK+ Version 3.22.26)
 of 2018-01-15 built on drachen
Repository revision: 55a83102629d597eb172e91698578930ff193c5d
Windowing system distributor 'The X.Org Foundation', version 11.0.11905000
System Description: Debian GNU/Linux testing (buster)





Acknowledgement sent to Michael Heerdegen <michael_heerdegen@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#30132; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 7 Jul 2019 02:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.