diff options
author | Andy Wingo <wingo@pobox.com> | 2015-01-22 13:24:30 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2015-01-22 13:24:30 +0100 |
commit | a5b5cb422e66f77cac34ded42631db6a067323cc (patch) | |
tree | f7bd502e20d0d3de3c4bb0fbaf588e1b3f04c42b /doc/ref | |
parent | a51111dd255189bd00eb28547491ee4a9bfa9ca1 (diff) | |
parent | 8cf2a7ba7432d68b9a055d29f18117be70375af9 (diff) | |
download | guile-a5b5cb422e66f77cac34ded42631db6a067323cc.tar.gz |
Merge commit '8cf2a7ba7432d68b9a055d29f18117be70375af9'
Diffstat (limited to 'doc/ref')
-rw-r--r-- | doc/ref/guile-invoke.texi | 6 | ||||
-rw-r--r-- | doc/ref/posix.texi | 6 | ||||
-rw-r--r-- | doc/ref/srfi-modules.texi | 37 |
3 files changed, 46 insertions, 3 deletions
diff --git a/doc/ref/guile-invoke.texi b/doc/ref/guile-invoke.texi index d233ce653..bc33ce080 100644 --- a/doc/ref/guile-invoke.texi +++ b/doc/ref/guile-invoke.texi @@ -1,6 +1,6 @@ @c -*-texinfo-*- @c This is part of the GNU Guile Reference Manual. -@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2010, 2011, 2013 +@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2010, 2011, 2013, 2014 @c Free Software Foundation, Inc. @c See the file guile.texi for copying conditions. @@ -327,7 +327,9 @@ variable. By default, the history file is @file{$HOME/.guile_history}. @vindex GUILE_INSTALL_LOCALE This is a flag that can be used to tell Guile whether or not to install the current locale at startup, via a call to @code{(setlocale LC_ALL -"")}. @xref{Locales}, for more information on locales. +"")}@footnote{The @code{GUILE_INSTALL_LOCALE} environment variable was +ignored in Guile versions prior to 2.0.9.}. @xref{Locales}, for more +information on locales. You may explicitly indicate that you do not want to install the locale by setting @env{GUILE_INSTALL_LOCALE} to @code{0}, or diff --git a/doc/ref/posix.texi b/doc/ref/posix.texi index 9182bd8db..356941f2d 100644 --- a/doc/ref/posix.texi +++ b/doc/ref/posix.texi @@ -567,7 +567,11 @@ This procedure has a variety of uses: waiting for the ability to provide input, accept output, or the existence of exceptional conditions on a collection of ports or file descriptors, or waiting for a timeout to occur. -It also returns if interrupted by a signal. + +When an error occurs, of if it is interrupted by a signal, this +procedure throws a @code{system-error} exception +(@pxref{Conventions, @code{system-error}}). In case of an +interruption, the associated error number is @var{EINTR}. @var{reads}, @var{writes} and @var{excepts} can be lists or vectors, with each member a port or a file descriptor. diff --git a/doc/ref/srfi-modules.texi b/doc/ref/srfi-modules.texi index 4ebf76d69..c890d7dd1 100644 --- a/doc/ref/srfi-modules.texi +++ b/doc/ref/srfi-modules.texi @@ -38,6 +38,7 @@ get the relevant SRFI documents from the SRFI home page * SRFI-23:: Error reporting * SRFI-26:: Specializing parameters * SRFI-27:: Sources of Random Bits +* SRFI-28:: Basic format strings. * SRFI-30:: Nested multi-line block comments * SRFI-31:: A special form `rec' for recursive evaluation * SRFI-34:: Exception handling. @@ -3269,6 +3270,42 @@ reasonably small value (related to the width of the mantissa of an efficient number format). @end defun +@node SRFI-28 +@subsection SRFI-28 - Basic Format Strings +@cindex SRFI-28 + +SRFI-28 provides a basic @code{format} procedure that provides only +the @code{~a}, @code{~s}, @code{~%}, and @code{~~} format specifiers. +You can import this procedure by using: + +@lisp +(use-modules (srfi srfi-28)) +@end lisp + +@deffn {Scheme Procedure} format message arg @dots{} +Returns a formatted message, using @var{message} as the format string, +which can contain the following format specifiers: + +@table @code +@item ~a +Insert the textual representation of the next @var{arg}, as if printed +by @code{display}. + +@item ~s +Insert the textual representation of the next @var{arg}, as if printed +by @code{write}. + +@item ~% +Insert a newline. + +@item ~~ +Insert a tilde. +@end table + +This procedure is the same as calling @code{simple-format} (@pxref{Writing}) +with @code{#f} as the destination. +@end deffn + @node SRFI-30 @subsection SRFI-30 - Nested Multi-line Comments @cindex SRFI-30 |