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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (Emacs bug Tracking System)
To: "Felix -" <felix.1 <at> canids.net>
Subject: bug#322 closed by Stefan Monnier <monnier <at> iro.umontreal.ca> (Re: 
 bug#322: off-by-one in doc/misc/cl.texi)
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the emacs package:

#322: off-by-one in doc/misc/cl.texi

It has been closed by Stefan Monnier <monnier <at> iro.umontreal.ca>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Stefan Monnier <monnier <at> iro.umontreal.ca> by
replying to this email.


-- 
322: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=322
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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

[Message part 3 (message/rfc822, inline)]
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.




This bug report was last modified 17 years and 20 days ago.

Previous Next


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