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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: tracker <at> debbugs.gnu.org, bug-strong-list <at> debbugs.gnu.org
Subject: bug#7408: closed (23.2.1 dolist -- subr.el and cl-macs differ
 with nil-block return)
Date: Mon, 15 Nov 2010 17:33:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 15 Nov 2010 12:22:54 -0500
with message-id <jwvtyjih597.fsf-monnier+emacs <at> gnu.org>
and subject line Re: bug#7408: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return
has caused the GNU bug report #7408,
regarding 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
7408: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7408
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Jari Aalto <jari.aalto <at> cante.net>
To: submit <at> debbugs.gnu.org
Subject: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return
Date: Mon, 15 Nov 2010 12:51:20 +0200
Package: emacs
Version: 23.2+1-4
Severity: serious

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

    $ macs -Q -l cl-macs --debug-init --batch --eval "(dolist (elt '(1 2)) (return elt))"
    <no errors>

Please update subr.el::dolist in respect to 'return'.

Jari

-- System Information
Debian Release: squeeze/sid
  APT Prefers testing
  APT policy: (990, testing) (500, unstable) (1, experimental)
Architecture: amd64
Kernel: Linux picasso 2.6.32-5-amd64 #1 SMP Fri Sep 17 21:50:19 UTC 2010 x86_64 GNU/Linux
Locale: LANG=en_DK.UTF-8

-- Versions of packages `emacs depends on'.
Depends:
emacs23         23.2+1-4        GNU Emacs is the extensible self-documenting 
emacs23-lucid   23.2+1-4        GNU Emacs is the extensible self-documenting 
emacs23-nox     23.2+1-4        GNU Emacs is the extensible self-documenting 


[Message part 3 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jari Aalto <jari.aalto <at> cante.net>
Subject: Re: bug#7408: 23.2.1 dolist -- subr.el and cl-macs differ with
	nil-block return
Date: Mon, 15 Nov 2010 12:22:54 -0500
> 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.


        Stefan


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.