[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 01/01: Add with-input-from-port, etc documentation
From: |
Andy Wingo |
Subject: |
[Guile-commits] 01/01: Add with-input-from-port, etc documentation |
Date: |
Fri, 24 Jun 2016 07:06:02 +0000 (UTC) |
wingo pushed a commit to branch master
in repository guile.
commit 20718dd94b8360e67c4df9caa5af3e079167e2a6
Author: Andy Wingo <address@hidden>
Date: Fri Jun 24 09:05:05 2016 +0200
Add with-input-from-port, etc documentation
* doc/ref/api-io.texi (Default Ports): Add documentation for
with-input-from-port, with-output-to-port, and with-error-to-port.
Fixes #20919.
---
doc/ref/api-io.texi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/doc/ref/api-io.texi b/doc/ref/api-io.texi
index 48ff177..2362053 100644
--- a/doc/ref/api-io.texi
+++ b/doc/ref/api-io.texi
@@ -886,6 +886,14 @@ Change the ports returned by @code{current-input-port},
so that they use the supplied @var{port} for input or output.
@end deffn
address@hidden {Scheme Procedure} with-input-from-port port thunk
address@hidden {Scheme Procedure} with-output-to-port port thunk
address@hidden {Scheme Procedure} with-error-to-port port thunk
+Call @var{thunk} in a dynamic environment in which
address@hidden, @code{current-output-port} or
address@hidden is rebound to the given @var{port}.
address@hidden deffn
+
@deftypefn {C Function} void scm_dynwind_current_input_port (SCM port)
@deftypefnx {C Function} void scm_dynwind_current_output_port (SCM port)
@deftypefnx {C Function} void scm_dynwind_current_error_port (SCM port)