unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30635: No compiler warning if code forgets to require cl-lib
@ 2018-02-27 18:45 Glenn Morris
  2018-03-19 19:58 ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2018-02-27 18:45 UTC (permalink / raw)
  To: 30635

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





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-03-26  1:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-27 18:45 bug#30635: No compiler warning if code forgets to require cl-lib Glenn Morris
2018-03-19 19:58 ` 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

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).