Re: Some libraries does (require 'cl)

2007-05-21 Thread Katsumi Yamaoka
In [EMAIL PROTECTED] Lennart Borgman (gmail) wrote: (require 'cl) without (eval-when-compile ...). Is not that incorrect? More files doing this: [...] tramp.el tramp.el doesn't seem to need cl at run time. Actually I have no problem on ftp and ssh connections using the following

Re: Some libraries does (require 'cl)

2007-05-20 Thread Richard Stallman
It seems to me that idlwave.el loads cl only at compile time. Why do you think otherwise? ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Re: Some libraries does (require 'cl)

2007-05-20 Thread Richard Stallman
It looks like mh-e tries to avoid loading cl at run time. Would someone like to verify that this works? It seems that the only other real problems are viper and tramp. I've asked the maintainers to fix them in the trunk, and I want to put those fixes into 22.2.

Re: Some libraries does (require 'cl)

2007-05-20 Thread Lennart Borgman (gmail)
Richard Stallman wrote: It seems to me that idlwave.el loads cl only at compile time. Why do you think otherwise? Yes, there is a second (require 'cl) on line 4157. ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org

Re: Some libraries does (require 'cl)

2007-05-19 Thread Reiner Steib
On Fri, May 18 2007, Lennart Borgman (gmail) wrote: Lennart Borgman (gmail) wrote: (require 'cl) without (eval-when-compile ...). Is not that incorrect? [...] More files doing this: [...] For the file from lisp/gnus/, these forms are no-ops in Emacs 21 and up. (In the development version

Re: Some libraries does (require 'cl)

2007-05-19 Thread Stefan Monnier
However there is one thing I do not understand and that other people have asked: If one want to use functions from cl.el (not only macros), how does one do then? Is (eval-when-compile (require 'cl)) sufficient then? Solution 1: you don't! Solution 2: you make sure that your call to the CL

Re: Some libraries does (require 'cl)

2007-05-18 Thread Lennart Borgman (gmail)
Lennart Borgman (gmail) wrote: Some libraries (iswitchb.el for example) does (require 'cl) without (eval-when-compile ...). Is not that incorrect? In GNU Emacs 22.1.50.1 (i386-mingw-nt5.1.2600) of 2007-05-06 More files doing this: lucid.el viper.el gnus-registry.el

Re: Some libraries does (require 'cl)

2007-05-18 Thread Lennart Borgman (gmail)
Richard Stallman wrote: Some libraries (iswitchb.el for example) does (require 'cl) without (eval-when-compile ...). Is not that incorrect? It is incorrect, in general. However, in the case of iswitchb, it is a no-op: ;; CL needed for cadr and last (if (not (and