From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: C-x C-e on numbers Date: Thu, 04 Dec 2014 17:27:18 +0100 Message-ID: <87bnnjjs7t.fsf@igel.home> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417710488 28390 80.91.229.3 (4 Dec 2014 16:28:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Dec 2014 16:28:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: ams@gnu.org (Alfred M. Szmidt) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 04 17:28:01 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 1XwZG4-0000tq-St for ged-emacs-devel@m.gmane.org; Thu, 04 Dec 2014 17:28:01 +0100 Original-Received: from localhost ([::1]:46564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwZG4-0008Jn-FG for ged-emacs-devel@m.gmane.org; Thu, 04 Dec 2014 11:28:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwZFf-0008DU-9b for emacs-devel@gnu.org; Thu, 04 Dec 2014 11:27:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwZFZ-0001XW-TD for emacs-devel@gnu.org; Thu, 04 Dec 2014 11:27:35 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.10]:33358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwZFT-0001U9-T7; Thu, 04 Dec 2014 11:27:24 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3jtjBJ3bnJz3hkqM; Thu, 4 Dec 2014 17:27:20 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3jtjBJ0Zf7zvh2l; Thu, 4 Dec 2014 17:27:20 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id MolGCxRfCFC6; Thu, 4 Dec 2014 17:27:19 +0100 (CET) X-Auth-Info: m73vnNNFgLs6flLG8gDf48PL90qiGI5rkhntwWowFkoXWG1YdYO+eeY8VH0hoxX3 Original-Received: from igel.home (host-188-174-211-246.customer.m-online.net [188.174.211.246]) by mail.mnet-online.de (Postfix) with ESMTPA; Thu, 4 Dec 2014 17:27:18 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 0C4D52C16EB; Thu, 4 Dec 2014 17:27:18 +0100 (CET) X-Yow: I'm in LOVE with DON KNOTTS!! In-Reply-To: (Alfred M. Szmidt's message of "Thu, 04 Dec 2014 10:56:10 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.18.0.10 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:178834 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, ?*) 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."