summaryrefslogtreecommitdiff
path: root/doc/lispref/streams.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lispref/streams.texi')
-rw-r--r--doc/lispref/streams.texi9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/lispref/streams.texi b/doc/lispref/streams.texi
index 1d549ae8916..b12adcf3dcf 100644
--- a/doc/lispref/streams.texi
+++ b/doc/lispref/streams.texi
@@ -615,10 +615,13 @@ spacing between calls.
@end example
@end defun
-@defun terpri &optional stream
+@defun terpri &optional stream ensure
@cindex newline in print
-This function outputs a newline to @var{stream}. The name stands
-for ``terminate print''.
+This function outputs a newline to @var{stream}. The name stands for
+``terminate print''. If @var{ensure} is non-@code{nil} no newline is printed
+if @var{stream} is already at the beginning of a line. Note in this
+case @var{stream} can not be a function and an error is signalled if
+it is. This function returns @code{t} if a newline is printed.
@end defun
@defun write-char character &optional stream