GNU bug report logs - #7408
23.2.1 dolist -- subr.el and cl-macs differ with nil-block return

Previous Next

Package: emacs;

Reported by: Jari Aalto <jari.aalto <at> cante.net>

Date: Mon, 15 Nov 2010 10:47:02 UTC

Severity: normal

Found in version 23.2+1-4

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: Lennart Borgman <lennart.borgman <at> gmail.com>
To: 7408 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca
Cc: Jari Aalto <jari.aalto <at> cante.net>
Subject: bug#7408: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return
Date: Mon, 15 Nov 2010 18:49:52 +0100
On Mon, Nov 15, 2010 at 6:22 PM, Stefan Monnier
<monnier <at> iro.umontreal.ca> wrote:
>> The current definition of dolist in subr.el breaks lot of things that rely
>> on the standard 'dolist' behavior:
>
>>     $ emacs -Q --debug-init --batch --eval "(dolist (elt '(1 2)) (return elt))"
>>     Symbol's function definition is void: return
>
> By standard, you mean "CL", right?  If you want CL behavior, then do
> (require 'cl), and it will then work.


So this is one of the reasons you should do

   (eval-when-compile (require 'cl))

Or? ;-)




This bug report was last modified 14 years and 186 days ago.

Previous Next


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