diff --git a/lisp/simple.el b/lisp/simple.el index 8be27745b1..f1f0da1fed 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1914,6 +1914,12 @@ execute-extended-command (while-no-input (setq binding (execute-extended-command--shorter (symbol-name function) typed)))) + (when-let (obsolete (with-temp-buffer + (when (help-fns--obsolete function) + (buffer-string) + (goto-char (point-max)) + (delete-indentation 2)))) + (message obsolete)) (when binding (with-temp-message (format-message "You can run the command `%s' with %s"