all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Juri Linkov'" <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: RE: C-x C-e with prefix arg
Date: Mon, 6 May 2013 00:00:32 -0700	[thread overview]
Message-ID: <88878C7DA62F4DC792EEEE03D46C115B@us.oracle.com> (raw)
In-Reply-To: <87zjw9z0fk.fsf@mail.jurta.org>

> > * Negative in this case is mnemonic for "less".  It hints at the
> > elision/abbreviation.
> 
> Fine, then use the symbol `-' (just a minus sign) as the prefix arg.

OK by me.  +1.

(I assume you mean keys `C--' and `M--', which lead to symbol `-' as the raw
prefix arg.)

> > IMHO, the proposal I made is better, but I really don't 
> > care.  I never use either `eval-last-sexp' or
> > `eval-print-last-sexp', personally.  I use
> > `pp-eval-last-sexp' instead (and my own version of it),
> > and I use *scratch* in Emacs-Lisp mode (so C-j is not
> > `eval-print-last-sexp').
> 
> I like your proposal, but I strive to find the most 
> appropriate prefix arg that could be shared between lists
> and numeric output of `C-x C-e', `M-:', and `C-j'. i.e. the
> same prefix arg to define whether to print the full
> list value or not, and whether to print full information about numbers
> (octal, hexadecimal).  This is required for bug#12985.

As I said, I really don't care whether or what changes are made.  Use your
judgment - I'm fine with whatever you decide.

---

FWIW, I also don't think, personally, that we ever should have (in Emacs 22)
cobbled a print-integer-value-in-different-radixes functionality onto the
eval-and-maybe-print functionality.

To be clear, I mean the following (mis)feature, which applies
`eval-expression-print-format' to the last evaluation value (i.e., the car of
`values'), in `eval-expression':

 "**** Typing C-x C-e twice prints the value of the integer result
  in additional formats (octal, hexadecimal, character) specified
  by the new function `eval-expression-print-format'.  The same
  function also defines the result format for `eval-expression' (M-:),
  `eval-print-last-sexp' (C-j) and some edebug evaluation functions."

    - from the NEWS, Emacs 22

Personally, I think that was a dumb - er - misguided user interface that never
should have been plopped on top of the longstanding eval-and-maybe-print
functionality.  Others are free, of course, to think it is handy and extremely
clever.

The surprise expressed by Kelly Dean in his report for bug #12985 supports my
view of the UI somewhat, I think.  The right fix is not just to document the
feature (finally, years after it was introduced) but to just rip it out.  (There
are other ways to print an integer value in various formats, and it is easy
enough to have a separate command that does just that.)  But I doubt the feature
will be removed in consequence.




  reply	other threads:[~2013-05-06  7:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-03 15:42 C-x C-e with prefix arg Drew Adams
2013-05-04 23:31 ` Xue Fuqiao
2013-05-05  3:51   ` C-x C-e with prefix arg [patch] Drew Adams
2013-05-05  6:05     ` Xue Fuqiao
2013-05-05  8:57 ` C-x C-e with prefix arg Juri Linkov
2013-05-05 14:23   ` Drew Adams
2013-05-05 19:50     ` Juri Linkov
2013-05-06  7:00       ` Drew Adams [this message]
2013-05-06  8:30         ` Juri Linkov
2013-05-06 14:11           ` Drew Adams
2013-05-06 19:54             ` Juri Linkov
2013-05-06 20:13               ` Drew Adams
2013-05-07  8:30                 ` Juri Linkov
2013-05-07 14:16                   ` Drew Adams
2013-05-07 20:55                     ` Juri Linkov
2013-05-07 21:42                       ` Drew Adams
2013-05-07 22:31                         ` Juri Linkov

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=88878C7DA62F4DC792EEEE03D46C115B@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.