From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vitalie Spinu Newsgroups: gmane.emacs.bugs Subject: bug#14254: 24.3; read-number fails to recognize faulty numbers (string-to-number to blame) Date: Wed, 24 Apr 2013 16:48:04 +0200 Organization: EUR Message-ID: <877gjsast7.fsf@gmail.com> References: <87ehe0ayf9.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1366815625 16784 80.91.229.3 (24 Apr 2013 15:00:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Apr 2013 15:00:25 +0000 (UTC) Cc: 14254@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 24 17:00:29 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1UV1BL-00045F-5k for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Apr 2013 17:00:27 +0200 Original-Received: from localhost ([::1]:48174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV1BK-0007da-St for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Apr 2013 11:00:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV1B5-0007JY-Ny for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2013 11:00:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UV1Ay-0007sa-Fq for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2013 11:00:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV10G-0003a5-4f for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2013 10:49:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UV158-00088p-8p for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2013 10:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vitalie Spinu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Apr 2013 14:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14254 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14254-submit@debbugs.gnu.org id=B14254.136681519331094 (code B ref 14254); Wed, 24 Apr 2013 14:54:02 +0000 Original-Received: (at 14254) by debbugs.gnu.org; 24 Apr 2013 14:53:13 +0000 Original-Received: from localhost ([127.0.0.1]:41101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UV14K-00085T-VL for submit@debbugs.gnu.org; Wed, 24 Apr 2013 10:53:13 -0400 Original-Received: from mail-wi0-f171.google.com ([209.85.212.171]:33602) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UV14I-000857-Ff for 14254@debbugs.gnu.org; Wed, 24 Apr 2013 10:53:11 -0400 Original-Received: by mail-wi0-f171.google.com with SMTP id l13so7527228wie.4 for <14254@debbugs.gnu.org>; Wed, 24 Apr 2013 07:48:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version:content-type; bh=p7P5xVKE7Dx6P0+CYE21Zo/fVVhBKOqV6heBCa1rSv8=; b=HnAhZXZYexrPrhPgCqRY1GFXLsSJ9O52jCsNtN2a+79TVVyxfKYlVrnDi7XRiHxopL mXtgqHDZCmHfWa5bipiCvq/yKLcdswXU3eD2cou4BdvwTMTqegqYAswdS5p1SRusenJr bYzs8Ab1aGwsQ1OHlRhfpIXq6gFcyvejjJI85E0nzEpJcarSeyYDc0Oko/SvPMheiZ+s i6yhrwpaW7I7VNFmR7hkk7fgQhpMlOTycnoXxCOtMtoIAArSJuVKu9edczItIDMJo4rJ rmZwR+GzyJOsYkzdC+xlz9klCvjaVmDhoxNLExGuLeWigUwn2p9/x454Zv+KE2HQgfd7 H8Zw== X-Received: by 10.194.10.129 with SMTP id i1mr54071013wjb.21.1366814886854; Wed, 24 Apr 2013 07:48:06 -0700 (PDT) Original-Received: from localhost (dhcp-077-249-018-128.chello.nl. [77.249.18.128]) by mx.google.com with ESMTPSA id ej8sm32833776wib.9.2013.04.24.07.48.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 24 Apr 2013 07:48:06 -0700 (PDT) In-Reply-To: (Andreas Schwab's message of "Wed, 24 Apr 2013 16:21:28 +0200") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:73629 Archived-At: >> Andreas Schwab >> on Wed, 24 Apr 2013 16:21:28 +0200 wrote: > Vitalie Spinu writes: >> Now (string-to-number "junk") returns 0. > It always did, as documented. That presumably means that read-number never worked as originally expected. The comment in source file says that read-number should be used for "n" interactive spec, but "n" spec works as expected, so read-number is not used there. Wouldn't it be more natural for string-to-number to return nil rather than 0 in a non-number case? Vitalie