# HG changeset patch # User Richard M. Stallman # Date 874102464 0 # Node ID 14e5e43d862615923e3c864f9fdff7712de3eacf # Parent b3d4cde6e4c384c0dd781ed09fff12b08967459d (elisp-eval-buffer): New arg FILENAME is ignored. diff -r b3d4cde6e4c3 -r 14e5e43d8626 lisp/emacs-lisp/eval-reg.el --- a/lisp/emacs-lisp/eval-reg.el Fri Sep 12 22:08:16 1997 +0000 +++ b/lisp/emacs-lisp/eval-reg.el Fri Sep 12 22:14:24 1997 +0000 @@ -199,11 +199,14 @@ (eval-region (point-min) (point-max) elisp-output)) -(defun elisp-eval-buffer (&optional elisp-bufname elisp-printflag) +(defun elisp-eval-buffer (&optional elisp-bufname elisp-printflag filename) "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. +The argument FILENAME is accepted and ignored, just to avoid +crashes. + This version calls `eval-region' on the whole buffer." (interactive) (if (null elisp-bufname)