Closed swsnr closed 11 years ago
It never crossed my mind that case
was not a builtin function.
This actually breaks the tests (don't mind Travis, which does not work ATM).
@rejeep I didn't care for the tests, for I just wanted to bring this issue to your attention. I actually don't think that commander should require cl at runtime. As said, imho it should use cl-lib
and add a cl-lib
requirement for backwards compatibility.
I've never used cl-lib
so I'm not sure how it works. Here's an attempt https://github.com/rejeep/commander.el/tree/cl-lib
@rejeep Well, just like "cl", except that you can require
it without warnings, and all functions are prefixed with cl-
. The branch looks good.
Great, merged it.
Commander must require
cl
at runtime, to makecase
available when the expanded body ofcommander
is actually run. Ifcl
is required at compile time only,case
is only available whilecommander
is expanded (for which it's not actually required), but not necessarily while the expanded body ofcommander
is executed.On Emacs 24.3 and later this makes commander emit a runtime warning about
cl
being required at runtime. I do not know how to avoid this. You may want to usecl-lib
instead, and add a dependency tocl-lib
for backwards compatibility.