1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-13 23:10:26 -08:00
emacs/doc
Jacob S. Gordon cff022f0c3 Add binary format specifications '%b' and '%B'
These produce the binary representation of a number.
'%#b' and '%#B' prefix with '0b' and '0B', respectively.
(bug#79990)
* etc/NEWS: Announce change.
* doc/lispref/strings.texi (Formatting Strings): Describe new format
specs and add to comment on reconstructing the value with 'read'.
* src/editfns.c (format): Update doc string.
(styled_format): Add support for '%b' and '%B'.  To remain
portable, avoid use of 'sprintf' by converting by hand.
* test/src/editfns-tests.el (format-binary-zero, format-binary-floats)
(format-binary-nonzero-integers): Add tests.
(read-large-integer): Add binary test cases.
Co-authored-by: Paul Eggert <eggert@cs.ucla.edu>
2025-12-22 00:15:09 -08:00
..
emacs ; Fix last commit 2025-12-21 13:20:06 +01:00
lispintro ; Fix file name in "Loading Files" doc. 2025-07-24 22:13:47 -07:00
lispref Add binary format specifications '%b' and '%B' 2025-12-22 00:15:09 -08:00
man Manual pages: use a showcase time-stamp-pattern 2025-10-16 17:29:01 -07:00
misc * doc/misc/tramp.texi (FUSE setup): Extend rclone setup section. 2025-12-21 10:14:58 +01:00
translations Update copyright year to 2025 2025-01-02 18:39:42 +01:00