From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 15 05:46:30 2010 Received: (at submit) by debbugs.gnu.org; 15 Nov 2010 10:46:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PHwZy-0006HW-La for submit@debbugs.gnu.org; Mon, 15 Nov 2010 05:46:30 -0500 Received: from emh03.mail.saunalahti.fi ([62.142.5.109]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PHwZw-0006HQ-65 for submit@debbugs.gnu.org; Mon, 15 Nov 2010 05:46:29 -0500 Received: from saunalahti-vams (vs3-11.mail.saunalahti.fi [62.142.5.95]) by emh03-2.mail.saunalahti.fi (Postfix) with SMTP id 816C5EBB0F for ; Mon, 15 Nov 2010 12:51:23 +0200 (EET) Received: from emh05.mail.saunalahti.fi ([62.142.5.111]) by vs3-11.mail.saunalahti.fi ([62.142.5.95]) with SMTP (gateway) id A043D17B51C; Mon, 15 Nov 2010 12:51:23 +0200 Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh05.mail.saunalahti.fi (Postfix) with ESMTP id 5C56827D83 for ; Mon, 15 Nov 2010 12:51:21 +0200 (EET) From: Jari Aalto To: submit@debbugs.gnu.org Subject: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return Mail-Copies-To: poster Date: Mon, 15 Nov 2010 12:51:20 +0200 Message-ID: <87y68udfmf.fsf@picasso.cante.net> MIME-Version: 1.0 Content-Type: text/plain X-Antivirus: VAMS X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.4 (--) 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))" 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 15 12:32:26 2010 Received: (at 7408-done) by debbugs.gnu.org; 15 Nov 2010 17:32:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PI2un-0001Eb-Pv for submit@debbugs.gnu.org; Mon, 15 Nov 2010 12:32:26 -0500 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 1PI2gn-00014t-Op for 7408-done@debbugs.gnu.org; Mon, 15 Nov 2010 12:17:58 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0GALv74ExFpY76/2dsb2JhbAChWX5yvnyFSgSEWo1f X-IronPort-AV: E=Sophos;i="4.59,200,1288584000"; d="scan'208";a="82598203" 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 12:22:54 -0500 Received: by pastel.home (Postfix, from userid 20848) id 5A9AFA8263; Mon, 15 Nov 2010 12:22:54 -0500 (EST) From: Stefan Monnier To: Jari Aalto Subject: Re: bug#7408: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return Message-ID: References: <87y68udfmf.fsf@picasso.cante.net> Date: Mon, 15 Nov 2010 12:22:54 -0500 In-Reply-To: <87y68udfmf.fsf@picasso.cante.net> (Jari Aalto's message of "Mon, 15 Nov 2010 12:51:20 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 7408-done X-Mailman-Approved-At: Mon, 15 Nov 2010 12:32:24 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 15 12:45:21 2010 Received: (at 7408) by debbugs.gnu.org; 15 Nov 2010 17:45:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PI37I-0001Yc-Gl for submit@debbugs.gnu.org; Mon, 15 Nov 2010 12:45:20 -0500 Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PI37E-0001YM-93 for 7408@debbugs.gnu.org; Mon, 15 Nov 2010 12:45:19 -0500 Received: by eyd10 with SMTP id 10so3050246eyd.3 for <7408@debbugs.gnu.org>; Mon, 15 Nov 2010 09:50:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=pyn44SCLM42ASfRgtw/8LO15QM4XHj2EQIhiFo6Wim4=; b=t9O92LIoBzIQNDtFRWTjBCnAsIb0YlGw/p8HFb9MhFtmAVX8JJmCnMkkY1o48eM5Xc 2vnaVAoGcmTrh0T8D2f0H1dcpU9373n5ctcATZFNtSRCBc2mJ7sSUpLnSlnIJWoQ9puF OormMxQ7vJ+C/Axw9ihxu3JUYw7lzx5XZG5TU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=DB8GObwHphOlgR8iJfN2sNQlhh+1kSksBOic/ghLOOF6qCPumlJRf78W1YOqJ+lznt /PFUVm/hr3DgFVoDdVUAaAdlr7IRy6PRStu5aS2mYHjy7girWf0CUK4UNWz74TSCHM4u Vc2X/Kt5UO8MkwfiL0hyQhAovxUDssEyvA4u8= Received: by 10.213.28.131 with SMTP id m3mr5832044ebc.58.1289843412396; Mon, 15 Nov 2010 09:50:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.22.135 with HTTP; Mon, 15 Nov 2010 09:49:52 -0800 (PST) In-Reply-To: References: <87y68udfmf.fsf@picasso.cante.net> From: Lennart Borgman Date: Mon, 15 Nov 2010 18:49:52 +0100 Message-ID: Subject: Re: bug#7408: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return To: 7408@debbugs.gnu.org, monnier@iro.umontreal.ca Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 7408 Cc: Jari Aalto X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Mon, Nov 15, 2010 at 6:22 PM, Stefan Monnier wrote: >> The current definition of dolist in subr.el breaks lot of things that re= ly >> on the standard 'dolist' behavior: > >> =C2=A0 =C2=A0 $ emacs -Q --debug-init --batch --eval "(dolist (elt '(1 2= )) (return elt))" >> =C2=A0 =C2=A0 Symbol's function definition is void: return > > By standard, you mean "CL", right? =C2=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? ;-) From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 15 14:33:58 2010 Received: (at 7408) by debbugs.gnu.org; 15 Nov 2010 19:33:58 +0000 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 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" 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 Received: by pastel.home (Postfix, from userid 20848) id 62F79A8263; Mon, 15 Nov 2010 14:38:52 -0500 (EST) From: Stefan Monnier To: Lennart Borgman Subject: Re: bug#7408: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return Message-ID: References: <87y68udfmf.fsf@picasso.cante.net> Date: Mon, 15 Nov 2010 14:38:52 -0500 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) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 7408 Cc: Jari Aalto , 7408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) >>> 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 15 16:16:35 2010 Received: (at 7408) by debbugs.gnu.org; 15 Nov 2010 21:16:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PI6Pi-0003mc-MU for submit@debbugs.gnu.org; Mon, 15 Nov 2010 16:16:34 -0500 Received: from emh04.mail.saunalahti.fi ([62.142.5.110]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PI6Pf-0003mX-Fn for 7408@debbugs.gnu.org; Mon, 15 Nov 2010 16:16:33 -0500 Received: from saunalahti-vams (vs3-11.mail.saunalahti.fi [62.142.5.95]) by emh04-2.mail.saunalahti.fi (Postfix) with SMTP id 198AD13B270 for <7408@debbugs.gnu.org>; Mon, 15 Nov 2010 23:21:28 +0200 (EET) Received: from emh03.mail.saunalahti.fi ([62.142.5.109]) by vs3-11.mail.saunalahti.fi ([62.142.5.95]) with SMTP (gateway) id A017EC16E3D; Mon, 15 Nov 2010 23:21:28 +0200 Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh03.mail.saunalahti.fi (Postfix) with ESMTP id 04FA0158A63 for <7408@debbugs.gnu.org>; Mon, 15 Nov 2010 23:21:26 +0200 (EET) Received: from jaalto by picasso.cante.net with local (Exim 4.72) (envelope-from ) id 1PI6UQ-0002yS-Dg for 7408@debbugs.gnu.org; Mon, 15 Nov 2010 23:21:26 +0200 Date: Mon, 15 Nov 2010 23:21:26 +0200 From: jari To: 7408@debbugs.gnu.org Subject: Re: bug#7408: closed (Re: bug#7408: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return) Message-ID: <20101115212126.GF17341@picasso.cante.net> References: <87y68udfmf.fsf@picasso.cante.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jaalto@picasso.cante.net X-SA-Exim-Scanned: No (on picasso.cante.net); SAEximRunCond expanded to false X-Antivirus: VAMS X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 7408 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) On 2010-11-15 17:33, GNU bug Tracking System wrote: | 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@debbugs.gnu.org. The 'dolist' has existed long before subr.el::dolist was written. Code that uses dolist may expect "standard" CL behavior of, because that is what has been previously available in Emacs. I do not find it appropriate to close the bug report, because the problem still exists: There are two definitions of dolist, which are not compatible in current Emacs Jari From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 15 16:53:03 2010 Received: (at 7408) by debbugs.gnu.org; 15 Nov 2010 21:53:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PI6z1-00047U-Pm for submit@debbugs.gnu.org; Mon, 15 Nov 2010 16:53:03 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PI6yz-000472-CB for 7408@debbugs.gnu.org; Mon, 15 Nov 2010 16:53:01 -0500 Received: from localhost ([127.0.0.1]:39390) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PI73l-0005tA-D3; Mon, 15 Nov 2010 16:57:57 -0500 To: jari.aalto@cante.net Subject: Re: bug#7408: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return References: <87y68udfmf.fsf@picasso.cante.net> <20101115212126.GF17341@picasso.cante.net> From: Glenn Morris X-Spook: cybercash Putin bemd LLNL Agfa Albright 2600 Magazine PGP X-Ran: 8~y{Eo5_/}H!z\rpqxlk(Qs@r!CBvpjuRHeQo)5hhDhKdK~,1qhbF?6bo+m:r"'Eb-Y&\Z X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 15 Nov 2010 16:57:57 -0500 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 7408 Cc: 7408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) > There are two definitions of dolist, which are not compatible > in current Emacs subr.el has had a dolist definition since at least Emacs 21.x; ie 9 years. Therefore this cannot be a major issue in practice. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 16 16:20:33 2010 Received: (at 7408) by debbugs.gnu.org; 16 Nov 2010 21:20:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PISx7-00088E-0w for submit@debbugs.gnu.org; Tue, 16 Nov 2010 16:20:33 -0500 Received: from emh02.mail.saunalahti.fi ([62.142.5.108]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PISx2-000889-PE for 7408@debbugs.gnu.org; Tue, 16 Nov 2010 16:20:30 -0500 Received: from saunalahti-vams (vs3-10.mail.saunalahti.fi [62.142.5.94]) by emh02-2.mail.saunalahti.fi (Postfix) with SMTP id 87367EF5A7 for <7408@debbugs.gnu.org>; Tue, 16 Nov 2010 23:25:27 +0200 (EET) Received: from emh01.mail.saunalahti.fi ([62.142.5.107]) by vs3-10.mail.saunalahti.fi ([62.142.5.94]) with SMTP (gateway) id A02D728499E; Tue, 16 Nov 2010 23:25:27 +0200 Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh01.mail.saunalahti.fi (Postfix) with ESMTP id 637EF402E for <7408@debbugs.gnu.org>; Tue, 16 Nov 2010 23:25:25 +0200 (EET) From: Jari Aalto To: 7408@debbugs.gnu.org Subject: Re: Linux patchutils: Development of the project? Organization: Private References: <1213200935.4147.62.camel@cyberelk.elk> Date: Tue, 16 Nov 2010 23:25:25 +0200 In-Reply-To: <1213200935.4147.62.camel@cyberelk.elk> (Tim Waugh's message of "Wed, 11 Jun 2008 17:15:35 +0100") Message-ID: <87pqu59d16.fsf@picasso.cante.net> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Antivirus: VAMS X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 7408 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) Glenn Morris gnu.org> > subr.el has had a dolist definition since at least Emacs 21.x; ie 9 years. > Therefore this cannot be a major issue in practice. In my book it is still a bug, no matter how many years ago this bug were introduced: - To have two different implementations of same function. - To not be able to rely on uniform behavior. Jari From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 16 16:55:18 2010 Received: (at 7408) by debbugs.gnu.org; 16 Nov 2010 21:55:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PITUk-0008Nm-7e for submit@debbugs.gnu.org; Tue, 16 Nov 2010 16:55:18 -0500 Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PITUh-0008Nf-4U for 7408@debbugs.gnu.org; Tue, 16 Nov 2010 16:55:15 -0500 Received: by ewy8 with SMTP id 8so323532ewy.3 for <7408@debbugs.gnu.org>; Tue, 16 Nov 2010 14:00:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=0GPLI6/VbcakLMOASdHLW3xpLov8bFA9yFU63AluL5o=; b=kTncpSTT6y/FY9OmJKcyuFhNrPwBfHNoL437A/llp8LPspMlmavsigV3iFSWKflKfw EiyxiY7P0RowUS2PTC/seY4S77aZS8nkAUOfpaBQp1bE6db+MDGZ0Azlf+w5Rqi7sVeH HhzaCXezLp77Gw3qoGlrdyLRmrZJ8m5emuTrY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=IJa+y366pOBaahd7Tqa4yX9FJIAfUvmHvNDYGQNWJ0o9p7ZOVZU5v5kfRBXdtkC9Ag cRCKYSY2ZsVKvLJR2ioVkiPthblk1u1DjqaOKhrsJ+80fRr4RPqSDFqNcx3LYGg6Q5Ka TBaehBiMJq2Q9TovwYwW3DGjwciYLL/xaYNoI= Received: by 10.213.114.4 with SMTP id c4mr1174965ebq.84.1289944814018; Tue, 16 Nov 2010 14:00:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.22.135 with HTTP; Tue, 16 Nov 2010 13:59:53 -0800 (PST) In-Reply-To: <87pqu59d16.fsf@picasso.cante.net> References: <1213200935.4147.62.camel@cyberelk.elk> <87pqu59d16.fsf@picasso.cante.net> From: Lennart Borgman Date: Tue, 16 Nov 2010 22:59:53 +0100 Message-ID: Subject: Re: bug#7408: Linux patchutils: Development of the project? To: Jari Aalto Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 7408 Cc: 7408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Tue, Nov 16, 2010 at 10:25 PM, Jari Aalto wrote: > Glenn Morris gnu.org> >> subr.el has had a dolist definition since at least Emacs 21.x; ie 9 year= s. >> Therefore this cannot be a major issue in practice. > > In my book it is still a bug, no matter how many years ago this bug were > introduced: > > =C2=A0 =C2=A0- To have two different implementations of same function. > =C2=A0 =C2=A0- To not be able to rely on uniform behavior. IMO subtle differences are among the worst bugs. It can take a long time to discover what is wrong and you often guess wrong (especially if you are not aware of how difficult it can be). And the subtle difference often shows up in complicated situations. Maybe the cl version should be renamed? From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 16 17:16:29 2010 Received: (at 7408) by debbugs.gnu.org; 16 Nov 2010 22:16:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PITpF-00005A-Ig for submit@debbugs.gnu.org; Tue, 16 Nov 2010 17:16:29 -0500 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 1PITpE-000051-18 for 7408@debbugs.gnu.org; Tue, 16 Nov 2010 17:16:28 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjEIAGiS4kxFpY76/2dsb2JhbAChZn1ywE2FSwSEWo1g X-IronPort-AV: E=Sophos;i="4.59,207,1288584000"; d="scan'208";a="82722140" 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; 16 Nov 2010 17:21:27 -0500 Received: by pastel.home (Postfix, from userid 20848) id 59427A82A9; Tue, 16 Nov 2010 17:21:27 -0500 (EST) From: Stefan Monnier To: Jari Aalto Subject: Re: bug#7408: Linux patchutils: Development of the project? Message-ID: References: <1213200935.4147.62.camel@cyberelk.elk> <87pqu59d16.fsf@picasso.cante.net> Date: Tue, 16 Nov 2010 17:21:27 -0500 In-Reply-To: <87pqu59d16.fsf@picasso.cante.net> (Jari Aalto's message of "Tue, 16 Nov 2010 23:25:25 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 7408 Cc: 7408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) >> subr.el has had a dolist definition since at least Emacs 21.x; ie 9 years. >> Therefore this cannot be a major issue in practice. > In my book it is still a bug, no matter how many years ago this bug were > introduced: > - To have two different implementations of same function. > - To not be able to rely on uniform behavior. You look at it the wrong way: the problem is not with dolist, it's that you use `return' which is a special form that's not defined in standard Elisp. After (require 'cl), `return' gets defined and things work as you expect. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 16 23:42:40 2010 Received: (at 7408) by debbugs.gnu.org; 17 Nov 2010 04:42:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIZqx-0002Vu-GV for submit@debbugs.gnu.org; Tue, 16 Nov 2010 23:42:39 -0500 Received: from emh06.mail.saunalahti.fi ([62.142.5.116]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIZqu-0002Vp-E1 for 7408@debbugs.gnu.org; Tue, 16 Nov 2010 23:42:37 -0500 Received: from saunalahti-vams (vs3-10.mail.saunalahti.fi [62.142.5.94]) by emh06-2.mail.saunalahti.fi (Postfix) with SMTP id 9A444C7CD9; Wed, 17 Nov 2010 06:47:36 +0200 (EET) Received: from emh07.mail.saunalahti.fi ([62.142.5.117]) by vs3-10.mail.saunalahti.fi ([62.142.5.94]) with SMTP (gateway) id A02C9E95D9F; Wed, 17 Nov 2010 06:47:36 +0200 Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh07.mail.saunalahti.fi (Postfix) with ESMTP id 942A11C6385; Wed, 17 Nov 2010 06:47:33 +0200 (EET) Received: from jaalto by picasso.cante.net with local (Exim 4.72) (envelope-from ) id 1PIZvd-0000SN-Rn; Wed, 17 Nov 2010 06:47:29 +0200 Date: Wed, 17 Nov 2010 06:47:29 +0200 From: jari To: Stefan Monnier Subject: Re: bug#7408: Linux patchutils: Development of the project? Message-ID: <20101117044729.GG17341@picasso.cante.net> References: <1213200935.4147.62.camel@cyberelk.elk> <87pqu59d16.fsf@picasso.cante.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jaalto@picasso.cante.net X-SA-Exim-Scanned: No (on picasso.cante.net); SAEximRunCond expanded to false X-Antivirus: VAMS X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 7408 Cc: 7408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) On 2010-11-16 17:21, Stefan Monnier wrote: | >> subr.el has had a dolist definition since at least Emacs 21.x; ie 9 years. | >> Therefore this cannot be a major issue in practice. | > In my book it is still a bug, no matter how many years ago this bug were | > introduced: | | > a: - To have two different implementations of same function. | > b: - To not be able to rely on uniform behavior. | | You look at it the wrong way: the problem is not with dolist, it's that | you use `return' which is a special form that's not defined in standard | Elisp. As I understand it, the fact that there are forms like these nowadays: unless when ... dolist was because people used these constructs from CL so many time that they were "re-introduced" directly in subr.el in order to prevent loading CL. However re-implementation of CL equivalent of 'dolist' did not meet all the criteria. The 'return' has been integral part of 'dolist' since the start. | After (require 'cl), `return' gets defined and things work as you | expect. The implementation in subr.el::dolist does not have any support for 'return'. It is not that 'return' gets defined, but what happens is that loading CL clobbers that current definition pf 'dolist' by overwiting it with its own implementation: Two different implementation, that are not compatible. $ diff -u 1.subr.el 2.cl-macs.el | grep -vE ";|declare" --- 1.subr.el 2010-11-17 06:31:53.000000000 +0200 +++ 2.cl-macs.el 2010-11-17 06:32:31.000000000 +0200 @@ -1,19 +1,15 @@ (defmacro dolist (spec &rest body) "Loop over a list. -Evaluate BODY with VAR bound to each car from LIST, in turn. +Evaluate BODY with VAR bound to each `car' from LIST, in turn. Then evaluate RESULT to get return value, default nil. \(fn (VAR LIST [RESULT]) BODY...)" - (let ((temp '--dolist-tail--)) - `(let ((,temp ,(nth 1 spec)) - ,(car spec)) - (while ,temp - (setq ,(car spec) (car ,temp)) - ,@body - (setq ,temp (cdr ,temp))) - ,@(if (cdr (cdr spec)) - `((setq ,(car spec) nil) ,@(cdr (cdr spec))))))) + (let ((temp (make-symbol "--cl-dolist-temp--"))) >> + (list 'block nil + (list* 'let (list (list temp (nth 1 spec)) (car spec)) + (list* 'while temp (list 'setq (car spec) (list 'car temp)) + (append body (list (list 'setq temp + (list 'cdr temp))))) + (if (cdr (cdr spec)) + (cons (list 'setq (car spec) nil) (cdr (cdr spec))) + '(nil)))))) Naturally, loading CL also defines other things. But the fundamental problem is two incompatible dolist implementations. A possible solution: - Make subr.el::dolist repect return-block (nil-block) - have 'return' autoloaded If user uses: - Plain dolist, nothing more is loaded (subr.el is used) - "return", it triggers autoloading CL (or parts of it). Jari From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 17 03:20:28 2010 Received: (at 7408) by debbugs.gnu.org; 17 Nov 2010 08:20:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIdFk-0003si-DN for submit@debbugs.gnu.org; Wed, 17 Nov 2010 03:20:28 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIdFi-0003sd-Rg for 7408@debbugs.gnu.org; Wed, 17 Nov 2010 03:20:27 -0500 Received: from localhost ([127.0.0.1]:42680) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIdKV-0006wK-T6; Wed, 17 Nov 2010 03:25:24 -0500 To: jari Subject: Re: bug#7408: Linux patchutils: Development of the project? References: <1213200935.4147.62.camel@cyberelk.elk> <87pqu59d16.fsf@picasso.cante.net> <20101117044729.GG17341@picasso.cante.net> From: Glenn Morris X-Spook: infowar CESID advisors S Box anthrax Bush Wired United X-Ran: ?&jv1|iMjCP~ (jari's message of "Wed\, 17 Nov 2010 06\:47\:29 +0200") Message-ID: <4s4obguzkd.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 7408 Cc: Stefan Monnier , 7408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) What does any of this have to do with "Linux patchutils", BTW? From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 17 07:43:45 2010 Received: (at 7408) by debbugs.gnu.org; 17 Nov 2010 12:43:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIhMW-0007lG-1Q for submit@debbugs.gnu.org; Wed, 17 Nov 2010 07:43:44 -0500 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIhMU-0007lB-9M for 7408@debbugs.gnu.org; Wed, 17 Nov 2010 07:43:43 -0500 Received: by bwz12 with SMTP id 12so1579767bwz.3 for <7408@debbugs.gnu.org>; Wed, 17 Nov 2010 04:48:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :in-reply-to:references:user-agent:date:message-id:mime-version :content-type:content-transfer-encoding; bh=rQWDKwu1R0A71PISx7jrqoQkIkvGOAStEfiXj59vBxw=; b=XAO9yW8IBiiXt1tJn0bdU+OjUYON/+KvaY7MAWlEI9QeE7XKprb66kLCotv6YK3AQV EIvcJrwYoUusaqQjPCWkheUQ3MTUZCEuJh80sIMSAgYdUDZX+ZLJIyIZ4Cpoj5NNb19G tUtu/o6iayMMlOBpsuwtWaPdpuYwaM58SQh5A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; b=b20b6attWKjmSy4QhiuIiSx7tF0es6QtbE9jLXaG6jNUbX45MC6A9uOCRFgYkH8IO/ vOauPAjRN5XX/maVDcD2lZV2Rcy/H0ocqKOFRHkjTaFZANo0avcLliipPZn3w3Ictt3x PvaB2K6iF89jfa6JhVNkrIYEbw3CHq7QbZpew= Received: by 10.204.102.78 with SMTP id f14mr9293366bko.30.1289998123582; Wed, 17 Nov 2010 04:48:43 -0800 (PST) Received: from localhost (176.119.broadband10.iol.cz [90.177.119.176]) by mx.google.com with ESMTPS id g8sm1292901bkg.11.2010.11.17.04.48.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 17 Nov 2010 04:48:42 -0800 (PST) From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: Stefan Monnier Subject: Re: bug#7408: Linux patchutils: Development of the project? In-Reply-To: (Stefan Monnier's message of "Tue, 16 Nov 2010 17:21:27 -0500") References: <1213200935.4147.62.camel@cyberelk.elk> <87pqu59d16.fsf@picasso.cante.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Date: Wed, 17 Nov 2010 13:47:04 +0100 Message-ID: <87mxp8kth3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 7408 Cc: 7408@debbugs.gnu.org, Jari Aalto X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) Stefan Monnier writes: >>> subr.el has had a dolist definition since at least Emacs 21.x; ie 9 yea= rs. >>> Therefore this cannot be a major issue in practice. >> In my book it is still a bug, no matter how many years ago this bug were >> introduced: > >> - To have two different implementations of same function. >> - To not be able to rely on uniform behavior. > > You look at it the wrong way: the problem is not with dolist, it's that > you use `return' which is a special form that's not defined in standard > Elisp. After (require 'cl), `return' gets defined and things work as > you expect. While I don't share Jari's complaint in general (i.e., the approach "if you only want the subr.el dolist, you don't care if it's really CL dolist you end up calling; if you want the CL dolist, you require 'cl and are done with it" has served me acceptably well), I've always wondered what the hell was the person adding another function of the same name thinking. To have a library that clobbers existing definitions is a no no even outside Emacs, let alone in the core. Is the explanation (I'm not familiar with the history) that at the time cl.el was added there was no dolist in core Emacs, so there was no perceived need to call it dolist* as in other similar cases (mapcar*, defun* etc)? (In that case my sincere disdain would go for the person who introduced dolist into subr.el later without addressing the naming clash.) Same with `dotimes'. =C5=A0t=C4=9Bp=C3=A1n From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 17 09:13:40 2010 Received: (at 7408) by debbugs.gnu.org; 17 Nov 2010 14:13:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIilV-0008Ny-JE for submit@debbugs.gnu.org; Wed, 17 Nov 2010 09:13:40 -0500 Received: from mailout-de.gmx.net ([213.165.64.23] helo=mail.gmx.net) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1PIilU-0008Nt-3o for 7408@debbugs.gnu.org; Wed, 17 Nov 2010 09:13:36 -0500 Received: (qmail invoked by alias); 17 Nov 2010 14:18:37 -0000 Received: from 62-47-60-99.adsl.highway.telekom.at (EHLO [62.47.60.99]) [62.47.60.99] by mail.gmx.net (mp069) with SMTP; 17 Nov 2010 15:18:37 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+K7QQMAFOKUURQ3vYbhkcRB2QEDmvAladOnXUBfb brTGnAXquEAXlj Message-ID: <4CE3E43B.80802@gmx.at> Date: Wed, 17 Nov 2010 15:18:35 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: =?UTF-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: bug#7408: Linux patchutils: Development of the project? References: <1213200935.4147.62.camel@cyberelk.elk> <87pqu59d16.fsf@picasso.cante.net> <87mxp8kth3.fsf@gmail.com> In-Reply-To: <87mxp8kth3.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 7408 Cc: 7408@debbugs.gnu.org, Stefan Monnier , Jari Aalto X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) > ..., I've always > wondered what the hell was the person adding another function of the > same name thinking. To have a library that clobbers existing definitions > is a no no even outside Emacs, let alone in the core. > > Is the explanation (I'm not familiar with the history) that at the time > cl.el was added there was no dolist in core Emacs, so there was no > perceived need to call it dolist* as in other similar cases (mapcar*, > defun* etc)? (In that case my sincere disdain would go for the person > who introduced dolist into subr.el later without addressing the naming > clash.) > > Same with `dotimes'. Strongly seconded. For my opinion on this see http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg01582.html martin From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 18 14:51:19 2010 Received: (at 7408) by debbugs.gnu.org; 18 Nov 2010 19:51:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PJAVq-0006WI-Sj for submit@debbugs.gnu.org; Thu, 18 Nov 2010 14:51:19 -0500 Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PJAVp-0006W6-24 for 7408@debbugs.gnu.org; Thu, 18 Nov 2010 14:51:17 -0500 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id oAIJuIUv006654; Thu, 18 Nov 2010 14:56:19 -0500 Received: by pastel.home (Postfix, from userid 20848) id C4E58A82B6; Wed, 17 Nov 2010 08:39:29 -0500 (EST) From: Stefan Monnier To: jari Subject: Re: bug#7408: Linux patchutils: Development of the project? Message-ID: References: <1213200935.4147.62.camel@cyberelk.elk> <87pqu59d16.fsf@picasso.cante.net> <20101117044729.GG17341@picasso.cante.net> Date: Wed, 17 Nov 2010 08:39:29 -0500 In-Reply-To: <20101117044729.GG17341@picasso.cante.net> (jari's message of "Wed, 17 Nov 2010 06:47:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3683=0 X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: 7408 Cc: 7408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.3 (-) > The 'return' has been integral part of 'dolist' since the start. Who cares? > | After (require 'cl), `return' gets defined and things work as you > | expect. > The implementation in subr.el::dolist does not have any support for > 'return'. Again, who cares? If you want to use `return' you need to require the package that defines it. > It is not that 'return' gets defined, but what happens is that loading > CL clobbers that current definition pf 'dolist' by overwiting it with > its own implementation: And? Why would you care? Without looking at the source code, can you tell the difference? > Naturally, loading CL also defines other things. But the fundamental > problem is two incompatible dolist implementations. You still haven't shown any evidence of incompatibility. Show me a piece of code which would work with CL's dolist (but without CL's return) and yet doesn't work with subr.el's dolist. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 18 14:51:22 2010 Received: (at 7408) by debbugs.gnu.org; 18 Nov 2010 19:51:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PJAVt-0006WO-3W for submit@debbugs.gnu.org; Thu, 18 Nov 2010 14:51:21 -0500 Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PJAVq-0006W7-G5 for 7408@debbugs.gnu.org; Thu, 18 Nov 2010 14:51:18 -0500 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id oAIJuLLM006661; Thu, 18 Nov 2010 14:56:21 -0500 Received: by pastel.home (Postfix, from userid 20848) id F1A8DA82B3; Wed, 17 Nov 2010 08:39:37 -0500 (EST) From: Stefan Monnier To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: bug#7408: Linux patchutils: Development of the project? Message-ID: References: <1213200935.4147.62.camel@cyberelk.elk> <87pqu59d16.fsf@picasso.cante.net> <87mxp8kth3.fsf@gmail.com> Date: Wed, 17 Nov 2010 08:39:37 -0500 In-Reply-To: <87mxp8kth3.fsf@gmail.com> (=?utf-8?B?IsWgdMSbcMOhbiBOxJtt?= =?utf-8?B?ZWMiJ3M=?= message of "Wed, 17 Nov 2010 13:47:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3683=0 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 7408 Cc: 7408@debbugs.gnu.org, Jari Aalto X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.3 (-) > Is the explanation (I'm not familiar with the history) that at the time > cl.el was added there was no dolist in core Emacs, so there was no > perceived need to call it dolist* as in other similar cases (mapcar*, > defun* etc)? (In that case my sincere disdain would go for the person > who introduced dolist into subr.el later without addressing the naming > clash.) AFAIK subr.el's dolist and dotimes are 100% compatible with CL's definition. Of course, if you want to call `return' in there, you'll need to define `return', which is only provided by CL so you need to (require 'cl). I'd reconsider it only if someone can show me reasonable code that works without error both with CL loaded and without CL loaded and yet returns different results. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 18 16:57:41 2010 Received: (at 7408) by debbugs.gnu.org; 18 Nov 2010 21:57:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PJCU9-0007N6-62 for submit@debbugs.gnu.org; Thu, 18 Nov 2010 16:57:41 -0500 Received: from emh06.mail.saunalahti.fi ([62.142.5.116]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PJCU6-0007Mz-K6 for 7408@debbugs.gnu.org; Thu, 18 Nov 2010 16:57:40 -0500 Received: from saunalahti-vams (vs3-12.mail.saunalahti.fi [62.142.5.96]) by emh06-2.mail.saunalahti.fi (Postfix) with SMTP id 390B4C80CA; Fri, 19 Nov 2010 00:02:43 +0200 (EET) Received: from emh07.mail.saunalahti.fi ([62.142.5.117]) by vs3-12.mail.saunalahti.fi ([62.142.5.96]) with SMTP (gateway) id A002552A6FA; Fri, 19 Nov 2010 00:02:43 +0200 Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh07.mail.saunalahti.fi (Postfix) with ESMTP id C71D11C6384; Fri, 19 Nov 2010 00:02:39 +0200 (EET) From: Jari Aalto To: Stefan Monnier Subject: Re: bug#7408: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return Organization: Private References: <1213200935.4147.62.camel@cyberelk.elk> <87pqu59d16.fsf@picasso.cante.net> <87mxp8kth3.fsf@gmail.com> Date: Fri, 19 Nov 2010 00:02:39 +0200 In-Reply-To: (Stefan Monnier's message of "Wed, 17 Nov 2010 08:39:37 -0500") Message-ID: <877hga5lz4.fsf_-_@picasso.cante.net> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Antivirus: VAMS X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 7408 Cc: 7408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) 2010-11-17 15:39 Stefan Monnier : >> Is the explanation (I'm not familiar with the history) that at the time >> cl.el was added there was no dolist in core Emacs, so there was no >> perceived need to call it dolist* as in other similar cases (mapcar*, >> defun* etc)? (In that case my sincere disdain would go for the person >> who introduced dolist into subr.el later without addressing the naming >> clash.) > > AFAIK subr.el's dolist and dotimes are 100% compatible with > CL's definition. Of course, if you want to call `return' in there, > you'll need to define `return', which is only provided by CL so you need > to (require 'cl). > 2010-11-17 15:39 Stefan Monnier : >> The 'return' has been integral part of 'dolist' since the start. > > Who cares? There happens to be people that care. > Show me a piece of code which would work with CL's dolist (but without > CL's return) and yet doesn't work with subr.el's dolist. As per request: - "if you want to call `return' in there, you'll need to define `return" - "dolist and dotimes are 100% compatible with CL's definition." Jari $ emacs -Q (progn (autoload 'return "cl-macs" nil nil 'macro) (dolist (elt '(1 2)) (return elt))) Debugger entered--Lisp error: (no-catch --cl-block-nil-- 1) cl-block-throw(--cl-block-nil-- 1) (return-from nil elt) (return elt) (while --dolist-tail-- (setq elt (car --dolist-tail--)) (return elt) (setq --dolist-tail-- (cdr --dolist-tail--))) (let ((--dolist-tail-- ...) elt) (while --dolist-tail-- (setq elt ...) (return elt) (setq --dolist-tail-- ...))) (dolist (elt (quote ...)) (return elt)) (progn (autoload (quote return) "cl-macs" nil nil (quote macro)) (dolist (elt ...) (return elt))) eval((progn (autoload (quote return) "cl-macs" nil nil (quote macro)) (dolist (elt ...) (return elt)))) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 21 00:40:39 2010 Received: (at 7408) by debbugs.gnu.org; 21 Nov 2010 05:40:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PK2fH-0001hO-Gn for submit@debbugs.gnu.org; Sun, 21 Nov 2010 00:40:39 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PK2fF-0001hJ-81 for 7408@debbugs.gnu.org; Sun, 21 Nov 2010 00:40:38 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlEIAKpA6ExMCqtq/2dsb2JhbAChZ31yunqFSwSEWo1p X-IronPort-AV: E=Sophos;i="4.59,231,1288584000"; d="scan'208";a="83111918" 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 00:45:48 -0500 Received: by ceviche.home (Postfix, from userid 20848) id E9D42660F5; Sun, 21 Nov 2010 00:45:47 -0500 (EST) From: Stefan Monnier To: Jari Aalto Subject: Re: bug#7408: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return Message-ID: References: <1213200935.4147.62.camel@cyberelk.elk> <87pqu59d16.fsf@picasso.cante.net> <87mxp8kth3.fsf@gmail.com> <877hga5lz4.fsf_-_@picasso.cante.net> Date: Sun, 21 Nov 2010 00:45:47 -0500 In-Reply-To: <877hga5lz4.fsf_-_@picasso.cante.net> (Jari Aalto's message of "Fri, 19 Nov 2010 00:02:39 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 7408 Cc: 7408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > $ 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. E.g. I'd be *really* surprised if it were an example you bumped into before this discussion. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 21 04:03:44 2010 Received: (at 7408) by debbugs.gnu.org; 21 Nov 2010 09:03:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PK5po-000331-CW for submit@debbugs.gnu.org; Sun, 21 Nov 2010 04:03:44 -0500 Received: from emh03.mail.saunalahti.fi ([62.142.5.109]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PK5pk-00032t-IS for 7408@debbugs.gnu.org; Sun, 21 Nov 2010 04:03:42 -0500 Received: from saunalahti-vams (vs3-10.mail.saunalahti.fi [62.142.5.94]) by emh03-2.mail.saunalahti.fi (Postfix) with SMTP id 6C327EC2F7; Sun, 21 Nov 2010 11:08:51 +0200 (EET) Received: from emh04.mail.saunalahti.fi ([62.142.5.110]) by vs3-10.mail.saunalahti.fi ([62.142.5.94]) with SMTP (gateway) id A0482663557; Sun, 21 Nov 2010 11:08:51 +0200 Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh04.mail.saunalahti.fi (Postfix) with ESMTP id 033A241BE4; Sun, 21 Nov 2010 11:08:48 +0200 (EET) Received: from jaalto by picasso.cante.net with local (Exim 4.72) (envelope-from ) id 1PK5ui-0006De-1x; Sun, 21 Nov 2010 11:08:48 +0200 Date: Sun, 21 Nov 2010 11:08:48 +0200 From: jari To: Stefan Monnier Subject: Re: bug#7408: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return Message-ID: <20101121090848.GB29648@picasso.cante.net> References: <1213200935.4147.62.camel@cyberelk.elk> <87pqu59d16.fsf@picasso.cante.net> <87mxp8kth3.fsf@gmail.com> <877hga5lz4.fsf_-_@picasso.cante.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jaalto@picasso.cante.net X-SA-Exim-Scanned: No (on picasso.cante.net); SAEximRunCond expanded to false X-Antivirus: VAMS X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 7408 Cc: 7408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) On 2010-11-21 00:45, Stefan Monnier wrote: | > $ 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? Does it not do what it is supposed to do; to define `return' when it will be used for the first time? | 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." The question is not about "missing return", but differing dolist implementation in subr.el Jari From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 21 12:46:47 2010 Received: (at 7408) by debbugs.gnu.org; 21 Nov 2010 17:46:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PKDzy-0002MR-Uf for submit@debbugs.gnu.org; Sun, 21 Nov 2010 12:46:47 -0500 Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PKDzx-0002MM-72 for 7408@debbugs.gnu.org; Sun, 21 Nov 2010 12:46:46 -0500 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LC800500XJYPS00@a-mtaout23.012.net.il> for 7408@debbugs.gnu.org; Sun, 21 Nov 2010 19:51:57 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.52.47]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LC8005VZXMIGL70@a-mtaout23.012.net.il>; Sun, 21 Nov 2010 19:51:57 +0200 (IST) Date: Sun, 21 Nov 2010 19:49:59 +0200 From: Eli Zaretskii Subject: Re: bug#7408: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return In-reply-to: <20101121090848.GB29648@picasso.cante.net> X-012-Sender: halo1@inter.net.il To: jari Message-id: <83fwuua7nc.fsf@gnu.org> 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> X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 7408 Cc: monnier@iro.umontreal.ca, 7408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > Date: Sun, 21 Nov 2010 11:08:48 +0200 > From: jari > Cc: 7408@debbugs.gnu.org > > On 2010-11-21 00:45, Stefan Monnier wrote: > | > $ 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? Breaking news: you can easily hang yourself with a rope made of valid ELisp code. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 21 13:46:48 2010 Received: (at 7408) by debbugs.gnu.org; 21 Nov 2010 18:46:48 +0000 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 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" 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 Received: by ceviche.home (Postfix, from userid 20848) id 31CE1660F5; Sun, 21 Nov 2010 13:51:58 -0500 (EST) From: Stefan Monnier To: jari Subject: Re: bug#7408: 23.2.1 dolist -- subr.el and cl-macs differ with nil-block return 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> Date: Sun, 21 Nov 2010 13:51:58 -0500 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) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 7408 Cc: 7408@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > | > $ 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 21 18:14:03 2010 Received: (at 7408) by debbugs.gnu.org; 21 Nov 2010 23:14:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PKJ6g-0005xc-QQ for submit@debbugs.gnu.org; Sun, 21 Nov 2010 18:14:03 -0500 Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PKJ6f-0005xG-Ug for 7408@debbugs.gnu.org; Sun, 21 Nov 2010 18:14:02 -0500 Received: by wyb29 with SMTP id 29so6690273wyb.3 for <7408@debbugs.gnu.org>; Sun, 21 Nov 2010 15:19:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.158.140 with SMTP id q12mr3451549wek.14.1290381553629; Sun, 21 Nov 2010 15:19:13 -0800 (PST) Received: by 10.216.70.193 with HTTP; Sun, 21 Nov 2010 15:19:13 -0800 (PST) Date: Sun, 21 Nov 2010 18:19:13 -0500 X-Google-Sender-Auth: dyDOzz8NOANEyDt8NiPRdouiAhA Message-ID: Subject: bug#7408: Linux patchutils: Development of the project? From: MON KEY To: 7408@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -3.2 (---) X-Debbugs-Envelope-To: 7408 Cc: =?UTF-8?B?xaB0xJtww6FuIE7Em21lYw==?= , Stefan Monnier , jari.aalto@cante.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.2 (---) > Show me a piece of code which would work with CL's dolist (but without > CL's return) and yet doesn't work with subr.el's dolist. Well, FWIW following is the toplevel/main interface to my elisp implementation of Steel Bank Common Lisp's `map1' which in turn is that implementation's high-level driver for its portable Common Lisp mapping procedures. Among other things, my port to elisp required adding a cath/throw inside of a dolist b/c Elisp's `dolist' doesn't have `return'. Indeed, I was as surprised by the same `dolist' disconnect which Jari is currently poking at. What I found troubling was the process required to locate the locus of this disconnect... In so much as Elisp code transitions silently between the two versions of dolist it should do transparently. BTW - the impetus for this routine was w/re incorporating more cl seq fun into core but without the keyword overhead... ;;; :COURTESY SBCL :FILE sbcl/src/code/list.lisp (defun mon-map1 (fun-designator original-arglists accumulate take-car) (unless (functionp fun-designator) (error (concat ":FUNCTION `mon-map1' " "-- arg FUN-DESIGNATOR does not satisfy `functionp'"))) (let* ((mmp1-arg-lsts (mon-copy-list-mac original-arglists)) (mmp1-rtn-list (list nil)) (mmp1-tmp mmp1-rtn-list)) (do ((mmp1-rslt nil) (mmp1-args '() '())) ((catch 'is-null ;; :ADDED (dolist (mmp1-thrw mmp1-arg-lsts nil) (when (null mmp1-thrw) ;; :WAS (return t))) (throw 'is-null t)))) (if accumulate (cdr mmp1-rtn-list) (car original-arglists))) (do ((mmp1-arg-l mmp1-arg-lsts (cdr mmp1-arg-l))) ((null mmp1-arg-l)) (push (if take-car (caar mmp1-arg-l) (car mmp1-arg-l)) mmp1-args) (setf (car mmp1-arg-l) (cdar mmp1-arg-l))) (setq mmp1-rslt (apply fun-designator (nreverse mmp1-args))) (case accumulate (:nconc (setq mmp1-tmp (last (nconc mmp1-tmp mmp1-rslt)))) (:list (setcdr mmp1-tmp (list mmp1-rslt)) (setq mmp1-tmp (cdr mmp1-tmp))))))) From unknown Fri Jun 20 07:25:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 20 Dec 2010 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator