summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-05-25 22:40:45 +0000
committerRichard M. Stallman <rms@gnu.org>1998-05-25 22:40:45 +0000
commit2d75b395350d36d126f71085622b696380b2a9a9 (patch)
treee9a5144c0602ec26c44dcc972dd8d99dd5d81a68 /lisp/emacs-lisp
parentf9ba10b0112e8e2b6c285bd96a92dcda96d3ebca (diff)
downloademacs-2d75b395350d36d126f71085622b696380b2a9a9.tar.gz
emacs-2d75b395350d36d126f71085622b696380b2a9a9.tar.bz2
emacs-2d75b395350d36d126f71085622b696380b2a9a9.zip
(eval-defun): Pass proper beg to eval-region.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/lisp-mode.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index 473ecd734e8..0058b4622f8 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -342,11 +342,12 @@ Print value in minibuffer.
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 @@ With argument, insert value in current buffer after the defun."
;; 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<")