From: Stefan Kangas Date: Mon, 8 Mar 2021 11:50:22 +0000 (+0100) Subject: Use proper command substitutions in some docstrings X-Git-Tag: emacs-28.0.90~3346 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1c5cb14c0daa00fcdc32e324cc8e0e327bf46bce;p=emacs.git Use proper command substitutions in some docstrings * lisp/arc-mode.el (archive-mode): * lisp/ibuffer.el (ibuffer): * lisp/tar-mode.el (tar-mode): * lisp/textmodes/table.el (table-insert): Use substitute-command-keys instead of hardcoded keys in some docstrings. --- diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index 6c9ceb0b5a8..83c516100ab 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el @@ -660,11 +660,11 @@ Does not signal an error if optional argument NOERROR is non-nil." (defun archive-mode (&optional force) "Major mode for viewing an archive file in a dired-like way. You can move around using the usual cursor motion commands. -Letters no longer insert themselves. -Type `e' to pull a file out of the archive and into its own buffer; +Letters no longer insert themselves.\\ +Type \\[archive-extract] to pull a file out of the archive and into its own buffer; or click mouse-2 on the file's line in the archive mode buffer. -If you edit a sub-file of this archive (as with the `e' command) and +If you edit a sub-file of this archive (as with the \\[archive-extract] command) and save it, the contents of that buffer will be saved back into the archive. diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index 78ae2705a91..b484dd717ca 100644 --- a/lisp/ibuffer.el +++ b/lisp/ibuffer.el @@ -2297,7 +2297,7 @@ buffers which are visiting a file." (defun ibuffer (&optional other-window-p name qualifiers noselect shrink filter-groups formats) "Begin using Ibuffer to edit a list of buffers. -Type `h' after entering ibuffer for more information. +Type \\\\[describe-mode] after entering ibuffer for more information. All arguments are optional. OTHER-WINDOW-P says to use another window. diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el index 59f7c87e99b..fa9b47556f7 100644 --- a/lisp/tar-mode.el +++ b/lisp/tar-mode.el @@ -685,12 +685,12 @@ For instance, if mode is #o700, then it produces `rwx------'." (define-derived-mode tar-mode special-mode "Tar" "Major mode for viewing a tar file as a dired-like listing of its contents. You can move around using the usual cursor motion commands. -Letters no longer insert themselves. -Type `e' to pull a file out of the tar file and into its own buffer; +Letters no longer insert themselves.\\ +Type \\[tar-extract] to pull a file out of the tar file and into its own buffer; or click mouse-2 on the file's line in the Tar mode buffer. -Type `c' to copy an entry from the tar file into another file on disk. +Type \\[tar-copy] to copy an entry from the tar file into another file on disk. -If you edit a sub-file of this archive (as with the `e' command) and +If you edit a sub-file of this archive (as with the \\[tar-extract] command) and save it with \\[save-buffer], the contents of that buffer will be saved back into the tar-file buffer; in this way you can edit a file inside of a tar archive without extracting it and re-archiving it. diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el index 06785e458b2..60122b2fac1 100644 --- a/lisp/textmodes/table.el +++ b/lisp/textmodes/table.el @@ -1492,7 +1492,7 @@ Move the point under the table as shown below. +--------------+------+--------------------------------+ -!- -Type M-x table-insert-row instead of \\[table-insert-row-column]. \\[table-insert-row-column] does not work +Type \\[table-insert-row] instead of \\[table-insert-row-column]. \\[table-insert-row-column] does not work when the point is outside of the table. This insertion at outside of the table effectively appends a row at the end.