diff options
| author | Stefan Monnier | 2004-03-22 15:32:24 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-03-22 15:32:24 +0000 |
| commit | eaf33a1780c985356d8bdd0830180a20f36e546f (patch) | |
| tree | 91c0d6335e1a23669af4a4ecceb8db9f943d7de5 | |
| parent | 4f9d876485650e75947e8672f3a238df63777ee2 (diff) | |
| download | emacs-eaf33a1780c985356d8bdd0830180a20f36e546f.tar.gz emacs-eaf33a1780c985356d8bdd0830180a20f36e546f.zip | |
(pp-eval-expression): Simplify.
| -rw-r--r-- | lisp/emacs-lisp/pp.el | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/pp.el b/lisp/emacs-lisp/pp.el index 85ec7dbae78..c93868859f0 100644 --- a/lisp/emacs-lisp/pp.el +++ b/lisp/emacs-lisp/pp.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; pp.el --- pretty printer for Emacs Lisp | 1 | ;;; pp.el --- pretty printer for Emacs Lisp |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1989, 1993, 2001 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1989, 1993, 2001, 2004 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Randal Schwartz <merlyn@stonehenge.com> | 5 | ;; Author: Randal Schwartz <merlyn@stonehenge.com> |
| 6 | ;; Keywords: lisp | 6 | ;; Keywords: lisp |
| @@ -120,12 +120,10 @@ in the variable `values'." | |||
| 120 | (message "%s" (buffer-substring (point-min) (point))) | 120 | (message "%s" (buffer-substring (point-min) (point))) |
| 121 | )))))) | 121 | )))))) |
| 122 | (with-output-to-temp-buffer "*Pp Eval Output*" | 122 | (with-output-to-temp-buffer "*Pp Eval Output*" |
| 123 | (pp (car values))) | 123 | (pp (car values)) |
| 124 | (save-excursion | 124 | (with-current-buffer standard-output |
| 125 | (set-buffer "*Pp Eval Output*") | 125 | (emacs-lisp-mode) |
| 126 | (emacs-lisp-mode) | 126 | (set (make-local-variable 'font-lock-verbose) nil))))) |
| 127 | (make-local-variable 'font-lock-verbose) | ||
| 128 | (setq font-lock-verbose nil)))) | ||
| 129 | 127 | ||
| 130 | ;;;###autoload | 128 | ;;;###autoload |
| 131 | (defun pp-eval-last-sexp (arg) | 129 | (defun pp-eval-last-sexp (arg) |