From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#24982: 24.5; way to let Elisp reader ignore unreadable #(...) constructs Date: Sat, 22 Aug 2020 12:25:57 -0700 (PDT) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35918"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 24982@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 22 21:27:09 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1k9ZAT-0009FP-I1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Aug 2020 21:27:09 +0200 Original-Received: from localhost ([::1]:38090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9ZAS-00045F-BC for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Aug 2020 15:27:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9ZAM-00044r-0X for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 15:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39986) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k9ZAL-0007S2-Nq for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 15:27:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k9ZAL-0003xz-J7 for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 15:27: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: Sat, 22 Aug 2020 19:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24982 X-GNU-PR-Package: emacs Original-Received: via spool by 24982-submit@debbugs.gnu.org id=B24982.159812436715181 (code B ref 24982); Sat, 22 Aug 2020 19:27:01 +0000 Original-Received: (at 24982) by debbugs.gnu.org; 22 Aug 2020 19:26:07 +0000 Original-Received: from localhost ([127.0.0.1]:51532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9Z9T-0003wl-1u for submit@debbugs.gnu.org; Sat, 22 Aug 2020 15:26:07 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:38992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9Z9R-0003w9-Pf for 24982@debbugs.gnu.org; Sat, 22 Aug 2020 15:26:06 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 07MJNhWm079147; Sat, 22 Aug 2020 19:26:00 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-2020-01-29; bh=GZ49JcoBz3xVFTYntfyvEKHrtko7J605hmy8ehB0RPQ=; b=UPC7Jcf61Dw/J4xvVQe1WAJG/2T7Lg1L6C0g5KwNB+J2+ifV035yImoRqpBcVLNQLEqu jyI+cyyvBCylhEC1+sT7UzPETQbK2hv6oNiMi53hJ6Wk550HVhCrWYX/aY6D+UmrN8EO awXdJP6AY7geQM/ccm3i9Q+l2LREV4p9aZ6/ZKOHOEB7h60rk5ZCMVq28h9+MlKzZXHN /vqkm4/yxZ6Msszuj8t5bSc7DOVWNW4Dug0AcboRnvoE0hz5BdXcvpI2T7C64UQa1ZCB y1TqLocTvfKYjdHHzlC5DHDnkc9SHxqhlYIyOWmwhprpgcg1bOOTBaUuFtfgDIRD4B/4 GQ== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 332v0msd7j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 22 Aug 2020 19:25:59 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 07MJNwol155125; Sat, 22 Aug 2020 19:25:59 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 332u60u48n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 22 Aug 2020 19:25:59 +0000 Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 07MJPwEC018458; Sat, 22 Aug 2020 19:25:58 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5044.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9721 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 phishscore=0 bulkscore=0 adultscore=0 mlxscore=0 suspectscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008220214 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9721 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 bulkscore=0 mlxlogscore=999 adultscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1011 malwarescore=0 spamscore=0 impostorscore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008220214 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:185995 Archived-At: > > Enhancement request: > > > > Provide a Boolean variable or a wrapper macro that has the effect of no= t > > raising an error but just skipping over any unreadable #(...) construct= . > > > > (I really wish this were available for older Emacs versions. Those are > > the ones that barf on #(...) constructs that are supported in later > > versions. >=20 > What's the use-case here? Why can't you use `ignore-errors'? (ignore-errors (read (current-buffer)) doesn't advance over the sexp. I guess what I mean is a #() construct that raises an (invalid-read-syntax "#") error. A situation where there is, in fact, a #(...) present but that error gets raised. It's possible that the request is underspecified; dunno. The parenthetical remark in the request is really the motivation. For older Emacs the syntax #(...) didn't exist. But that error can still be raised, when the syntax of the `...' isn't valid.