GNU bug report logs -
#24539
[PATCH] Add require statement to example code for generaetors
Previous Next
Reported by: Wilfred Hughes <me <at> wilfred.me.uk>
Date: Sun, 25 Sep 2016 14:39:01 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From ef390eecf8ed547236c39ad99d715f4e690204ff Mon Sep 17 00:00:00 2001
From: Wilfred Hughes <me <at> wilfred.me.uk>
Date: Sun, 25 Sep 2016 10:34:42 -0400
Subject: [PATCH] Add require statement to example code
* doc/lispref/control.texi (Generators): Since generator is not
autoloaded, we weren't documenting where this functionality is
defined.
---
doc/lispref/control.texi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index 0cdb035..0198644 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -805,6 +805,8 @@ Generators
working with iterators.
@example
+(require 'generator)
+
(iter-defun my-iter (x)
(iter-yield (1+ (iter-yield (1+ x))))
;; Return normally
--
2.10.0
This bug report was last modified 8 years and 280 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.