mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-02 13:00:26 +02:00
Merge commit '8cf2a7ba74
'
This commit is contained in:
commit
a5b5cb422e
10 changed files with 172 additions and 49 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue