emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [External] : Re: cl-case is not autoloaded in Emacs 27


From: Drew Adams
Subject: RE: [External] : Re: cl-case is not autoloaded in Emacs 27
Date: Wed, 21 Jul 2021 20:02:17 +0000

> All those `cl-<foo>` thingies come from `cl-lib`, so yes you need to
> (require 'cl-lib) before you can use them.
> 
> And please don't require `cl-macs` since the subdivision of labor
> between the different files that comprise `cl-lib` is an
> internal detail subject to change.

You can consider the division an internal detail, but
if all someone (or some library) needs is, say, macro
`cl-case' then loading just `cl-macs' at compile time
can make sense.  That was true many moon ago, and I
don't see why it wouldn't remain true.

Seems like keeping the macro defs in their own file
can make sense for users as well as for Emacs dev.
Why/when wouldn't that be wanted?

Of course, it doesn't _hurt_ to require `cl-lib' at
compile time (except that it can add unneeded stuff
to the session that does the compiling).  And the
general case that you describe is no doubt the more
common one: more users want more from `cl-lib.el'
than just macro `cl-case'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]