From: Richard M. Stallman Date: Sat, 7 Aug 1999 03:21:32 +0000 (+0000) Subject: (elisp-eval-buffer): Handle all 5 args of eval-buffer. X-Git-Tag: emacs-pretest-21.0.90~7242 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ffe4eb5ea22b7a2c3f8493f31c9901570c0c2953;p=emacs.git (elisp-eval-buffer): Handle all 5 args of eval-buffer. --- 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)