diff options
author | Miles Bader <miles@gnu.org> | 2006-10-30 08:54:41 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2006-10-30 08:54:41 +0000 |
commit | 503be82149af57edcba384554e0f268b9a9551e1 (patch) | |
tree | d4a7bbe12b22462bbf427fffeb889ebcf5da6782 /lisp/emacs-lisp/pp.el | |
parent | 4b89b5e297a9fc832d51f47f02c264308dd6da13 (diff) | |
parent | ab785936c82ac81edb8b20ac27c0558bc04797e5 (diff) | |
download | emacs-503be82149af57edcba384554e0f268b9a9551e1.tar.gz emacs-503be82149af57edcba384554e0f268b9a9551e1.tar.bz2 emacs-503be82149af57edcba384554e0f268b9a9551e1.zip |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 476-489)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 153-160)
- Merge from emacs--devo--0
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-127
Diffstat (limited to 'lisp/emacs-lisp/pp.el')
-rw-r--r-- | lisp/emacs-lisp/pp.el | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/pp.el b/lisp/emacs-lisp/pp.el index f30b69ddac0..a9cb2abd741 100644 --- a/lisp/emacs-lisp/pp.el +++ b/lisp/emacs-lisp/pp.el @@ -97,13 +97,16 @@ Output stream is STREAM, or value of `standard-output' (which see)." (princ (pp-to-string object) (or stream standard-output))) ;;;###autoload -(defun pp-eval-expression (expression) - "Evaluate EXPRESSION and pretty-print value into a new display buffer. -If the pretty-printed value fits on one line, the message line is used -instead. The value is also consed onto the front of the list -in the variable `values'." - (interactive "xPp-eval: ") - (setq values (cons (eval expression) values)) +(defun pp-eval-expression (expval) + "Evaluate an expression, then pretty-print value EXPVAL into a new buffer. +If pretty-printed EXPVAL fits on one line, display it in the echo +area instead. Also add EXPVAL to the front of the list +in the variable `values'. + +Non-interactively, the argument is the value, EXPVAL, not the expression +to evaluate." + (interactive "XPp-eval: ") + (setq values (cons expval values)) (let* ((old-show-function temp-buffer-show-function) ;; Use this function to display the buffer. ;; This function either decides not to display it at all |