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: Sun, 21 Nov 2010 13:51:58 -0500 Message-ID: References: <1213200935.4147.62.camel@cyberelk.elk> <87pqu59d16.fsf@picasso.cante.net> <87mxp8kth3.fsf@gmail.com> <877hga5lz4.fsf_-_@picasso.cante.net> <20101121090848.GB29648@picasso.cante.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290366891 10864 80.91.229.12 (21 Nov 2010 19:14:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 21 Nov 2010 19:14:51 +0000 (UTC) Cc: 7408@debbugs.gnu.org To: jari Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 21 20:14:44 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 1PKFN3-0003Od-K8 for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Nov 2010 20:14:41 +0100 Original-Received: from localhost ([127.0.0.1]:44229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKFN2-000392-OQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Nov 2010 14:14:40 -0500 Original-Received: from [140.186.70.92] (port=41560 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKFMu-00037w-JS for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2010 14:14:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PKFMt-0001Qk-Cj for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2010 14:14:32 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PKFMt-0001Qc-8O for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2010 14:14:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PKEwI-0002l7-5t; Sun, 21 Nov 2010 13:47: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: Sun, 21 Nov 2010 18:47: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.129036520810597 (code B ref 7408); Sun, 21 Nov 2010 18:47:02 +0000 Original-Received: (at 7408) by debbugs.gnu.org; 21 Nov 2010 18:46:48 +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 1PKEw4-0002ks-5s for submit@debbugs.gnu.org; Sun, 21 Nov 2010 13:46:48 -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 1PKEw1-0002kn-N3 for 7408@debbugs.gnu.org; Sun, 21 Nov 2010 13:46:46 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: An4HAGv46ExMCqtq/2dsb2JhbAChW31yvB2FSwSEWo1p X-IronPort-AV: E=Sophos;i="4.59,232,1288584000"; d="scan'208";a="83142029" Original-Received: from 76-10-171-106.dsl.teksavvy.com (HELO ceviche.home) ([76.10.171.106]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 21 Nov 2010 13:51:58 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 31CE1660F5; Sun, 21 Nov 2010 13:51:58 -0500 (EST) In-Reply-To: <20101121090848.GB29648@picasso.cante.net> (jari's message of "Sun, 21 Nov 2010 11:08:48 +0200") 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: Sun, 21 Nov 2010 13:47: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:41800 Archived-At: > | > $ emacs -Q > | > (progn > | > (autoload 'return "cl-macs" nil nil 'macro) > | > (dolist (elt '(1 2)) > | > (return elt))) > | This causes cl-macs to be run at an unexpected time. I.e. it's ruled > | out for being a contrived example. > Is the above code not valid? Doesn't matter: lots of vlid Elisp code doesn't do what you'd expect. > Does it not do what it is supposed to do; Apparently it doesn't for you. > to define `return' when it will be used for the first time? The normal way to use CL features like `return' is with (require 'cl) somewhere at the top-level. Anything else is poor code that needs to be improved. > | E.g. I'd be *really* surprised if it were an example you bumped into > | before this discussion. > Surprise or not, it demonstrates the defiency of claimed: > - "dolist and dotimes are 100% compatible with CL's definition." You don't need to teach me this. I know full well that 100% compatibility between two pieces of code in Elisp is *never* true, unless the two are `eq'. Stefan