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 13:13:53 -0700	[thread overview]
Message-ID: <D393C9EBE29F488690FD0DDF70FF7A08@us.oracle.com> (raw)
In-Reply-To: <87ip2vlw8w.fsf@mail.jurta.org>

> > And like those other options, it should be ignored except 
> > via `C--' or `M--'.
> 
> The default values should not be ignored by default.
> 
> The default values of `eval-expression-print-length' and
> `eval-expression-print-level' should be respected by all
> `eval-expression' related functions by default because
> they are _default_ values.
> 
> An additional prefix arg like `M--' could be used to
> override the default values.  Although `M-0' would make
> more sense because it will display more information
> (the full value of the list printed by `M-0 C-x C-e').

We've been through all of this before, I believe.

1. We've already spoken about `M-- and `C--' vs `M-0'.  The former (which was
your proposed restriction of my initial proposal of any negative prefix arg) is
preferable to the latter, IMO.  We've been through the reasons.

2. The default values of those options will, by my proposal, be for use only
with `M--' and `C--' (for `eval-last-sexp'), not for use with a non-negative
prefix arg.  That is the design I proposed.

There is nothing wrong with offering options that take effect only in certain
circumstances.  Just because an option has a default value (and every option
does) does not mean that the option takes effect by default for all commands
that make might use of it.  It is fine for a given command to make use of it in
only some contexts.

IMO, it is important that `C-x C-e' with a plain `C-u' (more generally, with a
non-negative prefix arg) ignore those options altogether and print the full
value.  That was the _point_ of my suggestion, from the beginning.  Most of the
time when you want to print the value, you want the whole value, not an
abbreviation.  That's my claim.

3. The _default_ behavior of the command, on the other hand, does not print
anything!  We are discussing only the behavior of the command when the value is
printed in the current buffer, which for `C-x C-e' means when you use a prefix
arg.




  reply	other threads:[~2013-05-06 20:13 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
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 [this message]
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=D393C9EBE29F488690FD0DDF70FF7A08@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.