From: Glenn Morris <rgm@gnu.org>
To: 30635@debbugs.gnu.org
Subject: bug#30635: No compiler warning if code forgets to require cl-lib
Date: Tue, 27 Feb 2018 13:45:57 -0500 [thread overview]
Message-ID: <bolgfe8e56.fsf@fencepost.gnu.org> (raw)
Package: emacs
Version: 26.0.91
There's no compiler warning if a library uses cl-lib without requiring it.
I assume this is because bytecomp.el requires cl-lib.
Perhaps bytecomp can track cl-lib specially to work around this.
(I was wondering how the problem shown in 6288c3d went unspotted.)
Example:
foo.el:
(defun foo ()
(cl-member-if 'cl-evenp '(1 2 3)))
emacs -Q -batch -f batch-byte-compile foo.el
-> silently succeeds
emacs -Q -l foo.elc
M-: (foo)
-> void-function cl-member-if
next reply other threads:[~2018-02-27 18:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-27 18:45 Glenn Morris [this message]
2018-03-19 19:58 ` bug#30635: No compiler warning if code forgets to require cl-lib Stefan Monnier
2018-03-19 20:12 ` Glenn Morris
2018-03-22 21:53 ` Stefan Monnier
2018-03-22 22:19 ` Stefan Monnier
2018-03-23 0:56 ` Glenn Morris
2018-03-26 0:51 ` Basil L. Contovounesios
2018-03-26 1:30 ` Basil L. Contovounesios
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=bolgfe8e56.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=30635@debbugs.gnu.org \
/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.