GNU bug report logs - #322
off-by-one in doc/misc/cl.texi

Previous Next

Package: emacs;

Reported by: "Felix -" <felix.1 <at> canids.net>

Date: Tue, 27 May 2008 09:35:03 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 322 in the body.
You can then email your comments to 322 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#322; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Felix -" <felix.1 <at> canids.net>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Felix -" <felix.1 <at> canids.net>
To: bug-gnu-emacs <at> gnu.org
Subject: off-by-one in doc/misc/cl.texi
Date: Tue, 27 May 2008 02:28:51 -0700
node "Iteration Clauses" says

@example
(loop repeat n do ...)
(loop for temp to n do ...)
@end example
@noindent
are identical except that the second one forces you to choose
a name for a variable you aren't actually going to use.

except they aren't identical.
the repeat loop runs n times, the for loop runs n+1 times.





Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to "Felix -" <felix.1 <at> canids.net>:
bug acknowledged by developer. Full text and rfc822 format available.

Message #10 received at 322-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 322-done <at> debbugs.gnu.org
Subject: Re: bug#322: off-by-one in doc/misc/cl.texi
Date: Thu, 29 May 2008 23:02:35 -0400
> except they aren't identical.
> the repeat loop runs n times, the for loop runs n+1 times.

Thanks, I've fixed the examples to be identical,


        Stefan




bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Fri, 27 Jun 2008 14:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 362 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.