Commit d280e2c3 authored by Glenn Morris's avatar Glenn Morris
Browse files

(byte-compile-file-form-require): Tweak previous change.

parent bac9c66c
......@@ -2324,9 +2324,9 @@ list that represents a doc string reference.
(let ((args (mapcar 'eval (cdr form))))
(apply 'require args)
;; Detect (require 'cl) in a way that works even if cl is already loaded.
(when (member (car args) '("cl" cl))
(if (byte-compile-warning-enabled-p 'cl-functions)
(byte-compile-warn "cl package required at runtime"))
(when (and (member (car args) '("cl" cl))
(byte-compile-warning-enabled-p 'cl-functions))
(byte-compile-warn "cl package required at runtime")
(byte-compile-disable-warning 'cl-functions)))
(byte-compile-keep-pending form 'byte-compile-normal-call))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment