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: [External] : Re: bug#24982: 24.5; way to let Elisp reader ignore unreadable #(...) constructs Date: Sun, 13 Feb 2022 17:33:43 +0000 Message-ID: References: <87zgmvxig4.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38618"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "24982@debbugs.gnu.org" <24982@debbugs.gnu.org>, Stefan Monnier To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 13 18:34:12 2022 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 1nJIlI-0009qf-Bk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Feb 2022 18:34:12 +0100 Original-Received: from localhost ([::1]:34862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJIlH-0007Ly-4G for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Feb 2022 12:34:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJIl8-0007Lq-Ak for bug-gnu-emacs@gnu.org; Sun, 13 Feb 2022 12:34:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44945) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nJIl8-0005GD-1b for bug-gnu-emacs@gnu.org; Sun, 13 Feb 2022 12:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nJIl7-0005A3-TN for bug-gnu-emacs@gnu.org; Sun, 13 Feb 2022 12:34:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Feb 2022 17:34: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.164477363219824 (code B ref 24982); Sun, 13 Feb 2022 17:34:01 +0000 Original-Received: (at 24982) by debbugs.gnu.org; 13 Feb 2022 17:33:52 +0000 Original-Received: from localhost ([127.0.0.1]:38842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJIkx-00059g-Tg for submit@debbugs.gnu.org; Sun, 13 Feb 2022 12:33:52 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:17022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJIku-00059V-JV for 24982@debbugs.gnu.org; Sun, 13 Feb 2022 12:33:50 -0500 Original-Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21DAe3dm031159; Sun, 13 Feb 2022 17:33:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=sV3iOF72k32Ykg0OTcHQ6f7rz/PfLmgjG7BNpF7Qnbk=; b=h1yduQ/6S6eKpa99gX3yOLAzVGLE7I6Vb2TguMkA+/YwNpKhbhT1v90Y+CsqUsGl9v46 puwyw4krOP/dPSajP9Y4IUlij/vzf7P+jnsa8vjf0dMaSqY21Z6sHBUmiTbZWdW5FH37 XV5ot30niz9n83+zsCxGuTdkuQF3u4gh2/9LSoXzTg7YBxgQ9rTzlf2UAuDB9PD2+mbs hnWN0CSNJYz7VwmoaA/6p9slz7U3qSfVsA5eloa7G7/x97nJyV1uYOvON7tZoCdNwvxN QBfNdN17sApGi7t5eelrEB9oG3A+IbNL7+x8aWVFGVz/gVAppt4Usqyeh4CfrHgJk4wF LQ== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3e64sbtfej-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 13 Feb 2022 17:33:47 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 21DHGMoc007641; Sun, 13 Feb 2022 17:33:46 GMT Original-Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2042.outbound.protection.outlook.com [104.47.66.42]) by aserp3030.oracle.com with ESMTP id 3e62xc76md-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 13 Feb 2022 17:33:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XwqaYrIEanyOUC5Bs3k2Sl4O9FaVAdPy9gQoMykVujSTiL9ft9CC0jd4ie10m/zWn6/Q8cMGLAM+/raz6t0Y+A+1Pa57WXBU/IvyAdkF7bBkbQh3GbjqfCTf+XAwEKGJ0BDZIqYEOM4aoFENcvuGpD20eg/2G7v2GIRxCT75uDI4iWwfylHqCAcC3z1/b6yKfr4WgVGx7i3YxG/60iUnaDLGlgCmiNfjJlCyZz96Hh3RudifAZDCrw2dJ8ye15WlYN3AgUMuiDWoHcY8Jvz720tQwzyint/u2KXInHS/w84A6aQLiGkRNuz2djZOVyNnU6FH2r4OgNfg4mW4kx8CKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sV3iOF72k32Ykg0OTcHQ6f7rz/PfLmgjG7BNpF7Qnbk=; b=F6z2XmNcR+hTTA/16w9gT2MVpCr6oeROQRdN2bG/nBb9fWRUTKK1Nf6i1ttHxofeKCvLL0rXT309xDPA9D/OsuLdvqID377g8re7diBo7jfqzcZppLLiYl2YfBuQNSuLHDpRM0QCjL8+gjhtTRC9eKN7qQMieLiRcrMtsVc9MwLnPgvnPbbpua+ZXXxYWQWBajDJRChAI4PqoVUuJwlJy6kOLdMxp5a0KCSCrAkQJZ46VeDMqKY5digu7evJj7NG4xi74nOoYjByYnBhlzilPH5nI/HGanhCxnR8qCr1C37e4YFNdJypetOW00LeUhjayREOarHNXC2w7oFTlwhDKA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sV3iOF72k32Ykg0OTcHQ6f7rz/PfLmgjG7BNpF7Qnbk=; b=RcaUDhKE6hDnx1mXdQrwI/PsDQmgD1TFKdXl+UGEysUV2zvEpUZTySbucO8ex76deIiFcVj+wXMnZtnhJqhCb1J3kLtppqrF8ufszi5qQg+y//tysS2y/assa0k/f78oSdiitbrePnTnVG/pfUtxGyKpsDDmK3PHO0OAq9djAu8= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by DM6PR10MB4233.namprd10.prod.outlook.com (2603:10b6:5:213::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11; Sun, 13 Feb 2022 17:33:44 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::6d28:e29d:4c51:6d04]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::6d28:e29d:4c51:6d04%5]) with mapi id 15.20.4975.017; Sun, 13 Feb 2022 17:33:43 +0000 Thread-Topic: [External] : Re: bug#24982: 24.5; way to let Elisp reader ignore unreadable #(...) constructs Thread-Index: AQHYILY7h28yIz8bN0mI894ZDI5YGqyRvKvQ In-Reply-To: <87zgmvxig4.fsf@gnus.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b2b6c4a5-f241-43db-938c-08d9ef16fb9d x-ms-traffictypediagnostic: DM6PR10MB4233:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tBBl8eJEOBBC6jz9cd05UQ0L9o0nTl1qgpqPm4xtUTU5Lbyn0h/VZkVsg6go038FAVeKeD0FnC3fsjQ1/DsrrflzX4bVBpYSVabm3K9+BofL61ONjkVD6B56VYKq+YH22wp1BYqkaTE1XxLThEJOqv+I6wP0HsFBoFcQxgdNgoAuQ/Dhu4rL9p2pc3EJfZ7Q2U5z3Z9TMOndw9psGAxJPyPYMifd6ggI4rKWfLYgp+0aAUeihV2j56FaExTM+luPXsBDb4A3pZz238F6Yw6UtBDrxwB343/c37Q0YGMPdP1ICcNcIPDHTUIWfcM8hFxnE+n7uyj13LANDPdDb1cZiWO+peBN2uz/7cmTJ2yqEM2n8V9MRLaM7US+3gwpCmLILxzCSd96Ipr+43oDr+nDAdNzMP9KhRuJmGuuD4IVy5X1YpzX5rj08ZOj8fHve1w323TiL6LyIXMJoqpw8wzZUZHVH0nk3eCiwYwVZmo0zhONT4CxJJvY9bHMWuEG3oxW6Mj+6fo1LTMdVa5zngT6lxoYKLPE6WWEp3LrWyW+JZPdd6IpF8vqDquuGnXSvxZzhXoRbZDrAtqKHGFpJKgWAGkDHPkiP7BdovUBXd7ZBArBgPs89yss7U27GBafayN2aJB3UvAmsHb4ocqIe6OBUJmBQCiq8dkBS74/hecSKzX5av/F903HlrfA8oO5OPprNbnG3eUnpzdRZnWQusRLNkscvrfyaOBXeiRjMkKpe6IUxn7OEefx3PObADtZR YfeZ905vZfR12EiJqiGtOWAwBD2BIojjdcZhCGtVGN3L+u7zgkadnPJcIIC1Q/yHj/o x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(6916009)(26005)(44832011)(316002)(33656002)(186003)(54906003)(55016003)(2906002)(5660300002)(66446008)(66476007)(83380400001)(38100700002)(52536014)(8936002)(7696005)(508600001)(66946007)(76116006)(64756008)(122000001)(66556008)(86362001)(966005)(9686003)(71200400001)(8676002)(6506007)(38070700005)(4326008)(43043002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: qVIZRKnKzG7rLGPOFysorSFtIrCehyK+LSGqaD9jzjSMuNNdnDNPTrXOEEuQMfCihaH1DfK/mAHSW3Znc4TE7C3OuImTsP3oqAobjz3PDwoGdalmS1V77b9pmhV+cD/dZw9hGkHbaXqA8TElORU5+oa+8L1AI4h3KRJb/gx0f38tEjICO8IUj1DwL/O8Bknt7bZfvlzdJH2tS1ZG7iSgw7zxe/ad25iXvo91HLbSmJPeO4e2PP8wKJg9ukMBgr9OH83kK2v8aeS91Q7WT4frrNwjq+Tfmog7YzSremSKFpatFBHPi85aimO/jaHQgLJlECKlGw4g5kqnz5U4i+oC0RbsuUt3UuVJ20YOWM5glkfWqBIzH+wiL5P+k3a+GAs/9jcXa8PjG0Vx7vSw22P1zN937fYJM4t4Ad/H4PiacGU9yZPberEfWn8MjTXCzybP4bJnVYBqRPqj4NrzmsaaULBvL4oWIdVBYFsXPODEcy91Q+f2S/ZTQFLpC3y22Df9q9KzXXNOIcv/Z2bjbMFGonga1XP6mkGfjM8lam/+kkL+Syyv8XyK9uQ1//1Wpliw6rk5vQJo7n7XUghVY11Zh337dd1LHqTZQn9CINXsybgSzQhzqyocs69JbpPFmrWR1FC32JqG4JBrEKaeIqT+AOZxI3EMifYj5x89tunzH1+YUF9O3xtxlQUAUxRap3xTc2dz3oc1Okw2dICBB225N23YsKgPIVoWXEYSc9BXSdEdLVRjAOHm0Vthaa eKaSACCk7uBFabatAXUzu+CYekuCKdR8bAATxErOoOdxVaSkumxzvAvqMN7LdZuc/FI/yAIqAs1wklK96sJxtOZIWPmB2bn2sk X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2b6c4a5-f241-43db-938c-08d9ef16fb9d X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2022 17:33:43.7956 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: PXqVximaFDzBLA9yfAaIrlnt3F8MFPOHEATMZNb7OfO1WdqHu/d5TOko/FmRz4M4C/WDen+LzmzAzKLOB55srA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR10MB4233 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10257 signatures=673431 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 phishscore=0 bulkscore=0 malwarescore=0 adultscore=0 spamscore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202130119 X-Proofpoint-GUID: F3aDbSVFROs0N56pxbfb66IW-JHueKd_ X-Proofpoint-ORIG-GUID: F3aDbSVFROs0N56pxbfb66IW-JHueKd_ 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:226825 Archived-At: > > 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= . >=20 > I assume you mean #<...> here? No. I meant #(...). I wrote that twice. But if you like you could extend this request to some other - or to ALL - # reader syntax. In that case, it would be good to be able to specify just which syntaxes to ignore - e.g., have an option or defvar whose value is a list that specifies which to ignore (e.g. in a given context). E.g. (from `i # TAB' in the Elisp manual): ## #$ #' #( #@COUNT #: #N# #N=3D #^ > Anyway, there was some discussion about this in the context of the new > readablep function and the `print-unreadable-function' variable. We > could indeed introduce a new `read-unreadable-function' variable that's > called when we encounter a #< instead of throwing an error (with no > performance impact). >=20 > Does anybody see any major downsides to doing that? We've been wary of > allowing the users to customise the Emacs Lisp reader, but this seems > like a very small thing. And it'd allow people to implement having >=20 > # >=20 > read to (make-marker), etc, if they find that useful for some data > structures. >=20 > I had an extremely quick peek at this some time back, and it seemed > pretty trivial to implement. >=20 > Any opinions? >=20 > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: > https://urldefense.com/v3/__http://lars.ingebrigtsen.no__;!!ACWV5N9M2RV99= hQ! > ecUUd4A1C-jNt5HVD7l0qY450h_bpEQRCBEBtE78iCT4tITSqr-AY6VKDdpX9cNx$