unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ams@gnu.org (Alfred M. Szmidt)
To: emacs-devel@gnu.org
Subject: C-x C-e on numbers
Date: Thu, 04 Dec 2014 10:56:10 -0500	[thread overview]
Message-ID: <E1XwYlG-0002j7-15@fencepost.gnu.org> (raw)

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, ?*)

It would also be useful to change the printed representation of a
number, so that the above would become,

  #o52 C-x C-e ==> #x2a (#b101010, 42, #o52, ?*)

But this would probobly require some more work.




             reply	other threads:[~2014-12-04 15:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-04 15:56 Alfred M. Szmidt [this message]
2014-12-04 16:27 ` C-x C-e on numbers Andreas Schwab
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=E1XwYlG-0002j7-15@fencepost.gnu.org \
    --to=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).