When a new version of Emacs is released it is usually the case that some variables/commands/functions become obsolete. They are usually marked as such in the corresponding documentation:
turn-on-eldoc-mode
is an alias foreldoc-mode
ineldoc.el
. [...]This function is obsolete since 24.4; use
eldoc-mode
instead.
I'd like to make sure I am not referencing any obsolete variables in my init-file, but I'd also like to avoid checking the whole thing manually.
So my question is: Is there a way to automatically identify all obsolete variables in my init-file (that possibly also works for third-party packages installed via the package manager)?
*.elc
. – Drew Oct 25 '14 at 15:14(add-hook 'emacs-lisp-mode-hook 'turn-on-eldoc-mode)
into my init-file and compile it, the byte compiler should warn me thatturn-on-eldoc-mode
is obsolete. At least that's what I would expect based on the docstring. But I get no such warning. I tried to byte-compile the file with and without my customizations loaded; results were the same (w/r/t obsolete variables). – itsjeyd Oct 25 '14 at 16:22#'
instead of'
for functions. If you compile something with(add-hook 'emacs-lisp-mode-hook #'turn-on-eldoc-mode)
the compiler will warn you. – Malabarba Oct 25 '14 at 16:40