summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1999-08-07 03:21:32 +0000
committerRichard M. Stallman <rms@gnu.org>1999-08-07 03:21:32 +0000
commitffe4eb5ea22b7a2c3f8493f31c9901570c0c2953 (patch)
treee6456da395dcc27000fe84cd80ab015c4262aa3d /lisp/emacs-lisp
parent8dd08b5b47b293f7cf3deb233cb4f550cf754783 (diff)
downloademacs-ffe4eb5ea22b7a2c3f8493f31c9901570c0c2953.tar.gz
emacs-ffe4eb5ea22b7a2c3f8493f31c9901570c0c2953.tar.bz2
emacs-ffe4eb5ea22b7a2c3f8493f31c9901570c0c2953.zip
(elisp-eval-buffer): Handle all 5 args of eval-buffer.
Diffstat (limited to 'lisp/emacs-lisp')
-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."
(eval-region (point-min) (point-max) elisp-output))
-(defun elisp-eval-buffer (&optional elisp-bufname elisp-printflag filename)
+(defun elisp-eval-buffer (&optional elisp-bufname elisp-printflag filename
+ unibyte do-allow-print)
"Execute BUFFER as Lisp code. Use current buffer if BUFFER is nil.
Programs can pass argument PRINTFLAG which controls printing of
output: nil means discard it; anything else is stream for print.
@@ -225,7 +226,8 @@ This version calls `eval-region' on the whole buffer."
(save-excursion
(set-buffer (or (get-buffer elisp-bufname)
(error "No such buffer: %s" elisp-bufname)))
- (eval-region (point-min) (point-max) elisp-printflag)))
+ (eval-region (point-min) (point-max) elisp-printflag
+ unibyte do-allow-print)))
(provide 'eval-reg)