unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Xue Fuqiao <xfq.free@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: emacs-devel@gnu.org
Subject: Re: C-x C-e with prefix arg
Date: Sun, 5 May 2013 07:31:20 +0800	[thread overview]
Message-ID: <CAAF+z6ExDSWKF5_-6GnqLyX4dRiwxgXpwwJtpNc-RAHqs=V4ow@mail.gmail.com> (raw)
In-Reply-To: <4D5891EF34DF42D3A479CF83CAF1E43E@us.oracle.com>

On Fri, May 3, 2013 at 11:42 PM, Drew Adams <drew.adams@oracle.com> wrote:
> How about letting the particular prefix arg control whether to print the full
> value?

Good idea.

> You use a prefix arg to insert the value in the current buffer at point.  How
> often do you really want the inserted value to have pieces missing (elided)?
> You typically want to (edit and) use the inserted value in code you are writing,
> no?
>
> 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'?

Agreed.  Would you like to submit a patch here or to bug-gnu-emacs?

> Today, to get the full value inserted you need to avoid `C-x C-e' and instead
> select the sexp and use `eval-region' - or use some other workaround.

That's true.  It's somewhat annnoying.

--
Best regards, Xue Fuqiao.
http://www.gnu.org/software/emacs/



  reply	other threads:[~2013-05-04 23:31 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 [this message]
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
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='CAAF+z6ExDSWKF5_-6GnqLyX4dRiwxgXpwwJtpNc-RAHqs=V4ow@mail.gmail.com' \
    --to=xfq.free@gmail.com \
    --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).