From ffe4eb5ea22b7a2c3f8493f31c9901570c0c2953 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 7 Aug 1999 03:21:32 +0000 Subject: [PATCH] (elisp-eval-buffer): Handle all 5 args of eval-buffer. --- lisp/emacs-lisp/eval-reg.el | 6 ++++-- 1 file 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) -- 2.39.5