Mercurial > emacs
diff src/ChangeLog @ 106406:b793459cea92
Fix `string-to-number' to deal consistently with integers and floats.
* lread.c (isfloat_string): New argument ignore_trailing to accept all
trailing characters, not just whitespace.
(read1): Pass new arg 0 to keep old behavior.
* data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
trailing chars, as it is already done for integers. Doc fixes.
* lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Fri, 04 Dec 2009 16:16:26 +0000 |
parents | a74fd8f1fd64 |
children | de4084d806f6 |
line wrap: on
line diff
--- a/src/ChangeLog Fri Dec 04 10:51:37 2009 +0000 +++ b/src/ChangeLog Fri Dec 04 16:16:26 2009 +0000 @@ -1,3 +1,13 @@ +2009-12-04 Juanma Barranquero <lekktu@gmail.com> + + Fix `string-to-number' to deal consistently with integers and floats. + * lread.c (isfloat_string): New argument ignore_trailing to accept all + trailing characters, not just whitespace. + (read1): Pass new arg 0 to keep old behavior. + * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore + trailing chars, as it is already done for integers. Doc fixes. + * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string. + 2009-12-04 Eli Zaretskii <eliz@gnu.org> * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete