diff options
| author | Glenn Morris | 2007-08-03 03:15:33 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-08-03 03:15:33 +0000 |
| commit | 52f55ab02b3f9b97a3894b7651b9ffffa2755eba (patch) | |
| tree | 509d7ea1d6549b437e19e54572e76873b9b97fe3 | |
| parent | 17cc361e49c954651e1417cef9cb20fcac293876 (diff) | |
| download | emacs-52f55ab02b3f9b97a3894b7651b9ffffa2755eba.tar.gz emacs-52f55ab02b3f9b97a3894b7651b9ffffa2755eba.zip | |
Drew Adams <drew.adams at oracle.com>
(pp-eval-expression): Add progress message. Make buffer writable.
| -rw-r--r-- | lisp/ChangeLog | 15 | ||||
| -rw-r--r-- | lisp/emacs-lisp/pp.el | 6 |
2 files changed, 20 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 98512182cad..b103e096e10 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2007-08-03 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * cus-edit.el (customize-apropos): Make the error message indicate | ||
| 4 | what kind of thing the user was trying to customize. | ||
| 5 | |||
| 6 | * net/telnet.el (telnet-mode): Set comint-use-prompt-regexp to t. | ||
| 7 | |||
| 8 | * progmodes/fortran.el (fortran-font-lock-syntactic-keywords): Fix | ||
| 9 | off-by-one error in previous change. | ||
| 10 | |||
| 11 | 2007-08-03 Drew Adams <drew.adams@oracle.com> | ||
| 12 | |||
| 13 | * emacs-lisp/pp.el (pp-eval-expression): Add progress message. | ||
| 14 | Make buffer writable. | ||
| 15 | |||
| 1 | 2007-08-01 Jay Belanger <jay.p.belanger@gmail.com> | 16 | 2007-08-01 Jay Belanger <jay.p.belanger@gmail.com> |
| 2 | 17 | ||
| 3 | * calc/calc-math.el (math-sqrt-raw,math-sin-raw-2) | 18 | * calc/calc-math.el (math-sqrt-raw,math-sin-raw-2) |
diff --git a/lisp/emacs-lisp/pp.el b/lisp/emacs-lisp/pp.el index 21175a03b4d..a5cefff399f 100644 --- a/lisp/emacs-lisp/pp.el +++ b/lisp/emacs-lisp/pp.el | |||
| @@ -103,6 +103,7 @@ Also add the value to the front of the list in the variable `values'." | |||
| 103 | (interactive | 103 | (interactive |
| 104 | (list (read-from-minibuffer "Eval: " nil read-expression-map t | 104 | (list (read-from-minibuffer "Eval: " nil read-expression-map t |
| 105 | 'read-expression-history))) | 105 | 'read-expression-history))) |
| 106 | (message "Evaluating...") | ||
| 106 | (setq values (cons (eval expression) values)) | 107 | (setq values (cons (eval expression) values)) |
| 107 | (let* ((old-show-function temp-buffer-show-function) | 108 | (let* ((old-show-function temp-buffer-show-function) |
| 108 | ;; Use this function to display the buffer. | 109 | ;; Use this function to display the buffer. |
| @@ -126,13 +127,16 @@ Also add the value to the front of the list in the variable `values'." | |||
| 126 | (progn | 127 | (progn |
| 127 | (select-window window) | 128 | (select-window window) |
| 128 | (run-hooks 'temp-buffer-show-hook)) | 129 | (run-hooks 'temp-buffer-show-hook)) |
| 129 | (select-window old-selected))) | 130 | (select-window old-selected) |
| 131 | (message "Evaluating...done. \ | ||
| 132 | See buffer *Pp Eval Output*."))) | ||
| 130 | (message "%s" (buffer-substring (point-min) (point))) | 133 | (message "%s" (buffer-substring (point-min) (point))) |
| 131 | )))))) | 134 | )))))) |
| 132 | (with-output-to-temp-buffer "*Pp Eval Output*" | 135 | (with-output-to-temp-buffer "*Pp Eval Output*" |
| 133 | (pp (car values)) | 136 | (pp (car values)) |
| 134 | (with-current-buffer standard-output | 137 | (with-current-buffer standard-output |
| 135 | (emacs-lisp-mode) | 138 | (emacs-lisp-mode) |
| 139 | (setq buffer-read-only nil) | ||
| 136 | (set (make-local-variable 'font-lock-verbose) nil))))) | 140 | (set (make-local-variable 'font-lock-verbose) nil))))) |
| 137 | 141 | ||
| 138 | ;;;###autoload | 142 | ;;;###autoload |