[Top][All Lists]

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

Re: Sweeter Emacs Lisp

From: Stefan Monnier
Subject: Re: Sweeter Emacs Lisp
Date: Tue, 16 Jul 2013 16:57:25 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

>> You can (require 'cl-lib) to get it.  It still can't be used in
>> pre-loaded code, but that's the only restriction,
> That's a policy, and not for technical reasons, is it?

Mostly policy, indeed.  Using it in "early pre-loaded code" has some
technical problems related to bootstrapping, but other than that I think
we could preload cl-lib without too much trouble, but policy-wise I'd
rather not to do (at least not for now).

> The past two weeks, while hacking desktop.el, often I would've loved
> to require 'cl-lib to use sequence functions. I didn't, because
> desktop.el, though not pre-loaded, it is so commonly used that loading
> cl-lib from it would be almost like forcing cl-lib into everybody's
> Emacs.

Feel free to (require 'cl-lib) for desktop.el since desktop.el is
not preloaded.  The whole point of the big "cl-" rename and the partial
rewrite of some parts of CL's code for cl-lib was specifically so that
most packages can use cl-lib's functions rather than tip-toe around
the mapcan.


reply via email to

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