all messages for Emacs-related lists mirrored at yhetil.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 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.