aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1999-08-07 16:16:32 +0000
committerRichard M. Stallman1999-08-07 16:16:32 +0000
commit1076254d8344645775b45eefdd16dddf2863179e (patch)
treea409366d0d5e23d69c9cc51c3ade4551ecbabb59 /src
parentdaa1c1093c456314608784657a70598fe0286cf6 (diff)
downloademacs-1076254d8344645775b45eefdd16dddf2863179e.tar.gz
emacs-1076254d8344645775b45eefdd16dddf2863179e.zip
(Feval_buffer): New arg DO_ALLOW_PRINT.
Diffstat (limited to 'src')
-rw-r--r--src/lread.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/lread.c b/src/lread.c
index 3821557cffb..fce29ee874c 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1162,7 +1162,7 @@ readevalloop (readcharfun, stream, sourcename, evalfun, printflag, unibyte, read
1162 1162
1163#ifndef standalone 1163#ifndef standalone
1164 1164
1165DEFUN ("eval-buffer", Feval_buffer, Seval_buffer, 0, 4, "", 1165DEFUN ("eval-buffer", Feval_buffer, Seval_buffer, 0, 5, "",
1166 "Execute the current buffer as Lisp code.\n\ 1166 "Execute the current buffer as Lisp code.\n\
1167Programs can pass two arguments, BUFFER and PRINTFLAG.\n\ 1167Programs can pass two arguments, BUFFER and PRINTFLAG.\n\
1168BUFFER is the buffer to evaluate (nil means use current buffer).\n\ 1168BUFFER is the buffer to evaluate (nil means use current buffer).\n\
@@ -1171,10 +1171,15 @@ nil means discard it; anything else is stream for print.\n\
1171\n\ 1171\n\
1172If the optional third argument FILENAME is non-nil,\n\ 1172If the optional third argument FILENAME is non-nil,\n\
1173it specifies the file name to use for `load-history'.\n\ 1173it specifies the file name to use for `load-history'.\n\
1174The optional fourth argument UNIBYTE specifies `load-convert-to-unibyte'\n\
1175for this invocation.\n\
1176\n\
1177The optional fifth argument DO-ALLOW-PRINT, if not-nil, specifies that\n\
1178`print' and related functions should work normally even if PRINTFLAG is nil.\n\
1174\n\ 1179\n\
1175This function preserves the position of point.") 1180This function preserves the position of point.")
1176 (buffer, printflag, filename, unibyte) 1181 (buffer, printflag, filename, unibyte, do_allow_print)
1177 Lisp_Object buffer, printflag, filename, unibyte; 1182 Lisp_Object buffer, printflag, filename, unibyte, do_allow_print;
1178{ 1183{
1179 int count = specpdl_ptr - specpdl; 1184 int count = specpdl_ptr - specpdl;
1180 Lisp_Object tem, buf; 1185 Lisp_Object tem, buf;
@@ -1186,7 +1191,7 @@ This function preserves the position of point.")
1186 if (NILP (buf)) 1191 if (NILP (buf))
1187 error ("No such buffer"); 1192 error ("No such buffer");
1188 1193
1189 if (NILP (printflag)) 1194 if (NILP (printflag) && NILP (do_allow_print))
1190 tem = Qsymbolp; 1195 tem = Qsymbolp;
1191 else 1196 else
1192 tem = printflag; 1197 tem = printflag;