From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan =?utf-8?Q?Reich=C3=B6r?= Newsgroups: gmane.emacs.devel Subject: Re: C-x C-e on numbers Date: Fri, 05 Dec 2014 08:04:13 +0100 Message-ID: <87y4qmk26q.fsf@xsteve.at> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417763095 22120 80.91.229.3 (5 Dec 2014 07:04:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2014 07:04:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 05 08:04:46 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XwmwU-0000Xa-K3 for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2014 08:04:42 +0100 Original-Received: from localhost ([::1]:49068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwmwT-0004Gb-TU for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2014 02:04:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwmwL-0004GT-JX for emacs-devel@gnu.org; Fri, 05 Dec 2014 02:04:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwmwF-0006uI-8p for emacs-devel@gnu.org; Fri, 05 Dec 2014 02:04:33 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:42296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwmwF-0006u8-2I for emacs-devel@gnu.org; Fri, 05 Dec 2014 02:04:27 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XwmwD-0000Ne-Iz for emacs-devel@gnu.org; Fri, 05 Dec 2014 08:04:25 +0100 Original-Received: from 188-22-232-157.adsl.highway.telekom.at ([188.22.232.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Dec 2014 08:04:25 +0100 Original-Received: from stefan by 188-22-232-157.adsl.highway.telekom.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Dec 2014 08:04:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 188-22-232-157.adsl.highway.telekom.at User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:i0FWYyhIci6e6VYf2JU6SJkVcn8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:178885 Archived-At: 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, ?*) M-x quick-calc 42 ==> Result: 42 => 42 (16#2A, 8#52, 2#101010, "*") > 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. M-x quick-calc 8#52 ==> Result: 42 => 42 (16#2A, 8#52, 2#101010, "*") calc handles this and a lot more... Stefan.