comparison lisp/emacs-lisp/lisp-mode.el @ 38560:df8cff64f0f3

(eval-print-last-sexp, eval-defun): Mention the effect of eval-expression-print-length and eval-expression-print-level. Suggested by Kevin Gallagher <kevingal@onramp.net>.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 25 Jul 2001 16:23:26 +0000
parents 253f761ad37b
children 795feb9422e4
comparison
equal deleted inserted replaced
38559:202a8b235456 38560:df8cff64f0f3
306 \\{lisp-interaction-mode-map} 306 \\{lisp-interaction-mode-map}
307 Entry to this mode calls the value of `lisp-interaction-mode-hook' 307 Entry to this mode calls the value of `lisp-interaction-mode-hook'
308 if that value is non-nil.") 308 if that value is non-nil.")
309 309
310 (defun eval-print-last-sexp () 310 (defun eval-print-last-sexp ()
311 "Evaluate sexp before point; print value into current buffer." 311 "Evaluate sexp before point; print value into current buffer.
312
313 Note that printing the result is controlled by the variables
314 `eval-expression-print-length' and `eval-expression-print-level',
315 which see."
312 (interactive) 316 (interactive)
313 (let ((standard-output (current-buffer))) 317 (let ((standard-output (current-buffer)))
314 (terpri) 318 (terpri)
315 (eval-last-sexp t) 319 (eval-last-sexp t)
316 (terpri))) 320 (terpri)))
465 If acting on a `defun' for FUNCTION, and the function was 469 If acting on a `defun' for FUNCTION, and the function was
466 instrumented, `Edebug: FUNCTION' is printed in the minibuffer. If not 470 instrumented, `Edebug: FUNCTION' is printed in the minibuffer. If not
467 instrumented, just FUNCTION is printed. 471 instrumented, just FUNCTION is printed.
468 472
469 If not acting on a `defun', the result of evaluation is displayed in 473 If not acting on a `defun', the result of evaluation is displayed in
470 the minibuffer." 474 the minibuffer. This display is controlled by the variables
475 `eval-expression-print-length' and `eval-expression-print-level',
476 which see."
471 (interactive "P") 477 (interactive "P")
472 (cond (edebug-it 478 (cond (edebug-it
473 (require 'edebug) 479 (require 'edebug)
474 (eval-defun (not edebug-all-defs))) 480 (eval-defun (not edebug-all-defs)))
475 (t 481 (t