unofficial mirror of emacs-devel@gnu.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: Tue, 7 May 2013 07:16:31 -0700	[thread overview]
Message-ID: <E97FAFE68C2048ED91CB0049C95E7A37@us.oracle.com> (raw)
In-Reply-To: <87bo8ngpjr.fsf@mail.jurta.org>

> > 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.
> 
> Isn't truncated output intended mostly for beginners
> to not overwhelm them with long output?  If yes,
> then it should be used by default.

For me, truncated output is useful for anyone who wants to see the overall
picture and doesn't need the exact value.

That is especially important for printing to the echo area.

To me, it does not make sense as the default behavior for printing the value
into the current buffer.  Why?  Because, as I said at the beginning, I think
that most users do that in order to _do something_ with the value - something
that requires the full value.  Typically, I want to edit it or perhaps examine
parts of it in detail.

You don't have to be an expert to want to do such things.  By your logic, `C-h
v' should also print using elision.

When I do `C-h v bookmark-alist' I really want to see the full alist.  But maybe
another user does not.  We could imagine options governing printing there too.

My point is that wanting to see the full value is not something limited to
experts, and wanting to see only an executive overview of the value is not
something limited to novices.  A better distinction is wrt the buffer,
minibuffer or other, and we can make a reasonable guess as to the need (full or
partial view) for each kind of buffer.

I've made my suggestion wrt such guessing: when users print the value to the
current buffer, I think they usually want the full value.

> > Most of the time when you want to print the value, you want 
> > the whole value, not an abbreviation.  That's my claim.
> 
> I agree that most of the time you want the whole value.
> That's why I have in ~/.emacs ;-)
> 
>   (custom-set-variables
>    '(eval-expression-print-length nil)
>    '(eval-expression-print-level nil)
> 
> But the question is what should be the default behavior.
> It seems this feature for the elided display of long lists
> was created with the intention to be used by default.

Who knows what was behind the original design?  Maybe someone just took the
behavior that made sense for the minibuffer and continued it for the current
buffer too.  Maybe someone was too lazy to figure out another way to do things.
Maybe someone, like you apparently, felt that giving users options to configure
would give them enough control over the printing.

IMO, users should have a quick way of getting the full value in the current
buffer, _even if_ they generally prefer the partial value and have reflected
that more general preference in the user options.

If you really wanted to complicate things, you could make the option record a
preference for the minibuffer and another one for the current buffer.  But even
then, maybe a user would want to sometimes choose another behavior on the fly
(e.g., using a prefix arg).




  reply	other threads:[~2013-05-07 14:16 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
2013-05-07  8:30                 ` Juri Linkov
2013-05-07 14:16                   ` Drew Adams [this message]
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=E97FAFE68C2048ED91CB0049C95E7A37@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 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).