]> code.delx.au - gnu-emacs/blobdiff - lisp/emacs-lisp/package.el
Avoid hard-coding "M-x command" in docstrings
[gnu-emacs] / lisp / emacs-lisp / package.el
index 863a02df252ea21af8067b193c81241f3ade68d1..4ff6e07f851c6da6badd25ebcc84b81f46ea60df 100644 (file)
@@ -3193,7 +3193,8 @@ Optional argument NOQUERY non-nil means do not ask the user to confirm."
             (if-let ((removable (package--removable-packages)))
                 (message "Package menu: Operation finished.  %d packages %s"
                   (length removable)
-                  "are no longer needed, type `M-x package-autoremove' to remove them")
+                  (substitute-command-keys
+                   "are no longer needed, type `\\[package-autoremove]' to remove them"))
               (message (replace-regexp-in-string "__" "ed" message-template)
                 "finished"))))))))