rather than `string-to-number', to trap non-numeric input.
Fixes: debbugs:14254
+2013-04-24 Glenn Morris <rgm@gnu.org>
+
+ * subr.el (read-number): Once more use `read' rather than
+ `string-to-number', to trap non-numeric input. (Bug#14254)
+
2013-04-22 Erik Charlebois <erikcharlebois@gmail.com>
* emacs-lisp/syntax.el (syntax-propertize-multiline):
(condition-case nil
(setq n (cond
((zerop (length str)) default1)
- ((stringp str) (string-to-number str))))
+ ((stringp str) (read str))))
(error nil)))
(unless (numberp n)
(message "Please enter a number.")