From bcb495d67717d15414cdf08daa10562b9e884174 Mon Sep 17 00:00:00 2001 From: NalaGinrut Date: Wed, 7 Mar 2012 23:11:40 +0800 Subject: [PATCH 2/2] Add new handle-delim option 'fail to the manual. --- doc/ref/api-io.texi | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/doc/ref/api-io.texi b/doc/ref/api-io.texi index 24c2706..fdb6966 100644 --- a/doc/ref/api-io.texi +++ b/doc/ref/api-io.texi @@ -534,6 +534,9 @@ Read text until one of the characters in the string @var{delims} is found or end-of-file is reached. Read from @var{port} if supplied, otherwise from the value returned by @code{(current-input-port)}. @var{handle-delim} takes the same values as described for @code{read-line}. +But there's a special @var{handle-delim} @code{'fail} for @code{read-delimited}. +Which return #f if terminating delimiter can not be found. +Otherwise the result would be the same as trim. @end deffn @c begin (scm-doc-string "rdelim.scm" "read-delimited!") -- 1.7.0.4