Emacs gives useful warnings on byte-compilation. Is there a plugin that adds warnings about destructive operations being used? So that when I write code like this:
(defun get-countdown ()
(let ((x (number-sequence 0 10)))
(message (format "%s" (sort x #'>)))
x))#
Emacs complains:
temp.el:4:5:Warning: using variable modified by `sort'.
Or maybe something like elisp-newbie-mode
that highlights all destructive functions?
I sent a patch to Emacs Dev today that adds this to the byte compiler.
It's a start anyway. See Emacs bug #15122.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With