From: Bastien <bzg@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 'Eli Zaretskii' <eliz@gnu.org>,
Drew Adams <drew.adams@oracle.com>,
emacs-devel@gnu.org
Subject: Re: policy, recommendations regarding `cl-*'
Date: Wed, 26 Sep 2012 15:12:20 +0200 [thread overview]
Message-ID: <87k3vh2aiz.fsf@bzg.ath.cx> (raw)
In-Reply-To: <jwvwqzh2b7m.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 26 Sep 2012 08:59:46 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> 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"))
In dired, I byte-compile with `B' on the file.
>> For example, compiling a file with this
>> (cl-position '1 '(0 1 2 3))
>> (cl-defsubst test () (interactive) (message "blah"))
>> will warn about cl-position, not cl-defsubst.
>
> I don't see any particular reason to have a warning for the above code,
> unless of course you forgot the (require 'cl-lib) or you wrapped the
> (require 'cl-lib) in an eval-when-compile. So please say precisely
> which warning you get and in which case.
With the recipe above, I get this warning:
Compiling file /home/guerry/test.el at Wed Sep 26 15:01:47 2012
test.el:1:2:Warning: function `cl-position' from cl package called at runtime
Why is there no warning about cl-defsubst? cl-defsubst is defined in
cl-macs.el but I don't see where cl.el is unconditionnally requiring
cl-macs.
How to get rid of the warning about cl-position? cl-seq.el doesn't
have any (provide 'cl-seq).
This is with GNU Emacs 24.2.50.2 (i686-pc-linux-gnu, GTK+ Version 3.4.4)
of 2012-09-20.
--
Bastien
next prev parent reply other threads:[~2012-09-26 13:12 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-25 20:31 policy, recommendations regarding `cl-*' Drew Adams
2012-09-25 21:01 ` Eli Zaretskii
2012-09-25 22:09 ` Drew Adams
2012-09-26 1:15 ` Stefan Monnier
2012-09-26 2:51 ` Drew Adams
2012-09-26 3:29 ` Stefan Monnier
2012-09-26 7:02 ` Bastien
2012-09-26 12:59 ` Stefan Monnier
2012-09-26 13:12 ` Bastien [this message]
2012-09-26 17:54 ` Stefan Monnier
2012-09-26 22:04 ` Bastien
2012-09-27 20:35 ` Michael Welsh Duggan
2012-09-27 22:10 ` Stefan Monnier
2012-09-29 4:15 ` Michael Welsh Duggan
2012-09-26 14:11 ` Drew Adams
2012-09-26 19:44 ` Stefan Monnier
2012-09-26 20:13 ` Drew Adams
2012-09-26 7:42 ` Eli Zaretskii
2012-09-26 13:00 ` Stefan Monnier
2012-09-26 14:11 ` Drew Adams
2012-09-26 13:37 ` Jason Rumney
2012-09-25 21:03 ` Helmut Eller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k3vh2aiz.fsf@bzg.ath.cx \
--to=bzg@gnu.org \
--cc=drew.adams@oracle.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.