From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7408: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return Date: Mon, 15 Nov 2010 14:38:52 -0500 Message-ID: References: <87y68udfmf.fsf@picasso.cante.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1289850321 12439 80.91.229.12 (15 Nov 2010 19:45:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 15 Nov 2010 19:45:21 +0000 (UTC) Cc: 7408@debbugs.gnu.org, Jari Aalto To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 15 20:45:17 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PI4zI-0005z5-95 for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Nov 2010 20:45:12 +0100 Original-Received: from localhost ([127.0.0.1]:46937 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PI4zH-0007UM-SP for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Nov 2010 14:45:11 -0500 Original-Received: from [140.186.70.92] (port=42556 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PI4yJ-00072y-Kb for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2010 14:44:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PI4yH-0007rf-3d for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2010 14:44:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PI4yH-0007rY-0x for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2010 14:44:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PI4oU-0002Pg-8V; Mon, 15 Nov 2010 14:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Nov 2010 19:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7408 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7408-submit@debbugs.gnu.org id=B7408.12898496389270 (code B ref 7408); Mon, 15 Nov 2010 19:34:02 +0000 Original-Received: (at 7408) by debbugs.gnu.org; 15 Nov 2010 19:33:58 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PI4oP-0002PT-OU for submit@debbugs.gnu.org; Mon, 15 Nov 2010 14:33:57 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PI4oN-0002PO-Nw for 7408@debbugs.gnu.org; Mon, 15 Nov 2010 14:33:56 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0GACMb4UxFpY76/2dsb2JhbAChXH9yv1eFSgSEWo1f X-IronPort-AV: E=Sophos;i="4.59,201,1288584000"; d="scan'208";a="82613385" Original-Received: from 69-165-142-250.dsl.teksavvy.com (HELO pastel.home) ([69.165.142.250]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 15 Nov 2010 14:38:52 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 62F79A8263; Mon, 15 Nov 2010 14:38:52 -0500 (EST) In-Reply-To: (Lennart Borgman's message of "Mon, 15 Nov 2010 18:49:52 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 15 Nov 2010 14:34:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41647 Archived-At: >>> The current definition of dolist in subr.el breaks lot of things that r= ely >>> on the standard 'dolist' behavior: >>=20 >>> =A0 =A0 $ emacs -Q --debug-init --batch --eval "(dolist (elt '(1 2)) (r= eturn elt))" >>> =A0 =A0 Symbol's function definition is void: return >>=20 >> By standard, you mean "CL", right? =A0If 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? ;-) Don't know about "should", but it can be one of the cases where you might want to do that, yes. Of course, you can also change your code to use catch&throw instead (which is what's used by `return' under the hood, AFAIK). Stefan