From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: ignore-error? Date: Mon, 15 Jul 2019 10:45:58 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="193923"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 15 16:46:14 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hn2F3-000oK3-IZ for ged-emacs-devel@m.gmane.org; Mon, 15 Jul 2019 16:46:13 +0200 Original-Received: from localhost ([::1]:39644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn2F2-0000uC-Bh for ged-emacs-devel@m.gmane.org; Mon, 15 Jul 2019 10:46:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38679) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn2Es-0000qZ-VH for emacs-devel@gnu.org; Mon, 15 Jul 2019 10:46:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hn2Es-0006Sm-2w for emacs-devel@gnu.org; Mon, 15 Jul 2019 10:46:02 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:25974) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hn2Er-0006SP-Ty for emacs-devel@gnu.org; Mon, 15 Jul 2019 10:46:02 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 10D3D81053; Mon, 15 Jul 2019 10:46:01 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D18A680D6B; Mon, 15 Jul 2019 10:45:59 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1563201959; bh=s1mZOwGpxFx7kFTherl6P9ZKDyVCfBgAvyYiYZ6yARc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=X6is7thvUoWWXtnABPcLKjv5t9K0u1XmngbGZFZHZNqAdKjYmBqcv7CHNG9aBPtZq iSABLW5/ED5nZo4ay3KPmuMyAEw6nty1Cp/7Om1VxQ9oO3X3AHTt/xR7RHr7jUOV0L HpZz+XZVk5WU8TmMjhN+b94IwoMiFDtKnuUuv+ahQphRWwuZ3QdgiibTNXKEhrOk/1 ANn9VhcAa9AFdVYNnEZOVzFZxu+SGDjqUfPKQNBj4qBrwpqBga10ypLT4cn5q4Wi2r MH9HPeIoDT7my0R7G2c9mppV3QHdSOVv+k5i5H6Uh77SfAifsEn0qTr8nTk98oe8u5 oDb5KgDBueotw== Original-Received: from pastel (104-222-123-229.cpe.teksavvy.com [104.222.123.229]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9150912063B; Mon, 15 Jul 2019 10:45:59 -0400 (EDT) In-Reply-To: (Lars Ingebrigtsen's message of "Mon, 15 Jul 2019 15:36:03 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238597 Archived-At: > But it sure would be nice if we had some way of telling at least some of > the errors that a function can raise... We could decide that docstrings should mention which errors are signal'd, indeed. Ideally in a standardized format. > Let's see... It's this stuff? Yup. > The parameter should perhaps also be allowed to be a list of symbols: > > (ignore-error (file-error some-other-error) > (foo)) Even better, Stefan