From: Alex <agrambot@gmail.com>
To: 24812@debbugs.gnu.org
Subject: bug#24812: 25.1; Missing (binary) radix format directive
Date: Sat, 29 Oct 2016 13:34:02 -0600 [thread overview]
Message-ID: <87h97v9cgl.fsf@gmail.com> (raw)
In-Reply-To: <87zilpqexn.fsf@gmail.com> (Alex's message of "Thu, 27 Oct 2016 22:24:04 -0600")
Alex <agrambot@gmail.com> writes:
> Emacs' `format' has %o, %x, and %d, but it's missing both the ~r and ~b
> radix directives from Common Lisp's `format'.
>
> I can understand leaving out ~r, but I think ~b is worth adding to
> Emacs' `format'.
>
> CL example:
> (format nil "~b" 5) => "101"
>
> Requested:
> (format "%b" 5) => "101"
I noticed that while string_to_number supports an arbitrary base,
number_to_string doesn't.
If number_to_string was symmetric in this aspect, then ~b and ~r should
be straightforward to implement, right?
prev parent reply other threads:[~2016-10-29 19:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-28 4:24 bug#24812: 25.1; Missing (binary) radix format directive Alex
2016-10-29 19:34 ` Alex [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h97v9cgl.fsf@gmail.com \
--to=agrambot@gmail.com \
--cc=24812@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.