From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.devel Subject: Re: Why (substring "abc" 0 4) does not return "abc" instead of an error? Date: Mon, 16 Jul 2012 17:22:42 +0200 Organization: GNU Message-ID: <874np7ennh.fsf@gnu.org> References: <50038E42.1030508@yandex.ru> <87liij3l8f.fsf@kuiper.lan.informatimago.com> <87r4sbeplm.fsf@altern.org> <87hat73g4l.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342452137 23850 80.91.229.3 (16 Jul 2012 15:22:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2012 15:22:17 +0000 (UTC) Cc: "Pascal J. Bourguignon" , emacs-devel@gnu.org To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 16 17:22:16 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 1Sqn7n-0000IE-9X for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2012 17:22:15 +0200 Original-Received: from localhost ([::1]:47834 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sqn7m-0005rq-Ft for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2012 11:22:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sqn7k-0005rg-1G for emacs-devel@gnu.org; Mon, 16 Jul 2012 11:22:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sqn7j-0004aM-3A for emacs-devel@gnu.org; Mon, 16 Jul 2012 11:22:11 -0400 Original-Received: from mail-we0-f169.google.com ([74.125.82.169]:54061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sqn7i-0004a9-Sc for emacs-devel@gnu.org; Mon, 16 Jul 2012 11:22:11 -0400 Original-Received: by weys10 with SMTP id s10so3415022wey.0 for ; Mon, 16 Jul 2012 08:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:organization:references :user-agent:date:message-id:mime-version:content-type; bh=0sTeMRSDYEOB6Zy/fGAncsFo4h9602Tb7herAoE3LRs=; b=xVksdRTvfBKgR2qqd3+yJd5bzx6W42uPJLbZ/i6W4uXrKh3vUrDUK7QLGryg0GMri3 BK6bJYzrelC/dr7ALcTd7f4HKU9Z/KoeiDnheZM7+6haFN60WnmhRje1UJbfEkI0QHEW JOsIBojQKHaAv0efoPBdkMuAb6dTV90vdxeQcFHp0xW1xO3laCjMPGbTTGdvrVzYDi6G lgz9omrOYqZbSqNIKYmGyyy6dcSMg9MryNh9bSAUFtRAztXsjF6Pkfx6oZ6bEfx7ETnZ xeqf3WNyD8G5slvq2R5+g7q5K8yBjxKES8xnzhOluqlEfGY44cJ4yH9kEFtfQzJq6T9t OHNg== Original-Received: by 10.180.97.106 with SMTP id dz10mr18983978wib.21.1342452130003; Mon, 16 Jul 2012 08:22:10 -0700 (PDT) Original-Received: from myhost.localdomain (mar75-2-81-56-68-112.fbx.proxad.net. [81.56.68.112]) by mx.google.com with ESMTPS id fu3sm32460044wib.10.2012.07.16.08.22.08 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jul 2012 08:22:08 -0700 (PDT) Original-Received: by myhost.localdomain (Postfix, from userid 1000) id EB13B8207; Mon, 16 Jul 2012 17:22:42 +0200 (CEST) In-Reply-To: (Lennart Borgman's message of "Mon, 16 Jul 2012 17:07:10 +0200") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.169 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:151671 Archived-At: Lennart Borgman writes: > It is a good reason not to change the old behaviour. However > introducing a new function in Emacs like the one you suggest would > save time for all those who need this function. Well, a third argument to let the function fail quitely would do. > (It is hard for me even to come up with an example where I do not want > this instead of the old one.) For me too :) -- Bastien