From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#24982: 24.5; way to let Elisp reader ignore unreadable #(...) constructs Date: Mon, 02 Apr 2018 23:54:40 +0300 Organization: LINKOV.NET Message-ID: <87370dib1r.fsf@mail.linkov.net> References: <87fu4dwoum.fsf@mail.linkov.net> <10ca4da9-449c-48dd-96a0-c9bb4e426326@default> 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 1522702523 15199 195.159.176.226 (2 Apr 2018 20:55:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2018 20:55:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 24982@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 02 22:55:19 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 1f36Tz-0003nG-8t for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Apr 2018 22:55:15 +0200 Original-Received: from localhost ([::1]:34604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f36W2-0005Bt-TA for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Apr 2018 16:57:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f36Un-0004XR-3L for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 16:56:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f36Uk-0007Hl-J7 for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 16:56:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55799) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f36Uk-0007HV-En for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 16:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f36Uj-00059r-UG for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 16:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Apr 2018 20:56: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.152270251619771 (code B ref 24982); Mon, 02 Apr 2018 20:56:01 +0000 Original-Received: (at 24982) by debbugs.gnu.org; 2 Apr 2018 20:55:16 +0000 Original-Received: from localhost ([127.0.0.1]:35461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f36U0-00058o-12 for submit@debbugs.gnu.org; Mon, 02 Apr 2018 16:55:16 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:37967 helo=homiemail-a11.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f36Ty-00058f-FX for 24982@debbugs.gnu.org; Mon, 02 Apr 2018 16:55:14 -0400 Original-Received: from homiemail-a11.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTP id 47972314C06D; Mon, 2 Apr 2018 13:55:13 -0700 (PDT) Original-Received: from localhost.linkov.net (m91-129-105-236.cust.tele2.ee [91.129.105.236]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTPSA id 66F74314C069; Mon, 2 Apr 2018 13:55:12 -0700 (PDT) In-Reply-To: <10ca4da9-449c-48dd-96a0-c9bb4e426326@default> (Drew Adams's message of "Mon, 2 Apr 2018 13:31:54 -0700 (PDT)") 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:144808 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 #(...) constr= uct. >>=20 >> 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 "#")