Subject: bug#7408: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return

From: Lennart Borgman <[email-masked]>
Date: Mon, 15 Nov 2010 18:49:52 +0100

On Mon, Nov 15, 2010 at 6:22 PM, Stefan Monnier
<[email-masked]> 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? ;-)