1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-25 05:52:42 -08:00
emacs/doc
Paul Eggert d0e2a341dd (format "%d" F) now truncates floating F
Problem reported by Paul Pogonyshev (Bug#31938).
* src/editfns.c: Include math.h, for trunc.
(styled_format): For %d, truncate floating-point numbers and
convert -0 to 0, going back to how Emacs 26 did things.
* doc/lispref/strings.texi (Formatting Strings):
Document behavior of %o, %d, %x, %X on floating-point numbers.
* src/floatfns.c (trunc) [!HAVE_TRUNC]: Rename from emacs_trunc
and make it an extern function, so that editfns.c can use it.
All callers changed.
* test/src/editfns-tests.el (format-%d-float): New test.
2018-06-25 12:23:08 -07:00
..
emacs Fix spelling of "intermediate" (it's not "intermediary") 2018-06-25 18:56:55 +02:00
lispintro Merge from origin/emacs-26 2018-06-23 07:50:59 -07:00
lispref (format "%d" F) now truncates floating F 2018-06-25 12:23:08 -07:00
man Merge from origin/emacs-26 2018-05-15 09:09:48 -07:00
misc Mention use of C-h . (display-local-help) in Flymake manual 2018-06-25 12:29:04 +01:00