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: Inconsistency in `string-to-number' Date: Fri, 24 Apr 2009 09:22:15 -0400 Message-ID: References: <47083.128.165.123.18.1240532205.squirrel@webmail.lanl.gov> <833abygwxo.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1240579371 23165 80.91.229.12 (24 Apr 2009 13:22:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Apr 2009 13:22:51 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 24 15:24:11 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LxLNq-0001Sj-PR for ged-emacs-devel@m.gmane.org; Fri, 24 Apr 2009 15:24:03 +0200 Original-Received: from localhost ([127.0.0.1]:48148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxLMR-0005mO-JG for ged-emacs-devel@m.gmane.org; Fri, 24 Apr 2009 09:22:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LxLMM-0005m8-Ii for emacs-devel@gnu.org; Fri, 24 Apr 2009 09:22:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LxLMH-0005lb-Fg for emacs-devel@gnu.org; Fri, 24 Apr 2009 09:22:29 -0400 Original-Received: from [199.232.76.173] (port=54630 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxLMH-0005lY-8h for emacs-devel@gnu.org; Fri, 24 Apr 2009 09:22:25 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:28236) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LxLMF-0008Ol-D4; Fri, 24 Apr 2009 09:22:23 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApQFAE9a8UlMCrUB/2dsb2JhbACBUNAHg3QFhS4 X-IronPort-AV: E=Sophos;i="4.40,241,1238990400"; d="scan'208";a="37550590" Original-Received: from 76-10-181-1.dsl.teksavvy.com (HELO pastel.home) ([76.10.181.1]) by ironport2-out.teksavvy.com with ESMTP; 24 Apr 2009 09:22:15 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 833FC7EFE; Fri, 24 Apr 2009 09:22:15 -0400 (EDT) In-Reply-To: (Juanma Barranquero's message of "Fri, 24 Apr 2009 13:45:50 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110458 Archived-At: >> Looks like a bug to me. =A0Either (string-to-number "1:") should return >> zero, as if the string was not a number at all > That, and clarifying the docstring, would be the most sensible solution. Except that it will break existing code. Stefan