GNU bug report logs -
#7408
23.2.1 dolist -- subr.el and cl-macs differ with nil-block return
Previous Next
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
[Message part 1 (text/plain, inline)]
Your bug report
#7408: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 7408 <at> debbugs.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)]
> 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
[Message part 3 (message/rfc822, inline)]
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
This bug report was last modified 14 years and 185 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.