diff options
| author | Roland McGrath | 1991-05-01 05:28:37 +0000 |
|---|---|---|
| committer | Roland McGrath | 1991-05-01 05:28:37 +0000 |
| commit | 19b2f8f148b1fff06b9a8af8c73088cbca33e360 (patch) | |
| tree | 2dab258dc333834252b8ae3da55ee4c4e0336267 | |
| parent | 121f0d57235a50b09d7edfadc0dc0286eff86e8c (diff) | |
| download | emacs-19b2f8f148b1fff06b9a8af8c73088cbca33e360.tar.gz emacs-19b2f8f148b1fff06b9a8af8c73088cbca33e360.zip | |
*** empty log message ***
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 4135c0f77e8..37216ebd1b4 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -209,25 +209,25 @@ if that value is non-nil." | |||
| 209 | "Evaluate sexp before point; print value in minibuffer. | 209 | "Evaluate sexp before point; print value in minibuffer. |
| 210 | With argument, print output into current buffer." | 210 | With argument, print output into current buffer." |
| 211 | (interactive "P") | 211 | (interactive "P") |
| 212 | (prin1 (let ((stab (syntax-table))) | 212 | (let ((standard-output (if arg (current-buffer) t))) |
| 213 | (eval (unwind-protect | 213 | (prin1 (let ((stab (syntax-table))) |
| 214 | (save-excursion | 214 | (eval (unwind-protect |
| 215 | (set-syntax-table emacs-lisp-mode-syntax-table) | 215 | (save-excursion |
| 216 | (forward-sexp -1) | 216 | (set-syntax-table emacs-lisp-mode-syntax-table) |
| 217 | (read (current-buffer))) | 217 | (forward-sexp -1) |
| 218 | (set-syntax-table stab)))) | 218 | (read (current-buffer))) |
| 219 | (if arg (current-buffer) t))) | 219 | (set-syntax-table stab))))))) |
| 220 | 220 | ||
| 221 | (defun eval-defun (arg) | 221 | (defun eval-defun (arg) |
| 222 | "Evaluate defun that point is in or before. | 222 | "Evaluate defun that point is in or before. |
| 223 | Print value in minibuffer. | 223 | Print value in minibuffer. |
| 224 | With argument, insert value in current buffer after the defun." | 224 | With argument, insert value in current buffer after the defun." |
| 225 | (interactive "P") | 225 | (interactive "P") |
| 226 | (prin1 (eval (save-excursion | 226 | (let ((standard-output (if arg (current-buffer) t))) |
| 227 | (end-of-defun) | 227 | (prin1 (eval (save-excursion |
| 228 | (beginning-of-defun) | 228 | (end-of-defun) |
| 229 | (read (current-buffer)))) | 229 | (beginning-of-defun) |
| 230 | (if arg (current-buffer) t))) | 230 | (read (current-buffer))))))) |
| 231 | 231 | ||
| 232 | (defun lisp-comment-indent () | 232 | (defun lisp-comment-indent () |
| 233 | (if (looking-at "\\s<\\s<\\s<") | 233 | (if (looking-at "\\s<\\s<\\s<") |