aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2018-03-21 18:49:29 +0200
committerEli Zaretskii2018-03-21 18:49:29 +0200
commited05eaa9487b2c5a76a512532239a106e1cf9a2a (patch)
treefdc4dc57fc9f4b0dd1282d89007933e942f377e9
parentf8cad16bb3272a8069b3008019f9d18516aef1a5 (diff)
downloademacs-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.texi48
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
13optionally some of its subdirectories as well. You can use the normal 13optionally some of its subdirectories as well. You can use the normal
14Emacs commands to move around in this buffer, and special Dired 14Emacs commands to move around in this buffer, and special Dired
15commands to operate on the listed files. 15commands to operate on the listed files. Dired works with both local
16and 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
18not allowed (however, the Wdired mode allows that, @pxref{Wdired}). 19not 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
109means to use the @samp{--dired} option; and @code{nil} means not to 110means to use the @samp{--dired} option; and @code{nil} means not to
110use the @samp{--dired} option. 111use 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. 114Emacs emulates @command{ls}. @xref{ls in Lisp}, for options and
115peculiarities 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
135buffers. The keys @kbd{C-n} and @kbd{C-p} are redefined to put the 139buffers. The keys @kbd{C-n} and @kbd{C-p} are redefined to run
136cursor at the beginning of the file name on the line, rather than at 140@code{dired-next-line} and @code{dired-previous-line}, respectively,
137the beginning of the line. 141and they put the cursor at the beginning of the file name on the line,
142rather 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
236Dired cannot delete directories that are nonempty. If the variable 241Dired 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
238delete nonempty directories including all their contents. That can 243delete nonempty directories including all their contents. That can be
239be somewhat risky. 244somewhat risky. If the value of the variable is @code{always}, Dired
240Even if you have set @code{dired-recursive-deletes} to @code{nil}, 245will delete nonempty directories recursively, which is even more
241you might want sometimes to delete recursively directories 246risky. Even if you have set @code{dired-recursive-deletes} to
247@code{nil}, you might want sometimes to delete recursively directories
242without being asked for confirmation for all of them. This is handy 248without being asked for confirmation for all of them. This is handy
243when you have marked many directories for deletion and you are very 249when you have marked many directories for deletion and you are very
244sure that all of them can safely be deleted. For every nonempty 250sure that all of them can safely be deleted. For every nonempty
@@ -252,6 +258,9 @@ questions.
252directories into the operating system's Trash, instead of deleting 258directories into the operating system's Trash, instead of deleting
253them outright. @xref{Misc File Ops}. 259them outright. @xref{Misc File Ops}.
254 260
261 An alternative way of deleting files is to mark them with @kbd{m}
262and 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
420region is active, mark all files in the region instead; otherwise, if 429region is active, mark all files in the region instead; otherwise, if
421a numeric argument @var{n} is supplied, mark the next @var{n} files 430a numeric argument @var{n} is supplied, mark the next @var{n} files
422instead, starting with the current file (if @var{n} is negative, mark 431instead, starting with the current file (if @var{n} is negative, mark
423the previous @minus{}@var{n} files). 432the previous @minus{}@var{n} files). If invoked on a subdirectory
433header line (@pxref{Subdirectories in Dired}), this command marks all
434the 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
578might be inconsistent with the file on disk if its contents have changed 589might be inconsistent with the file on disk if its contents have changed
579since it was last visited. If you don't want this, you may wish to 590since it was last visited. If you don't want this, you may wish to
580revert the files you have visited in your buffers, or to turn on 591revert the files you have visited in your buffers, or to turn on
581@code{auto-revert} mode in those buffers, before invoking this 592Auto-Revert mode in those buffers, before invoking this command.
582command. @xref{Reverting}. If you prefer that this command should always 593@xref{Reverting}. If you prefer that this command should always
583revisit the file, without you having to revert the file or enable 594revisit the file, without you having to revert the file or enable
584@code{auto-revert} mode, you might want to set 595Auto-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
756Compress the specified files (@code{dired-do-compress}). If the file 767Compress the specified files (@code{dired-do-compress}). If the file
757appears to be a compressed file already, uncompress it instead. Each 768appears to be a compressed file already, uncompress it instead. Each
758marked file is compressed into its own archive. 769marked 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,
1037not a Dired mark; @pxref{Setting Mark}). Otherwise, if the file at 1050not a Dired mark; @pxref{Setting Mark}). Otherwise, if the file at
1038point has a backup file (@pxref{Backup}), that is the default. 1051point 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.
1465each marked file. With just @kbd{C-u} as the prefix argument, it uses 1481each marked file. With just @kbd{C-u} as the prefix argument, it uses
1466file names relative to the Dired buffer's default directory. (This 1482file names relative to the Dired buffer's default directory. (This
1467can still contain slashes if in a subdirectory.) As a special case, 1483can still contain slashes if in a subdirectory.) As a special case,
1468if point is on a directory headerline, @kbd{w} gives you the absolute 1484if point is on a directory header line, @kbd{w} gives you the absolute
1469name of that directory. Any prefix argument or marked files are 1485name of that directory. Any prefix argument or marked files are
1470ignored in this case. 1486ignored in this case.
1471 1487