Mercurial > emacs
diff lisp/emacs-lisp/lisp-mode.el @ 22246:afacb0a7e251
(eval-defun): Pass proper beg to eval-region.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 25 May 1998 22:40:45 +0000 |
parents | 366a1d025c6c |
children | fd555029931d |
line wrap: on
line diff
--- a/lisp/emacs-lisp/lisp-mode.el Mon May 25 22:33:38 1998 +0000 +++ b/lisp/emacs-lisp/lisp-mode.el Mon May 25 22:40:45 1998 +0000 @@ -342,11 +342,12 @@ With argument, insert value in current buffer after the defun." (interactive "P") (let ((standard-output (if eval-defun-arg-internal (current-buffer) t)) - end form) + beg end form) ;; Read the form from the buffer, and record where it ends. (save-excursion (end-of-defun) (beginning-of-defun) + (setq beg (point)) (setq form (read (current-buffer))) (setq end (point))) ;; Alter the form if necessary. @@ -367,7 +368,7 @@ ;; will make eval-region return. (goto-char end) form))) - (eval-region (point) end standard-output))))) + (eval-region beg end standard-output))))) (defun lisp-comment-indent () (if (looking-at "\\s<\\s<\\s<")