]> code.delx.au - gnu-emacs/blobdiff - lisp/emacs-lisp/macroexp.el
Treat “instead” strings as docstrings
[gnu-emacs] / lisp / emacs-lisp / macroexp.el
index ff359e6096ed7b5b217bc9ecfdcfe46be9b2b92e..6189976e866c2a25f2778c0479b25629ce306f4e 100644 (file)
@@ -149,7 +149,7 @@ and also to avoid outputting the warning during normal execution."
     (format-message
      "‘%s’ is an obsolete %s%s%s" fun type
      (if asof (concat " (as of " asof ")") "")
-     (cond ((stringp instead) (concat "; " instead))
+     (cond ((stringp instead) (concat "; " (substitute-command-keys instead)))
            (instead (format-message "; use ‘%s’ instead." instead))
            (t ".")))))