unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: emacs-devel@gnu.org
Subject: Re: C-x C-e with prefix arg
Date: Sun, 05 May 2013 11:57:18 +0300	[thread overview]
Message-ID: <87zjw97qo7.fsf@mail.jurta.org> (raw)
In-Reply-To: <4D5891EF34DF42D3A479CF83CAF1E43E@us.oracle.com> (Drew Adams's message of "Fri, 3 May 2013 08:42:01 -0700")

> How about letting a non-negative prefix arg insert the full value (in effect,
> binding `eval-expression-print-length' and `eval-expression-print-level' to
> nil)?  And letting a negative prefix arg do what any prefix arg does today:
> respect the current values of `eval-expression-print-length' and
> `eval-expression-print-level'?

Why a numeric prefix arg?  A numeric prefix usually defines countable elements,
e.g. for this case it could define the number of values to insert to the buffer
or the depth of list nesting to print.  Otherwise, a better prefix to toggle
would be `C-u' or `M-0'.  Consider the prefixes of the related commands that

1. insert to the buffer

   C-u M-x shell-command RET
   C-u M-x eval-last-sexp RET
   M-x eval-print-last-sexp RET

2. print full information

   C-u M-x what-cursor-position RET
   M-0 M-x dired-copy-filename-as-kill RET
   M-0 M-x Info-copy-current-node-name RET
   M-x eval-last-sexp RET M-x eval-last-sexp RET
   M-x eval-expression RET

Perhaps `M-0' is more suitable than `C-u' to print full information
(or the full value) where the mnemonics of `M-0' could be
"Reset `eval-expression-print-length' to nil".

See also bug#12985 for discussion about adding a prefix argument
to `eval-last-sexp' to toggle full information (or the full value).
They could be toggled simultaneously because printing the full value
with a nil `eval-expression-print-level' is applicable only to lists,
and printing full information (octal and hex representations, etc)
is applicable only to numeric values.



  parent reply	other threads:[~2013-05-05  8:57 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 ` Juri Linkov [this message]
2013-05-05 14:23   ` C-x C-e with prefix arg Drew Adams
2013-05-05 19:50     ` Juri Linkov
2013-05-06  7:00       ` Drew Adams
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

  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=87zjw97qo7.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.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 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).