bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#32064: 26; doc string of `eval-last-sexp'


From: Noam Postavsky
Subject: bug#32064: 26; doc string of `eval-last-sexp'
Date: Thu, 05 Jul 2018 20:23:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Drew Adams <drew.adams@oracle.com> writes:

> This is all a confusing mess, I'm afraid.  And the code (e.g. of
> `eval-last-sexp' and its helper `elisp--eval-last-sexp') is not very
> clear either.

I agree.  I think the solution is to simplify the interface somewhat.
As it stands, we're trying to cram a lot of functionality into the
prefix argument, and the encoding is too difficult to remember (both in
terms of implementing & documenting, as well as for using).

Instead, we should have something like this:

No prefix: echo with default formatting (like now)
C-u: insert result into buffer, no alternate integer formatting (like now)
C-u C-u: query user for detailed formatting options individually

And that's it, no clever handling of 0 vs negative number vs `-', etc







reply via email to

[Prev in Thread] Current Thread [Next in Thread]