summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2024-12-19 10:40:52 +0100
committerMichael Albinus <michael.albinus@gmx.de>2024-12-19 10:40:52 +0100
commit1647086d6a3a560877f386b9d153c01270307f68 (patch)
treed1c9576d1e0e71989e80b022f75560932898dae8 /lisp/emacs-lisp
parent8aef5d224a6fccb675729748836d5ebfdcfa1101 (diff)
downloademacs-1647086d6a3a560877f386b9d153c01270307f68.tar.gz
emacs-1647086d6a3a560877f386b9d153c01270307f68.tar.bz2
emacs-1647086d6a3a560877f386b9d153c01270307f68.zip
Fix display of obsolete variables in *Help*
* doc/lispref/variables.texi (Variable Aliases): Mention `substitute-command-keys' in `make-obsolete-variable'. * lisp/font-lock.el: Revert last change. * lisp/help-fns.el (help-fns--var-obsolete): Apply `substitute-command-keys'. * lisp/emacs-lisp/byte-run.el (make-obsolete-variable): Adapt docstring.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/byte-run.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index f1486f70634..13b43e82cc6 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -571,7 +571,8 @@ See the docstrings of `defalias' and `make-obsolete' for more details."
&optional access-type)
"Make the byte-compiler warn that OBSOLETE-NAME is obsolete.
The warning will say that CURRENT-NAME should be used instead.
-If CURRENT-NAME is a string, that is the `use instead' message.
+If CURRENT-NAME is a string, that is the `use instead' message. If it
+is a string, it is passed through `substitute-command-keys'.
WHEN should be a string indicating when the variable
was first made obsolete, for example a date or a release number.
ACCESS-TYPE if non-nil should specify the kind of access that will trigger