diff options
| author | Eli Zaretskii | 2018-03-21 18:49:29 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2018-03-21 18:49:29 +0200 |
| commit | ed05eaa9487b2c5a76a512532239a106e1cf9a2a (patch) | |
| tree | fdc4dc57fc9f4b0dd1282d89007933e942f377e9 | |
| parent | f8cad16bb3272a8069b3008019f9d18516aef1a5 (diff) | |
| download | emacs-ed05eaa9487b2c5a76a512532239a106e1cf9a2a.tar.gz emacs-ed05eaa9487b2c5a76a512532239a106e1cf9a2a.zip | |
Improvements in dired.texi
* doc/emacs/dired.texi (Dired): Mention that Dired works with
remote directories.
(Dired Enter): ls-lisp is used on some remote systems as well.
(Dired Navigation): Mention and index the command names.
(Dired Deletion): Document the 'always' value of
dired-recursive-deletes. Mention the alternative deletion method.
(Marks vs Flags): Fix spelling of Auto-Revert mode. Document what
marking does on a subdirectory header line.
(Operating on Files): Document that 'Z' uses gzip or compress.
(Comparison in Dired): Mention ediff-files.
(Misc Dired Features): Fix a typo. Suggested by Michael Albinus
<michael.albinus@gmx.de> in emacs-manual-bugs@gnu.org.
| -rw-r--r-- | doc/emacs/dired.texi | 48 |
1 files changed, 32 insertions, 16 deletions
diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi index 309dfb32084..82882ab1b19 100644 --- a/doc/emacs/dired.texi +++ b/doc/emacs/dired.texi | |||
| @@ -12,7 +12,8 @@ | |||
| 12 | Dired makes an Emacs buffer containing a listing of a directory, and | 12 | Dired makes an Emacs buffer containing a listing of a directory, and |
| 13 | optionally some of its subdirectories as well. You can use the normal | 13 | optionally some of its subdirectories as well. You can use the normal |
| 14 | Emacs commands to move around in this buffer, and special Dired | 14 | Emacs commands to move around in this buffer, and special Dired |
| 15 | commands to operate on the listed files. | 15 | commands to operate on the listed files. Dired works with both local |
| 16 | and remote directories. | ||
| 16 | 17 | ||
| 17 | The Dired buffer is normally read-only, and inserting text in it is | 18 | The Dired buffer is normally read-only, and inserting text in it is |
| 18 | not allowed (however, the Wdired mode allows that, @pxref{Wdired}). | 19 | not allowed (however, the Wdired mode allows that, @pxref{Wdired}). |
| @@ -109,8 +110,9 @@ default) means to perform the check; any other non-@code{nil} value | |||
| 109 | means to use the @samp{--dired} option; and @code{nil} means not to | 110 | means to use the @samp{--dired} option; and @code{nil} means not to |
| 110 | use the @samp{--dired} option. | 111 | use the @samp{--dired} option. |
| 111 | 112 | ||
| 112 | On MS-Windows and MS-DOS systems, Emacs emulates @command{ls}. | 113 | On MS-Windows and MS-DOS systems, and also on some remote systems, |
| 113 | @xref{ls in Lisp}, for options and peculiarities of this emulation. | 114 | Emacs emulates @command{ls}. @xref{ls in Lisp}, for options and |
| 115 | peculiarities of this emulation. | ||
| 114 | 116 | ||
| 115 | @findex dired-other-window | 117 | @findex dired-other-window |
| 116 | @kindex C-x 4 d | 118 | @kindex C-x 4 d |
| @@ -131,10 +133,13 @@ deletes its window if the window was created just for that buffer. | |||
| 131 | 133 | ||
| 132 | @kindex C-n @r{(Dired)} | 134 | @kindex C-n @r{(Dired)} |
| 133 | @kindex C-p @r{(Dired)} | 135 | @kindex C-p @r{(Dired)} |
| 136 | @findex dired-next-line | ||
| 137 | @findex dired-previous-line | ||
| 134 | All the usual Emacs cursor motion commands are available in Dired | 138 | All the usual Emacs cursor motion commands are available in Dired |
| 135 | buffers. The keys @kbd{C-n} and @kbd{C-p} are redefined to put the | 139 | buffers. The keys @kbd{C-n} and @kbd{C-p} are redefined to run |
| 136 | cursor at the beginning of the file name on the line, rather than at | 140 | @code{dired-next-line} and @code{dired-previous-line}, respectively, |
| 137 | the beginning of the line. | 141 | and they put the cursor at the beginning of the file name on the line, |
| 142 | rather than at the beginning of the line. | ||
| 138 | 143 | ||
| 139 | @kindex SPC @r{(Dired)} | 144 | @kindex SPC @r{(Dired)} |
| 140 | For extra convenience, @key{SPC} and @kbd{n} in Dired are equivalent | 145 | For extra convenience, @key{SPC} and @kbd{n} in Dired are equivalent |
| @@ -235,10 +240,11 @@ the buffer, and no files actually deleted. | |||
| 235 | You can delete empty directories just like other files, but normally | 240 | You can delete empty directories just like other files, but normally |
| 236 | Dired cannot delete directories that are nonempty. If the variable | 241 | Dired cannot delete directories that are nonempty. If the variable |
| 237 | @code{dired-recursive-deletes} is non-@code{nil}, then Dired can | 242 | @code{dired-recursive-deletes} is non-@code{nil}, then Dired can |
| 238 | delete nonempty directories including all their contents. That can | 243 | delete nonempty directories including all their contents. That can be |
| 239 | be somewhat risky. | 244 | somewhat risky. If the value of the variable is @code{always}, Dired |
| 240 | Even if you have set @code{dired-recursive-deletes} to @code{nil}, | 245 | will delete nonempty directories recursively, which is even more |
| 241 | you might want sometimes to delete recursively directories | 246 | risky. Even if you have set @code{dired-recursive-deletes} to |
| 247 | @code{nil}, you might want sometimes to delete recursively directories | ||
| 242 | without being asked for confirmation for all of them. This is handy | 248 | without being asked for confirmation for all of them. This is handy |
| 243 | when you have marked many directories for deletion and you are very | 249 | when you have marked many directories for deletion and you are very |
| 244 | sure that all of them can safely be deleted. For every nonempty | 250 | sure that all of them can safely be deleted. For every nonempty |
| @@ -252,6 +258,9 @@ questions. | |||
| 252 | directories into the operating system's Trash, instead of deleting | 258 | directories into the operating system's Trash, instead of deleting |
| 253 | them outright. @xref{Misc File Ops}. | 259 | them outright. @xref{Misc File Ops}. |
| 254 | 260 | ||
| 261 | An alternative way of deleting files is to mark them with @kbd{m} | ||
| 262 | and delete with @kbd{D}, see @ref{Operating on Files}. | ||
| 263 | |||
| 255 | @node Flagging Many Files | 264 | @node Flagging Many Files |
| 256 | @section Flagging Many Files at Once | 265 | @section Flagging Many Files at Once |
| 257 | @cindex flagging many files for deletion (in Dired) | 266 | @cindex flagging many files for deletion (in Dired) |
| @@ -420,7 +429,9 @@ Mark the current file with @samp{*} (@code{dired-mark}). If the | |||
| 420 | region is active, mark all files in the region instead; otherwise, if | 429 | region is active, mark all files in the region instead; otherwise, if |
| 421 | a numeric argument @var{n} is supplied, mark the next @var{n} files | 430 | a numeric argument @var{n} is supplied, mark the next @var{n} files |
| 422 | instead, starting with the current file (if @var{n} is negative, mark | 431 | instead, starting with the current file (if @var{n} is negative, mark |
| 423 | the previous @minus{}@var{n} files). | 432 | the previous @minus{}@var{n} files). If invoked on a subdirectory |
| 433 | header line (@pxref{Subdirectories in Dired}), this command marks all | ||
| 434 | the files in that subdirectory. | ||
| 424 | 435 | ||
| 425 | @item * * | 436 | @item * * |
| 426 | @kindex * * @r{(Dired)} | 437 | @kindex * * @r{(Dired)} |
| @@ -578,10 +589,10 @@ command will look in the buffer without revisiting the file, so the results | |||
| 578 | might be inconsistent with the file on disk if its contents have changed | 589 | might be inconsistent with the file on disk if its contents have changed |
| 579 | since it was last visited. If you don't want this, you may wish to | 590 | since it was last visited. If you don't want this, you may wish to |
| 580 | revert the files you have visited in your buffers, or to turn on | 591 | revert the files you have visited in your buffers, or to turn on |
| 581 | @code{auto-revert} mode in those buffers, before invoking this | 592 | Auto-Revert mode in those buffers, before invoking this command. |
| 582 | command. @xref{Reverting}. If you prefer that this command should always | 593 | @xref{Reverting}. If you prefer that this command should always |
| 583 | revisit the file, without you having to revert the file or enable | 594 | revisit the file, without you having to revert the file or enable |
| 584 | @code{auto-revert} mode, you might want to set | 595 | Auto-Revert mode, you might want to set |
| 585 | @code{dired-always-read-filesystem} to non-@code{nil}. | 596 | @code{dired-always-read-filesystem} to non-@code{nil}. |
| 586 | 597 | ||
| 587 | @item C-/ | 598 | @item C-/ |
| @@ -755,7 +766,9 @@ suitable guess made using the variables @code{lpr-command} and | |||
| 755 | @item Z | 766 | @item Z |
| 756 | Compress the specified files (@code{dired-do-compress}). If the file | 767 | Compress the specified files (@code{dired-do-compress}). If the file |
| 757 | appears to be a compressed file already, uncompress it instead. Each | 768 | appears to be a compressed file already, uncompress it instead. Each |
| 758 | marked file is compressed into its own archive. | 769 | marked file is compressed into its own archive. This uses the |
| 770 | @command{gzip} program if it is available, otherwise it uses | ||
| 771 | @command{compress}. | ||
| 759 | 772 | ||
| 760 | @findex dired-do-compress-to | 773 | @findex dired-do-compress-to |
| 761 | @kindex c @r{(Dired)} | 774 | @kindex c @r{(Dired)} |
| @@ -1037,6 +1050,9 @@ minibuffer is the file at the mark (i.e., the ordinary Emacs mark, | |||
| 1037 | not a Dired mark; @pxref{Setting Mark}). Otherwise, if the file at | 1050 | not a Dired mark; @pxref{Setting Mark}). Otherwise, if the file at |
| 1038 | point has a backup file (@pxref{Backup}), that is the default. | 1051 | point has a backup file (@pxref{Backup}), that is the default. |
| 1039 | 1052 | ||
| 1053 | You could also compare files using @code{ediff-files}, see | ||
| 1054 | @ref{Major Entry Points,,, ediff, Ediff User's Manual}. | ||
| 1055 | |||
| 1040 | @node Subdirectories in Dired | 1056 | @node Subdirectories in Dired |
| 1041 | @section Subdirectories in Dired | 1057 | @section Subdirectories in Dired |
| 1042 | @cindex subdirectories in Dired | 1058 | @cindex subdirectories in Dired |
| @@ -1465,7 +1481,7 @@ space. | |||
| 1465 | each marked file. With just @kbd{C-u} as the prefix argument, it uses | 1481 | each marked file. With just @kbd{C-u} as the prefix argument, it uses |
| 1466 | file names relative to the Dired buffer's default directory. (This | 1482 | file names relative to the Dired buffer's default directory. (This |
| 1467 | can still contain slashes if in a subdirectory.) As a special case, | 1483 | can still contain slashes if in a subdirectory.) As a special case, |
| 1468 | if point is on a directory headerline, @kbd{w} gives you the absolute | 1484 | if point is on a directory header line, @kbd{w} gives you the absolute |
| 1469 | name of that directory. Any prefix argument or marked files are | 1485 | name of that directory. Any prefix argument or marked files are |
| 1470 | ignored in this case. | 1486 | ignored in this case. |
| 1471 | 1487 | ||