12

While compiling an Elisp package from github, I get the

Warning: Package cl is deprecated

How do I find out what triggers it?

The specific file that triggers this is tiny and has no CL code.

I think there should be a way to turn the warning into an error and get the stack trace. Has anyone done this before?

16

Try the following in an Emacs session with the code in question loaded up:

(require 'loadhist)
(file-dependents (feature-file 'cl))
  • if using 27.1 you can use (setq byte-complile-warnings '(not cl-functions)) accordingly to byte-complile-warnings documentation. – Muihlinn Sep 4 '20 at 8:34
  • Hm, I tried that, in both my ~/.emacs and some system files (below /etc/emacs/site-start.d/, this being Debian/Ubuntu) but no luck. It also prevents emacs --daemon from working as the load hangs at the warning :-/ – Dirk Eddelbuettel Dec 20 '20 at 18:13
  • Use it interactively (like by pasting it into the scratch buffer and M-x eval-buffer), not in your init file. – wasamasa Dec 21 '20 at 9:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.