From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Christopher Allan Webber Newsgroups: gmane.lisp.guile.bugs Subject: bug#24207: Fixing documentation example for make-custom-binary-input-port Date: Thu, 11 Aug 2016 15:13:23 -0500 Message-ID: <87a8gjcbdo.fsf@dustycloud.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1470946465 8242 195.159.176.226 (11 Aug 2016 20:14:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Aug 2016 20:14:25 +0000 (UTC) User-Agent: mu4e 0.9.16; emacs 24.5.1 To: 24207@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Aug 11 22:14:21 2016 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXwMr-0001vX-IM for guile-bugs@m.gmane.org; Thu, 11 Aug 2016 22:14:17 +0200 Original-Received: from localhost ([::1]:50391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXwMo-0000G0-J6 for guile-bugs@m.gmane.org; Thu, 11 Aug 2016 16:14:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXwMg-0000EU-U1 for bug-guile@gnu.org; Thu, 11 Aug 2016 16:14:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXwMc-0005an-NA for bug-guile@gnu.org; Thu, 11 Aug 2016 16:14:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXwMc-0005aj-JX for bug-guile@gnu.org; Thu, 11 Aug 2016 16:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bXwMc-0005BS-FA for bug-guile@gnu.org; Thu, 11 Aug 2016 16:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christopher Allan Webber Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 11 Aug 2016 20:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24207 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147094643119899 (code B ref -1); Thu, 11 Aug 2016 20:14:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Aug 2016 20:13:51 +0000 Original-Received: from localhost ([127.0.0.1]:54394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXwMR-0005At-FG for submit@debbugs.gnu.org; Thu, 11 Aug 2016 16:13:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXwMP-00059h-Lw for submit@debbugs.gnu.org; Thu, 11 Aug 2016 16:13:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXwMJ-0005PQ-FZ for submit@debbugs.gnu.org; Thu, 11 Aug 2016 16:13:44 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXwMJ-0005Oq-CU for submit@debbugs.gnu.org; Thu, 11 Aug 2016 16:13:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXwMH-0008QL-64 for bug-guile@gnu.org; Thu, 11 Aug 2016 16:13:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXwMB-0005M9-VF for bug-guile@gnu.org; Thu, 11 Aug 2016 16:13:40 -0400 Original-Received: from dustycloud.org ([50.116.34.160]:37310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXwMB-0005JO-Qz for bug-guile@gnu.org; Thu, 11 Aug 2016 16:13:35 -0400 Original-Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 8ABFC26627 for ; Thu, 11 Aug 2016 16:13:23 -0400 (EDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8378 Archived-At: --=-=-= Content-Type: text/plain The example previously did not run, because it was missing the "closed" parameter. Fixed. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Fix-example-in-make-custom-binary-input-port-documen.patch >From abed180e8ea3ada5c4e156165f0b5e648d517ba2 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 11 Aug 2016 15:10:19 -0500 Subject: [PATCH] Fix example in make-custom-binary-input-port documentation * doc/ref/api-io.texi (Custom Ports): Add additional argument to example's invocation of make-custom-binary-input-port. Previously had mismatched arity by missing "closed" argument. --- doc/ref/api-io.texi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/ref/api-io.texi b/doc/ref/api-io.texi index 76c8db8..e4e4f36 100644 --- a/doc/ref/api-io.texi +++ b/doc/ref/api-io.texi @@ -1,7 +1,7 @@ @c -*-texinfo-*- @c This is part of the GNU Guile Reference Manual. @c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2007, 2009, -@c 2010, 2011, 2013 Free Software Foundation, Inc. +@c 2010, 2011, 2013, 2016 Free Software Foundation, Inc. @c See the file guile.texi for copying conditions. @node Input and Output @@ -1278,8 +1278,8 @@ procedure (@pxref{Bytevector Ports}) could be implemented as follows: (set! position new-position)) (make-custom-binary-input-port "the port" read! - get-position - set-position!)) + get-position set-position! + #f)) (read (open-bytevector-input-port (string->utf8 "hello"))) @result{} hello -- 2.9.2 --=-=-=--