In Emacs, what does this error mean? “Warning: cl package required at runtime”

前端 未结 5 551
余生分开走
余生分开走 2021-01-31 02:30

I am byte-compiling a module. It gives me this warning:

 Warning: cl package required at runtime

Why is this a warning? I am well aware that I

5条回答
  •  执念已碎
    2021-01-31 03:10

    Just in case someone reads this on his quest for proper use of cl: The methods described here are now deprecated.

    As least as of emacs 24, instead of cl you should use cl-lib or, if the macros suffice, cl-macs. These are new versions of cl that work with a clean namespace. E.g. instead of defun* you have cl-defun.

    The old cl-package now is only for backward-compatibility and shouldn't be used in new code.

提交回复
热议问题