]> code.delx.au - gnu-emacs/blobdiff - lisp/whitespace.el
Avoid hard-coding "M-x command" in docstrings
[gnu-emacs] / lisp / whitespace.el
index a1a6c3ce04abdfc68f915acfe1ea303d41ae780a..ddc37f10180df94144fb9eaf23853ca15e343d61 100644 (file)
@@ -1866,9 +1866,11 @@ cleaning up these problems."
              (whitespace-insert-value ws-tab-width)
              (when has-bogus
                (goto-char (point-max))
-               (insert " Type `M-x whitespace-cleanup'"
+               (insert (substitute-command-keys
+                         " Type ‘\\[whitespace-cleanup]’")
                        " to cleanup the buffer.\n\n"
-                       " Type `M-x whitespace-cleanup-region'"
+                       (substitute-command-keys
+                         " Type ‘\\[whitespace-cleanup-region]’")
                        " to cleanup a region.\n\n"))
              (whitespace-display-window (current-buffer)))))
        has-bogus))))