X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/ad800164c88de7d29471d1fac5035c23ad82245d..b3ab615bc11f85df1a242dbdebd713a3ac5534e9:/lispref/streams.texi diff --git a/lispref/streams.texi b/lispref/streams.texi index bd87fc84bd..09f8695cd2 100644 --- a/lispref/streams.texi +++ b/lispref/streams.texi @@ -338,6 +338,7 @@ For example: @defvar standard-input This variable holds the default input stream---the stream that @code{read} uses when the @var{stream} argument is @code{nil}. +The default is @code{t}, meaning use the minibuffer. @end defvar @node Output Streams @@ -361,7 +362,9 @@ The output characters are inserted into the buffer that @var{marker} points into, at the marker position. The marker position advances as characters are inserted. The value of point in the buffer has no effect on printing when the stream is a marker, and this kind of printing -does not move point. +does not move point (except that if the marker points at or before the +position of point, point advances with the surrounding text, as +usual). @item @var{function} @cindex function output stream @@ -572,7 +575,6 @@ characters are used. @code{print} returns @var{object}. For example: @print{} "the hat" @print{} @print{} " came back" - @print{} @result{} " came back" @end group @end example @@ -657,7 +659,7 @@ characters in the output. (This argument is supported in Emacs versions @end group @end example -See @code{format}, in @ref{String Conversion}, for other ways to obtain +See @code{format}, in @ref{Formatting Strings}, for other ways to obtain the printed representation of a Lisp object as a string. @end defun @@ -683,6 +685,14 @@ returns @code{"The buffer is foo"}. @defvar standard-output The value of this variable is the default output stream---the stream that print functions use when the @var{stream} argument is @code{nil}. +The default is @code{t}, meaning display in the echo area. +@end defvar + +@defvar print-quoted +If this is non-@code{nil}, that means to print quoted forms using +abbreviated reader syntax. @code{(quote foo)} prints as @code{'foo}, +@code{(function foo)} as @code{#'foo}, and backquoted forms print +using modern backquote syntax. @end defvar @defvar print-escape-newlines @@ -780,7 +790,7 @@ Emacs-Lisp Expressions, emacs, The GNU Emacs Manual}). @end defopt These variables are used for detecting and reporting circular -and shared structure---but they are only defined in Emacs 21. +and shared structure: @tindex print-circle @defvar print-circle @@ -812,6 +822,17 @@ the @code{print-circle} feature. You should not use it except to bind it to @code{nil} when you bind @code{print-continuous-numbering}. @end defvar +@defvar float-output-format +This variable specifies how to print floating point numbers. Its +default value is @code{nil}, meaning use the shortest output +that represents the number without losing information. + +To control output format more precisely, you can put a string in this +variable. The string should hold a @samp{%}-specification to be used +in the C function @code{sprintf}. For further restrictions on what +you can use, see the variable's documentation string. +@end defvar + @ignore arch-tag: 07636b8c-c4e3-4735-9e06-2e864320b434 @end ignore