]> git.eshelyaron.com Git - emacs.git/commit
Support "%x" etc. formats on more floats
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Jul 2019 08:42:32 +0000 (01:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Jul 2019 08:46:41 +0000 (01:46 -0700)
commitdfb0ba79b5f41ca6fed25a03d2a5cd6996ec4753
tree87426b1fde8da618b4e7657b09bc256f5c011dcc
parent56a3e4a5d366a8453608d9a604ebd5ddb4e52245
Support "%x" etc. formats on more floats

* doc/lispref/strings.texi (Formatting Strings): Document this.
* src/editfns.c (styled_format): Support %o, %x, and %X on
finite floats less than zero or greater than UINTMAX_MAX.
* test/src/editfns-tests.el (format-%x-large-float)
(read-large-integer, format-%o-negative-float):
Adjust tests to match extended behavior.
Rename the latter test from format-%o-invalid-float,
since the float is no longer invalid.

* test/src/editfns-tests.el (format-%x-large-float)
(read-large-integer): Test this.
doc/lispref/strings.texi
src/editfns.c
test/src/editfns-tests.el