diff options
| author | Richard M. Stallman | 1992-09-18 18:47:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-09-18 18:47:19 +0000 |
| commit | cfe158ab3463c1ed31e78719daaafaedb875bea1 (patch) | |
| tree | cec44b4abbafb5920644982b9510a185fe409fa7 | |
| parent | dd492f047a0dcf03119aa214a6b002cb6fc347da (diff) | |
| download | emacs-cfe158ab3463c1ed31e78719daaafaedb875bea1.tar.gz emacs-cfe158ab3463c1ed31e78719daaafaedb875bea1.zip | |
entered into RCS
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 2e4716f3256..b0f823e0103 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -215,13 +215,16 @@ if that value is non-nil." | |||
| 215 | "Evaluate sexp before point; print value in minibuffer. | 215 | "Evaluate sexp before point; print value in minibuffer. |
| 216 | With argument, print output into current buffer." | 216 | With argument, print output into current buffer." |
| 217 | (interactive "P") | 217 | (interactive "P") |
| 218 | (let ((standard-output (if arg (current-buffer) t))) | 218 | (let ((standard-output (if arg (current-buffer) t)) |
| 219 | (opoint (point))) | ||
| 219 | (prin1 (let ((stab (syntax-table))) | 220 | (prin1 (let ((stab (syntax-table))) |
| 220 | (eval (unwind-protect | 221 | (eval (unwind-protect |
| 221 | (save-excursion | 222 | (save-excursion |
| 222 | (set-syntax-table emacs-lisp-mode-syntax-table) | 223 | (set-syntax-table emacs-lisp-mode-syntax-table) |
| 223 | (forward-sexp -1) | 224 | (forward-sexp -1) |
| 224 | (read (current-buffer))) | 225 | (save-restriction |
| 226 | (narrow-to-region (point-min) opoint) | ||
| 227 | (read (current-buffer)))) | ||
| 225 | (set-syntax-table stab))))))) | 228 | (set-syntax-table stab))))))) |
| 226 | 229 | ||
| 227 | (defun eval-defun (arg) | 230 | (defun eval-defun (arg) |
| @@ -481,6 +484,7 @@ of the start of the containing expression." | |||
| 481 | (put 'save-excursion 'lisp-indent-function 0) | 484 | (put 'save-excursion 'lisp-indent-function 0) |
| 482 | (put 'save-window-excursion 'lisp-indent-function 0) | 485 | (put 'save-window-excursion 'lisp-indent-function 0) |
| 483 | (put 'save-restriction 'lisp-indent-function 0) | 486 | (put 'save-restriction 'lisp-indent-function 0) |
| 487 | (put 'save-match-data 'lisp-indent-function 0) | ||
| 484 | (put 'let 'lisp-indent-function 1) | 488 | (put 'let 'lisp-indent-function 1) |
| 485 | (put 'let* 'lisp-indent-function 1) | 489 | (put 'let* 'lisp-indent-function 1) |
| 486 | (put 'while 'lisp-indent-function 1) | 490 | (put 'while 'lisp-indent-function 1) |