From: Juri Linkov <juri@jurta.org>
Cc: Peter Whaite <emacs@whaite.ca>, emacs-devel@gnu.org
Subject: Re: printing most-negative-fixnum fails
Date: Tue, 11 May 2004 19:57:19 +0300 [thread overview]
Message-ID: <87isf2ev1t.fsf@mail.jurta.org> (raw)
In-Reply-To: <87lljzoe0x.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "10 May 2004 23:20:56 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> 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/
next prev parent reply other threads:[~2004-05-11 16:57 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-06 20:08 printing most-negative-fixnum fails Peter Whaite
2004-05-11 0:17 ` Juri Linkov
2004-05-11 3:20 ` Stefan Monnier
2004-05-11 16:57 ` Juri Linkov [this message]
2004-05-12 19:41 ` Richard Stallman
2004-05-11 12:23 ` Richard Stallman
2004-05-11 16:47 ` Juri Linkov
2004-05-14 9:20 ` Richard Stallman
2004-05-14 11:46 ` Kenichi Handa
2004-05-15 8:17 ` Juri Linkov
2004-05-15 8:53 ` Richard Stallman
2004-05-15 9:19 ` David Kastrup
2004-05-15 20:03 ` Juri Linkov
2004-05-18 13:03 ` Kenichi Handa
2004-05-19 8:36 ` Juri Linkov
2004-05-15 8:09 ` Juri Linkov
2004-05-15 18:34 ` Richard Stallman
2004-05-15 19:32 ` Juri Linkov
2004-05-12 1:41 ` Kenichi Handa
2004-05-12 2:06 ` Stefan Monnier
2004-05-12 4:43 ` Kenichi Handa
2004-05-11 2:48 ` Stefan Monnier
2004-05-11 3:11 ` Luc Teirlinck
2004-05-11 4:26 ` Kenichi Handa
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=87isf2ev1t.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
--cc=emacs@whaite.ca \
/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).