From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47191 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus always loads cl Date: Tue, 15 Oct 2002 15:54:16 +0200 Organization: University of Dortmund, Germany Sender: owner-ding@hpc.uh.edu Message-ID: <87hefnu7sn.fsf@crybaby.cs.uni-dortmund.de> References: <87u1jolt7k.fsf@crybaby.cs.uni-dortmund.de> <87adlgb3w7.fsf@crybaby.cs.uni-dortmund.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034690131 20568 80.91.224.249 (15 Oct 2002 13:55:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 15 Oct 2002 13:55:31 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 181SAT-0005L2-00 for ; Tue, 15 Oct 2002 15:55:29 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 181S9k-0005aA-00; Tue, 15 Oct 2002 08:54:44 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 15 Oct 2002 08:55:27 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id IAA02155 for ; Tue, 15 Oct 2002 08:55:14 -0500 (CDT) Original-Received: (qmail 20373 invoked by alias); 15 Oct 2002 13:54:27 -0000 Original-Received: (qmail 20368 invoked from network); 15 Oct 2002 13:54:26 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 15 Oct 2002 13:54:26 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 181SzX-0000Iq-00 for ; Tue, 15 Oct 2002 16:48:15 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 27 Original-NNTP-Posting-Host: crybaby.uni-duisburg.de Original-X-Trace: quimby.gnus.org 1034693295 1167 134.91.30.116 (15 Oct 2002 14:48:15 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 15 Oct 2002 14:48:15 GMT User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:HeEh1+UmEGMXrigV+CvioSiECHo= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47191 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47191 Katsumi Yamaoka writes: > It is correct if you mean there might be puthash provided by > other than cl even if Emacs 20 is running. And that form will > also load the other cl run-time functions, gethash, > hash-table-count, etc., which are required by spam-stat.el. > Probably, it should strictly be made as follows: > > (unless (and (fboundp 'gethash) (fboundp 'hash-table-count) > (fboundp 'make-hash-table) (fboundp 'mapc) > (fboundp 'puthash)) > (require 'cl) > (unless (fboundp 'puthash) > (defalias 'puthash 'cl-puthash))) > > However, if such a thing is required, my will inclines to > forsake Emacs 20 users. Do you have any other ideas? Why forsake Emacs 20 users? The code is not that terrible :-) And then, maybe it's sufficient to test some of those functions instead of all of them -- we expect them to be defined in the same file anyway, right? kai -- ~/.signature is: umop ap!sdn (Frank Nobis)