GNU bug report logs -
#75413
Fix faulty example of SRFI-31 in the manual.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75413 in the body.
You can then email your comments to 75413 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#75413
; Package
guile
.
(Mon, 06 Jan 2025 23:56:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Yuval Langer <yuval.langer <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Mon, 06 Jan 2025 23:56:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
[0001-Fix-faulty-SRFI-31-example.patch (text/x-patch, attachment)]
Information forwarded
to
bug-guile <at> gnu.org
:
bug#75413
; Package
guile
.
(Tue, 07 Jan 2025 01:24:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 75413 <at> debbugs.gnu.org (full text, mbox):
Yuval Langer <yuval.langer <at> gmail.com> writes:
> diff --git a/doc/ref/srfi-modules.texi b/doc/ref/srfi-modules.texi
> index d77bc1c90..1373409f0 100644
> --- a/doc/ref/srfi-modules.texi
> +++ b/doc/ref/srfi-modules.texi
> @@ -3367,8 +3367,9 @@ The second syntax can be used to create anonymous recursive functions:
>
> @lisp
> guile> (define tmp (rec (display-n item n)
> - (if (positive? n)
> - (begin (display n) (display-n (- n 1))))))
> + (when (positive? n)
> + (display item)
> + (display-n item (- n 1)))))
> guile> (tmp 42 3)
> 424242
> guile>
Looks good overall -- strictly speaking, might need a (newline) in there
if we want the output to match (or the output could be changed).
--
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
Information forwarded
to
bug-guile <at> gnu.org
:
bug#75413
; Package
guile
.
(Thu, 09 Jan 2025 04:03:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 75413 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Adding a `(newline)` in this patch.
On Tue, Jan 7, 2025 at 3:23 AM Rob Browning <rlb <at> defaultvalue.org> wrote:
>
> Yuval Langer <yuval.langer <at> gmail.com> writes:
>
> > diff --git a/doc/ref/srfi-modules.texi b/doc/ref/srfi-modules.texi
> > index d77bc1c90..1373409f0 100644
> > --- a/doc/ref/srfi-modules.texi
> > +++ b/doc/ref/srfi-modules.texi
> > @@ -3367,8 +3367,9 @@ The second syntax can be used to create anonymous recursive functions:
> >
> > @lisp
> > guile> (define tmp (rec (display-n item n)
> > - (if (positive? n)
> > - (begin (display n) (display-n (- n 1))))))
> > + (when (positive? n)
> > + (display item)
> > + (display-n item (- n 1)))))
> > guile> (tmp 42 3)
> > 424242
> > guile>
>
> Looks good overall -- strictly speaking, might need a (newline) in there
> if we want the output to match (or the output could be changed).
>
> --
> Rob Browning
> rlb @defaultvalue.org and @debian.org
> GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
> GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
[0001-Fix-faulty-SRFI-31-example.patch (text/x-patch, attachment)]
Information forwarded
to
bug-guile <at> gnu.org
:
bug#75413
; Package
guile
.
(Thu, 09 Jan 2025 04:12:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 75413 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Sorry about the flood. I have added `(newline)`, but the example
output did not have the literal newlines, so in this patch I have
added both the `(newline)` call and the example output newlines.
On Thu, Jan 9, 2025 at 6:01 AM Yuval Langer <yuval.langer <at> gmail.com> wrote:
>
> Adding a `(newline)` in this patch.
>
> On Tue, Jan 7, 2025 at 3:23 AM Rob Browning <rlb <at> defaultvalue.org> wrote:
> >
> > Yuval Langer <yuval.langer <at> gmail.com> writes:
> >
> > > diff --git a/doc/ref/srfi-modules.texi b/doc/ref/srfi-modules.texi
> > > index d77bc1c90..1373409f0 100644
> > > --- a/doc/ref/srfi-modules.texi
> > > +++ b/doc/ref/srfi-modules.texi
> > > @@ -3367,8 +3367,9 @@ The second syntax can be used to create anonymous recursive functions:
> > >
> > > @lisp
> > > guile> (define tmp (rec (display-n item n)
> > > - (if (positive? n)
> > > - (begin (display n) (display-n (- n 1))))))
> > > + (when (positive? n)
> > > + (display item)
> > > + (display-n item (- n 1)))))
> > > guile> (tmp 42 3)
> > > 424242
> > > guile>
> >
> > Looks good overall -- strictly speaking, might need a (newline) in there
> > if we want the output to match (or the output could be changed).
> >
> > --
> > Rob Browning
> > rlb @defaultvalue.org and @debian.org
> > GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
> > GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
[0001-Fix-faulty-SRFI-31-example.patch (text/x-patch, attachment)]
Reply sent
to
lloda <lloda <at> sarc.name>
:
You have taken responsibility.
(Tue, 21 Jan 2025 00:46:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Yuval Langer <yuval.langer <at> gmail.com>
:
bug acknowledged by developer.
(Tue, 21 Jan 2025 00:46:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 75413-done <at> debbugs.gnu.org (full text, mbox):
Patch applied in 0b501477f937718a89a2783409e5b9327a03f800.
Thanks
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 18 Feb 2025 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 180 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.