GNU bug report logs -
#4118
23.1; eval-last-sexp-print-value is inconvenient
Previous Next
Reported by: Eli Barzilay <eli <at> barzilay.org>
Date: Tue, 11 Aug 2009 11:05:08 UTC
Severity: wishlist
Fixed in version 24.4
Done: Noam Postavsky <npostavs <at> users.sourceforge.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>> But it inserts other representations only when you type `C-x C-e' twice.
>> Do you mean you don't want this after the second `C-x C-e' key press?
>
> Hmm, I see that the reason for what I've seen is that I'm using it
> indirectly through my own function, and for some reason
> `eval-expression-print-format' decides whether to do its thing based
> on the current command. This looks like an odd interface... A better
> and more consistent interface seems to me to always print the extra
> information unless it goes into a buffer -- something like:
>
> (defun eval-expression-print-format (value)
> ...
> (if (and (integerp value) (not (bufferp standard-output)))
> ...))
The reason not to print the extra information on the first invocation of
`eval-last-sexp' is the following. Most often users want to see the integer
result of the evaluated expression, but the extra information also contains
a character representation of this integer that might print some unrelated
character that might load some weird fonts the user doesn't want to load.
> But you seem to suggest that there are practical uses to get that
> extra stuff into the buffer? I don't see any occasion that would make
> it desirable...
When the current buffer contains an integer, typing `C-x C-e' twice
inserts it to the same buffer as a character. However, this is
not too convenient, so I'd like to improve this interface.
--
Juri Linkov
http://www.jurta.org/emacs/
This bug report was last modified 9 years and 39 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.