From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54965 Path: main.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.gnus.general Subject: Re: Using CL in Gnus Date: Wed, 26 Nov 2003 18:38:25 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Sender: ding-owner@lists.math.uh.edu Message-ID: References: <87oev1uyzw.fsf@zip.com.au> <87k75oktn7.fsf@zip.com.au> Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1069868391 1165 80.91.224.253 (26 Nov 2003 17:39:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2003 17:39:51 +0000 (UTC) Original-X-From: ding-owner+M3505@lists.math.uh.edu Wed Nov 26 18:39:48 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AP3dj-00021T-00 for ; Wed, 26 Nov 2003 18:39:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AP3cg-0002V4-00; Wed, 26 Nov 2003 11:38:42 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AP3cb-0002Uz-00 for ding@lists.math.uh.edu; Wed, 26 Nov 2003 11:38:37 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 87A0E3A0043 for ; Wed, 26 Nov 2003 11:38:36 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AP3cZ-0002MV-00 for ; Wed, 26 Nov 2003 18:38:35 +0100 Mail-Followup-To: ding@gnus.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AP3cY-0002MN-00 for ; Wed, 26 Nov 2003 18:38:34 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AP3cY-0000Fq-00 for ; Wed, 26 Nov 2003 18:38:34 +0100 Original-Lines: 72 Original-X-Complaints-To: usenet@sea.gmane.org X-Face: :6KQZ[nyoS_edmB.%gw-=)BYth^|2+Y+^cu%I$FSx!&>-'om>3H7A|M&n(V7fIo3P.;yo.b yq4$p;ZaBtkv)\}biaiBQe"mD}iib1AA@99-fZ7i*bLhNRVC&0Wkxg9)SH?oWc@{ Mail-Copies-To: nobody User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:E9y7r7Ygf2Inv93ok9SAl7ccHJU= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:54965 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:54965 On Wed, Nov 26 2003, Katsumi Yamaoka wrote: >>>>>> In >>>>>> Reiner Steib <4.uce.03.r.s@nurfuerspam.de> wrote: [...] > That's quite right. However, Gnus 5.11 to be shipped is for > Emacs 21.4, not for Emacs 20. Yes (this is what I mentioned below). > And the latest compiled Gnus doesn't require cl in Emacs 21 as far > as I know. Yes, it doesn't. >> OTOH, Gnus 5.10.x (labeled Gnus 5.11) will be included in Emacs 21.y >> where the relevant functions for `spam-stat.el' (gethash >> hash-table-count make-hash-table mapc puthash) are built-in functions >> already. So I'm not sure how relevant it is to avoid mapc and friends >> in Gnus 5.10. > > Well, is it impossible that Gnus 5.11 will not support Emacs 20 [...]? [ Gnus 5.11 will be more or less identical to Gnus 5.10.x, as Gnus 5.9 (from Emacs 21.[1-3]) is more or less Gnus 5.8.8.] IIRC it is still our policy to support Emacs 20.7 (and XEmacs 21.1) and up, see (info "(gnus)Emacsen"). > It is a block to program freely, isn't it? Although dgnushack.el > probably will not be contained in Emacs 21.4, there are odd items > and old fashioned codes for Emacs 20 here there and elsewhere (which > also means that it may be hard to remove them). I agree. Probably we should drop Emacs 20.7 (and XEmacs < 21.4?) in the No Gnus series. There are not enough developers using and/or testing with this Emacs versions, so it's (sometimes) unsure that it really works. ,----[ grep -n -w -e mapc *.el ] | dgnushack.el:83: (define-compiler-macro mapc (&whole form fn seq &rest rest) | gnus-agent.el:602: (mapc | gnus-registry.el:294: (mapc | gnus.el:3197: (mapc (lambda (name-method) | gnus.el:3202: (mapc | gnus.el:3204: (mapc (lambda (name-method) | spam-stat.el:200: mapc puthash))) | spam-stat.el:433: (mapc (lambda (l) | spam-stat.el:496: (mapc (lambda (entry) `---- Do I understand the docs correctly, that mapc and mapcar _only_ differ in the result they give, but not in the side effects? Did anyone check if we could use mapcar instead of mapc in gnus.el and gnus-agent? IMHO we should replace them, if there's no disadvantage. *time passes* ... Now I tried so (and renamed your compiler-macro in dgnushack.el) and it worked for me with Emacs 20.7. For `gnus-registry.el' and `spam-stat.el' it's probably not so easy (more/other cl-functions). But for people who want those features, it's probably okay to load CL at run time when using Emacs 20, as those are quite advanced features. To make clear that the code in Gnus 5.10 _should_ not use mapc (beside the two packages `gnus-registry.el' and `spam-stat.el'), I support your point from your previous article: "Developers, if you think Gnus still supports Emacs 20, please do so.". :-) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/