[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: policy, recommendations regarding `cl-*'
From: |
Michael Welsh Duggan |
Subject: |
Re: policy, recommendations regarding `cl-*' |
Date: |
Thu, 27 Sep 2012 16:35:10 -0400 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>>>> On a related note, am I understanding right that functions
>>>> and macros from cl-macs.el will *not* trigger warnings?
>>> Depends what kind of warning and in which circumstance.
>> I have a test.el file with just this:
>> (eval-when-compile (require 'cl))
>> (cl-position '1 '(0 1 2 3))
>> (cl-defsubst test () (message "blah"))
>
> There's a bug: at run time, CL will not be loaded, so cl-position
> won't exist.
> For cl-defsubst, that's not a problem, because it gets macroexpanded
> away during compilation, so it's not needed at run-time.
>
> IOW if you use CL functions, you need (require 'cl-lib) without wrapping
> it in eval-when-compile.
I use cl-delete-if in my .emacs.el file. I have (require 'cl-lib) near
the top. However, when I compile this, I still get warnings:
In add-unique:
.emacs.el:31:63:Warning: function `cl-delete-if' from cl package called at
runtime
In md5i-save-undo-information:
.emacs.el:353:34:Warning: function `cl-remove-if' from cl package called at
runtime
I thought that when using the renamed functions there weren't supposed
to be any warnings generated?
--
Michael Welsh Duggan
(address@hidden)
- Re: policy, recommendations regarding `cl-*', (continued)
- Re: policy, recommendations regarding `cl-*', Eli Zaretskii, 2012/09/25
- RE: policy, recommendations regarding `cl-*', Drew Adams, 2012/09/25
- Re: policy, recommendations regarding `cl-*', Stefan Monnier, 2012/09/25
- RE: policy, recommendations regarding `cl-*', Drew Adams, 2012/09/25
- Re: policy, recommendations regarding `cl-*', Stefan Monnier, 2012/09/25
- Re: policy, recommendations regarding `cl-*', Bastien, 2012/09/26
- Re: policy, recommendations regarding `cl-*', Stefan Monnier, 2012/09/26
- Re: policy, recommendations regarding `cl-*', Bastien, 2012/09/26
- Re: policy, recommendations regarding `cl-*', Stefan Monnier, 2012/09/26
- Re: policy, recommendations regarding `cl-*', Bastien, 2012/09/26
- Re: policy, recommendations regarding `cl-*',
Michael Welsh Duggan <=
- Re: policy, recommendations regarding `cl-*', Stefan Monnier, 2012/09/27
- Re: policy, recommendations regarding `cl-*', Michael Welsh Duggan, 2012/09/29
- RE: policy, recommendations regarding `cl-*', Drew Adams, 2012/09/26
- Re: policy, recommendations regarding `cl-*', Stefan Monnier, 2012/09/26
- RE: policy, recommendations regarding `cl-*', Drew Adams, 2012/09/26
- Re: policy, recommendations regarding `cl-*', Eli Zaretskii, 2012/09/26
- Re: policy, recommendations regarding `cl-*', Stefan Monnier, 2012/09/26
- RE: policy, recommendations regarding `cl-*', Drew Adams, 2012/09/26
- Re: policy, recommendations regarding `cl-*', Jason Rumney, 2012/09/26
Re: policy, recommendations regarding `cl-*', Helmut Eller, 2012/09/25