From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Why (substring "abc" 0 4) does not return "abc" instead of an error? Date: Mon, 16 Jul 2012 12:15:22 -0400 Message-ID: References: <87fw8smxag.fsf@gnu.org> <877gu4mv85.fsf@gnu.org> <871ukcmb47.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342455343 19083 80.91.229.3 (16 Jul 2012 16:15:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2012 16:15:43 +0000 (UTC) Cc: Juanma Barranquero , emacs-devel@gnu.org To: Bastien Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 16 18:15:41 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SqnxV-0005iR-9M for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2012 18:15:41 +0200 Original-Received: from localhost ([::1]:48668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqnxU-0000UF-FI for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2012 12:15:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqnxN-0000N0-95 for emacs-devel@gnu.org; Mon, 16 Jul 2012 12:15:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SqnxF-0001zj-L8 for emacs-devel@gnu.org; Mon, 16 Jul 2012 12:15:33 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:59991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqnxF-0001zf-HC; Mon, 16 Jul 2012 12:15:25 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q6GGFMbs020263; Mon, 16 Jul 2012 12:15:23 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 5A511AE2FE; Mon, 16 Jul 2012 12:15:22 -0400 (EDT) In-Reply-To: <871ukcmb47.fsf@gnu.org> (Bastien's message of "Mon, 16 Jul 2012 09:14:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered GEN_SPAM_FEATRE=0.2, RV4281=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4281> : streams <785644> : uri <1166789> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151678 Archived-At: >> Would it be handy? Sometimes, perhaps. At other times, having >> substring check that TO is indeed in range is quite useful. > I would be happy with a third optional argument FAIL-SILENTLY. We have general functionality when you want to ignore some errors, such as condition-case. Stefan