all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Was it once possible to expand capped print output by using ellipsis as button?
@ 2015-04-16  0:16 Michael Pontus
  2015-04-16  2:00 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Pontus @ 2015-04-16  0:16 UTC (permalink / raw)
  To: help-gnu-emacs

In case I'm not expressing myself clearly, example below should
illustrate where I'm coming from:

    (let ((print-length 2) (print-level 3))
      (pp load-history (current-buffer)))

And output from evaluating this form will look something like this:

    (("/home/michael/repos/emacs/lisp/emacs-lisp/pp.elc" pp-escape-newlines ...)
     ("/home/michael/repos/emacs/lisp/help-mode.elc"
      (require . button)
      ...)
     ...)

These ellipsis cut off the part of the node that would otherwise escape
beyond limits: print-length and print-level; as they were set above.

I have vivid memory of being able to interact with those ellipsis as
buttons, which would then expand and reveal previously invisible forms.

Please let me know that my memory does not deceive me. It's possible to
be the product of external package, but so far my searches didn't turn
up anything of this nature.

If this was in fact a feature, that was pulled out of stock emacs 
I would find it very interesting to learn about the reason that forced
such decision. 



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Was it once possible to expand capped print output by using ellipsis as button?
  2015-04-16  0:16 Was it once possible to expand capped print output by using ellipsis as button? Michael Pontus
@ 2015-04-16  2:00 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2015-04-16  2:00 UTC (permalink / raw)
  To: help-gnu-emacs

> I have vivid memory of being able to interact with those ellipsis as
> buttons, which would then expand and reveal previously invisible forms.

I think your memory is right.  The NEWS file for Emacs-21 says:

   *** The commands to evaluate Lisp expressions, such as C-M-x in Lisp
   modes, C-j in Lisp Interaction mode, and M-:, now bind the variables
   print-level, print-length, and debug-on-error based on the new
   customizable variables eval-expression-print-level,
   eval-expression-print-length, and eval-expression-debug-on-error.
   
   The default values for the first two of these variables are 12 and 4
   respectively, which means that `eval-expression' now prints at most
   the first 12 members of a list and at most 4 nesting levels deep (if
   the list is longer or deeper than that, an ellipsis `...'  is
   printed).
   
   <RET> or <mouse-2> on the printed text toggles between an abbreviated
   printed representation and an unabbreviated one.

> If this was in fact a feature, that was pulled out of stock emacs 
> I would find it very interesting to learn about the reason that forced
> such decision. 

I don't think it's been removed.  I've never used it, tho, so maybe it
doesn't work any more.  If so, try M-x report-emacs-bug.


        Stefan




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-16  2:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-16  0:16 Was it once possible to expand capped print output by using ellipsis as button? Michael Pontus
2015-04-16  2:00 ` Stefan Monnier

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.