From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#24982: 24.5; way to let Elisp reader ignore unreadable #(...) constructs Date: Mon, 2 Apr 2018 14:32:41 -0700 (PDT) Message-ID: <29891599-9f11-4154-9bcf-d51c5f21a2a1@default> References: <87fu4dwoum.fsf@mail.linkov.net> <10ca4da9-449c-48dd-96a0-c9bb4e426326@default> <87370dib1r.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1522704669 5985 195.159.176.226 (2 Apr 2018 21:31:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2018 21:31:09 +0000 (UTC) Cc: 24982@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 02 23:31:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f372e-0001S3-GX for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Apr 2018 23:31:04 +0200 Original-Received: from localhost ([::1]:36780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f374h-0008W8-PM for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Apr 2018 17:33:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f374b-0008Vq-4O for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 17:33:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f374Y-0004Z3-0C for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 17:33:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55836) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f374X-0004Yf-RL for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 17:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f374X-00061c-LN for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 17:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Apr 2018 21:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24982-submit@debbugs.gnu.org id=B24982.152270477423146 (code B ref 24982); Mon, 02 Apr 2018 21:33:01 +0000 Original-Received: (at 24982) by debbugs.gnu.org; 2 Apr 2018 21:32:54 +0000 Original-Received: from localhost ([127.0.0.1]:35500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f374P-00061G-PM for submit@debbugs.gnu.org; Mon, 02 Apr 2018 17:32:53 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:55834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f374N-000611-5j for 24982@debbugs.gnu.org; Mon, 02 Apr 2018 17:32:51 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w32LHh0Z084366; Mon, 2 Apr 2018 21:32:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=vUBGlDPUv4sqRD7LL6iYK0T3GuSQkq8VON2YilkxMUM=; b=FP4LLavrkxg83U0Aea08hOIb5cZ9b0pLHl7S83fIXbkLsG0ybOFh4oeYvurmgOrLNx6a a6765siOMZmrAStKXPPJzMgVzmldqErXoQC4tuijOoUHS4LdfDPabEMpV/plWOEGCqJ8 KIltUBq+dPjd87TPXCsSydfHd+T/GrYxO2uQBs1h0UrdbhbgvrE01X8ArpVc2CLcmWtu H/ANZoPMtLBWSgzcc0xtVmCBTZD3PMOVlMGkdVJzF/KYUaDTq8MHNY4amYBu+KL3T8Q6 NIXzzCf3tyyhv1AU/Ol/6rmEbnbnZqh3YQgKCAPjilVJ7wauiAglGbPpd8+UqHba/7Bj Zg== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2h3va8r1rc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 Apr 2018 21:32:44 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w32LWhwx016130 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 2 Apr 2018 21:32:44 GMT Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w32LWgqR000928; Mon, 2 Apr 2018 21:32:43 GMT In-Reply-To: <87370dib1r.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4666.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8851 signatures=668697 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=655 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804020229 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144809 Archived-At: > >> > Enhancement request: > >> > Provide a Boolean variable or a wrapper macro that has the effect of > >> > not raising an error but just skipping over any unreadable #(...) > >> > construct. > >> > >> There is such macro called =E2=80=98ignore-errors=E2=80=99. > > > > No. That ignores all errors. > > > > Is there an error handler that covers all and only #(...) read errors? ^^^^^^^^ > Then you can use something like > (condition-case err > (read (current-buffer)) > (invalid-read-syntax err)) > that for example for unreadable # returns > (invalid-read-syntax "#") And (read ")((") gives (invalid-read-syntax ")"). So it's not specific to unreadable #(...) or #....