all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* C-j in Lisp interaction mode.
@ 2003-08-07 17:08 Luc Teirlinck
  2003-08-08  6:11 ` Richard Stallman
  2003-08-08 21:41 ` Richard Stallman
  0 siblings, 2 replies; 4+ messages in thread
From: Luc Teirlinck @ 2003-08-07 17:08 UTC (permalink / raw)


C-j in Lisp interaction mode overrides `print-length' and
`print-level' using `eval-expression-print-length' and
`eval-expression-print-level'.  The purpose of the latter two
variables would seem to avoid printing huge expressions in the echo
area.  But I do not see any reason to use them in
`eval-print-last-sexp', bound to C-j in Lisp interaction mode.  I
would propose to change `eval-print-last-sexp' to just use
`print-length' and `print-level'.  Also,
`eval-expression-print-length' and `eval-expression-print-level' do
not seem to be documented in the Elisp manual, which makes their use
very confusing to beginning Elisp users.

Sincerely,

Luc.

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

* Re: C-j in Lisp interaction mode.
  2003-08-07 17:08 C-j in Lisp interaction mode Luc Teirlinck
@ 2003-08-08  6:11 ` Richard Stallman
  2003-08-08 21:41 ` Richard Stallman
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2003-08-08  6:11 UTC (permalink / raw)
  Cc: emacs-devel

    C-j in Lisp interaction mode overrides `print-length' and
    `print-level' using `eval-expression-print-length' and
    `eval-expression-print-level'.  The purpose of the latter two
    variables would seem to avoid printing huge expressions in the echo
    area.  But I do not see any reason to use them in
    `eval-print-last-sexp', bound to C-j in Lisp interaction mode.

I think it is a nuisance if C-j spews out tremendous quantities
of data.  I don't think this should be changed.

      Also,
    `eval-expression-print-length' and `eval-expression-print-level' do
    not seem to be documented in the Elisp manual, which makes their use
    very confusing to beginning Elisp users.

That I agree should be changed somehow.

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

* Re: C-j in Lisp interaction mode.
  2003-08-07 17:08 C-j in Lisp interaction mode Luc Teirlinck
  2003-08-08  6:11 ` Richard Stallman
@ 2003-08-08 21:41 ` Richard Stallman
  2003-08-09  2:41   ` Luc Teirlinck
  1 sibling, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2003-08-08 21:41 UTC (permalink / raw)
  Cc: emacs-devel

    C-j in Lisp interaction mode overrides `print-length' and
    `print-level' using `eval-expression-print-length' and
    `eval-expression-print-level'.  The purpose of the latter two
    variables would seem to avoid printing huge expressions in the echo
    area.  But I do not see any reason to use them in
    `eval-print-last-sexp', bound to C-j in Lisp interaction mode.

I think it is a nuisance if C-j spews out tremendous quantities
of data.  I don't think this should be changed.

      Also,
    `eval-expression-print-length' and `eval-expression-print-level' do
    not seem to be documented in the Elisp manual, which makes their use
    very confusing to beginning Elisp users.

They are documented in the Emacs manual, where the commands are
documented.  I'm not against putting them in the Lisp manual, but is
there a place where they would fit?  The evaluation commands are not
documented in that manual.

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

* Re: C-j in Lisp interaction mode.
  2003-08-08 21:41 ` Richard Stallman
@ 2003-08-09  2:41   ` Luc Teirlinck
  0 siblings, 0 replies; 4+ messages in thread
From: Luc Teirlinck @ 2003-08-09  2:41 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman wrote:
	 
	 Also,
       `eval-expression-print-length' and `eval-expression-print-level' do
       not seem to be documented in the Elisp manual, which makes their use
       very confusing to beginning Elisp users.

   They are documented in the Emacs manual, where the commands are
   documented.  I'm not against putting them in the Lisp manual, but is
   there a place where they would fit?  The evaluation commands are not
   documented in that manual.

The diff below would document `eval-expression-print-length' and
`eval-expression-print-level' straight after the definitions of
`print-length' and `print-level'.  It would prevent readers of the
Elisp manual who try out the latter two variables in the *scratch*
buffer from being completely confused by Emacs' apparent lack of
response in as far as C-j, C-x C-e or similar, is concerned.  There is
a reference to the section of the Emacs manual which you mentioned.
If the diff is OK, I could commit it to the CVS, if desired.

===File ~/streamsdiff=======================================
cd ~/
diff -c /home/teirllm/streams.old.texi /home/teirllm/streams.texi
*** /home/teirllm/streams.old.texi	Tue Jul 22 12:19:57 2003
--- /home/teirllm/streams.texi	Fri Aug  8 20:32:27 2003
***************
*** 771,776 ****
--- 771,784 ----
  @code{nil} (which is the default) means no limit.
  @end defvar
  
+ @defopt eval-expression-print-length
+ @defoptx eval-expression-print-level
+ These are the values for @code{print-length} and @code{print-level}
+ used by @code{eval-expression}, and thus, indirectly, by many
+ interactive evaluation commands (@pxref{Lisp Eval,, Evaluating
+ Emacs-Lisp Expressions, emacs, The GNU Emacs Manual}).
+ @end defopt
+ 
    These variables are used for detecting and reporting circular
  and shared structure---but they are only defined in Emacs 21.
  

Diff finished at Fri Aug  8 21:18:10
============================================================

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

end of thread, other threads:[~2003-08-09  2:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-07 17:08 C-j in Lisp interaction mode Luc Teirlinck
2003-08-08  6:11 ` Richard Stallman
2003-08-08 21:41 ` Richard Stallman
2003-08-09  2:41   ` Luc Teirlinck

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.