Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de>
Subject: Re: Using CL in Gnus
Date: Wed, 26 Nov 2003 18:38:25 +0100	[thread overview]
Message-ID: <v97k1n9gj2.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <b9yk75ntj1w.fsf@jpl.org>

On Wed, Nov 26 2003, Katsumi Yamaoka wrote:

>>>>>> In <v9y8u3cqiq.fsf@marauder.physik.uni-ulm.de>
>>>>>>	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/




  reply	other threads:[~2003-11-26 17:38 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-24 23:29 gnus-agentize versus emacs 20 mapc Kevin Ryde
2003-11-24 23:57 ` Katsumi Yamaoka
2003-11-25  3:45   ` Kevin Greiner
2003-11-25  4:18     ` Katsumi Yamaoka
2003-11-25 21:47     ` Kevin Ryde
2003-11-26  2:13       ` Katsumi Yamaoka
2003-11-26 11:34         ` Using CL in Gnus (was: gnus-agentize versus emacs 20 mapc) Reiner Steib
2003-11-26 12:23           ` Using CL in Gnus Katsumi Yamaoka
2003-11-26 17:38             ` Reiner Steib [this message]
2003-11-26 19:46               ` Karl Pflästerer
2003-11-27 22:41                 ` Reiner Steib
2003-11-28 16:30                   ` Karl Pflästerer
2003-11-28 17:08                     ` Jesper Harder
2003-11-29  8:04                       ` Miles Bader
2003-11-29  9:10                         ` Jesper Harder
2003-11-29 12:37                           ` Miles Bader
2003-12-01 21:23               ` Ted Zlatanov
2003-12-01 22:54                 ` Katsumi Yamaoka
2003-11-30 13:22           ` Using CL in Gnus (was: gnus-agentize versus emacs 20 mapc) Per Abrahamsen
2003-11-28 21:31         ` gnus-agentize versus emacs 20 mapc Kevin Ryde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v97k1n9gj2.fsf@marauder.physik.uni-ulm.de \
    --to=4.uce.03.r.s@nurfuerspam.de \
    --cc=reiner.steib@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).