]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/python.el
Avoid hard-coding "M-x command" in docstrings
[gnu-emacs] / lisp / progmodes / python.el
index 0b7b9b7f5019e9015e5a7d27c41735684177bc3d..189cd3759f5337e98f053d02871eb2ceafa5fd46 100644 (file)
@@ -2720,7 +2720,8 @@ of `error' with a user-friendly message."
   (or (python-shell-get-process)
       (if interactivep
           (user-error
-           "Start a Python process first with `M-x run-python' or `%s'."
+           "Start a Python process first with ā€˜%sā€™ or ā€˜%sā€™."
+           (substitute-command-keys "\\[run-python]")
            ;; Get the binding.
            (key-description
             (where-is-internal