Subject: bug#14254: 24.3; read-number fails to recognize faulty numbers (string-to-number to blame)

From: Glenn Morris <[email-masked]>
Date: Wed, 24 Apr 2013 13:29:18 -0400

Vitalie Spinu wrote:

> This doesn't happen because read-number relies on string-to-number to
> throw an error, which presumably was happening some time ago.

No, it used to use "read", prior to
http://lists.gnu.org/archive/html/emacs-diffs/2012-07/msg00477.html

  Replace `read' with `string-to-number' for consistency with
  `number-to-string'.

I don't know why that mattered, it seems to bear no relation to the rest
of the change. Going back to "read" again will fix this.
Done in emacs-24.