From: Andreas Schwab <schwab@linux-m68k.org>
To: ams@gnu.org (Alfred M. Szmidt)
Cc: emacs-devel@gnu.org
Subject: Re: C-x C-e on numbers
Date: Thu, 04 Dec 2014 17:27:18 +0100 [thread overview]
Message-ID: <87bnnjjs7t.fsf@igel.home> (raw)
In-Reply-To: <E1XwYlG-0002j7-15@fencepost.gnu.org> (Alfred M. Szmidt's message of "Thu, 04 Dec 2014 10:56:10 -0500")
ams@gnu.org (Alfred M. Szmidt) writes:
> Currently, when evaluating a number, emacs will print the decimal,
> octal, hexadecimal, and charachter of said number.
>
> 42 C-x C-e ==> 42 (#o52, #x2a, ?*)
>
> It would be useful, if the output would also include the binary
> representation of the number. Or at least somehow enable such
> behaviour. I.e.,
>
> 42 C-x C-e ==> 42 (#b101010, #o52, #x2a, ?*)
Since there is no builtin way to format numbers in binary this requires
some work. Also, the binary representation of a number can get quite
long. IMHO it doesn't add much value over the octal representation.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2014-12-04 16:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-04 15:56 C-x C-e on numbers Alfred M. Szmidt
2014-12-04 16:27 ` Andreas Schwab [this message]
2014-12-04 16:47 ` Stephen Leake
2014-12-05 6:53 ` Stephen J. Turnbull
2014-12-05 7:04 ` Stefan Reichör
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bnnjjs7t.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=ams@gnu.org \
--cc=emacs-devel@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).