From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: printing most-negative-fixnum fails Date: Tue, 11 May 2004 19:57:19 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87isf2ev1t.fsf@mail.jurta.org> References: <200405062008.i46K8x4R015248@brains.moreideas.ca> <87vfj3g1kv.fsf@mail.jurta.org> <87lljzoe0x.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084297029 18599 80.91.224.253 (11 May 2004 17:37:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 May 2004 17:37:09 +0000 (UTC) Cc: Peter Whaite , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 11 19:36:57 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNbBY-0001yl-00 for ; Tue, 11 May 2004 19:36:56 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNbBY-0001CI-00 for ; Tue, 11 May 2004 19:36:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNbAH-0006Du-FI for emacs-devel@quimby.gnus.org; Tue, 11 May 2004 13:35:37 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BNb6h-0003cb-S0 for emacs-devel@gnu.org; Tue, 11 May 2004 13:31:56 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BNb60-0003Dq-Qu for emacs-devel@gnu.org; Tue, 11 May 2004 13:31:44 -0400 Original-Received: from [66.33.219.19] (helo=spoon.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNb60-0003DV-5f for emacs-devel@gnu.org; Tue, 11 May 2004 13:31:12 -0400 Original-Received: from mail.jurta.org (80-235-44-143-dsl.mus.estpak.ee [80.235.44.143]) by spoon.dreamhost.com (Postfix) with ESMTP id F23EC13D850; Tue, 11 May 2004 10:31:08 -0700 (PDT) Original-To: Stefan Monnier In-Reply-To: <87lljzoe0x.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "10 May 2004 23:20:56 -0400") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23161 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23161 Stefan Monnier writes: >> + (princ (format " (0%o, 0x%x)" value value))) > > Why not use (format " = #o%o = #x%x" value value), so that it enjoys the > same property as the current prin1-char thing, i.e. being > another valid elisp representation of the integer ? I have no strong opinion on the format, but I tried this format, and it looks for me pretty odd, because it resembles a mathematical equation which, even though is true, emphasizes the fact of equality of different representations which is slightly distracting in this case. Again, I want to repeat that I have no strong opinion, and if everyone will like it, I will have no objections. But it seems to me that the format of C-x = with parentheses is better. > BTW, it should also be used for M-: Yes! I completely forgot that M-: can print numerical results as well. And then perhaps it should be printed for C-M-x, too. Though, I'm not sure, because `eval-defun' might be called as a function, and to print a value may be inappropriate here? -- Juri Linkov http://www.jurta.org/emacs/