aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1999-08-07 03:21:32 +0000
committerRichard M. Stallman1999-08-07 03:21:32 +0000
commitffe4eb5ea22b7a2c3f8493f31c9901570c0c2953 (patch)
treee6456da395dcc27000fe84cd80ab015c4262aa3d
parent8dd08b5b47b293f7cf3deb233cb4f550cf754783 (diff)
downloademacs-ffe4eb5ea22b7a2c3f8493f31c9901570c0c2953.tar.gz
emacs-ffe4eb5ea22b7a2c3f8493f31c9901570c0c2953.zip
(elisp-eval-buffer): Handle all 5 args of eval-buffer.
-rw-r--r--lisp/emacs-lisp/eval-reg.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/eval-reg.el b/lisp/emacs-lisp/eval-reg.el
index 4b7acc83b5e..30f990a2757 100644
--- a/lisp/emacs-lisp/eval-reg.el
+++ b/lisp/emacs-lisp/eval-reg.el
@@ -210,7 +210,8 @@ This version calls `eval-region' on the whole buffer."
210 (eval-region (point-min) (point-max) elisp-output)) 210 (eval-region (point-min) (point-max) elisp-output))
211 211
212 212
213(defun elisp-eval-buffer (&optional elisp-bufname elisp-printflag filename) 213(defun elisp-eval-buffer (&optional elisp-bufname elisp-printflag filename
214 unibyte do-allow-print)
214 "Execute BUFFER as Lisp code. Use current buffer if BUFFER is nil. 215 "Execute BUFFER as Lisp code. Use current buffer if BUFFER is nil.
215Programs can pass argument PRINTFLAG which controls printing of 216Programs can pass argument PRINTFLAG which controls printing of
216output: nil means discard it; anything else is stream for print. 217output: nil means discard it; anything else is stream for print.
@@ -225,7 +226,8 @@ This version calls `eval-region' on the whole buffer."
225 (save-excursion 226 (save-excursion
226 (set-buffer (or (get-buffer elisp-bufname) 227 (set-buffer (or (get-buffer elisp-bufname)
227 (error "No such buffer: %s" elisp-bufname))) 228 (error "No such buffer: %s" elisp-bufname)))
228 (eval-region (point-min) (point-max) elisp-printflag))) 229 (eval-region (point-min) (point-max) elisp-printflag
230 unibyte do-allow-print)))
229 231
230 232
231(provide 'eval-reg) 233(provide 'eval-reg)