From 1647086d6a3a560877f386b9d153c01270307f68 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Thu, 19 Dec 2024 10:40:52 +0100 Subject: 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. --- lisp/emacs-lisp/byte-run.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/emacs-lisp') 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 -- cgit v1.2.3