aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-04-26 00:29:21 +0000
committerRichard M. Stallman2001-04-26 00:29:21 +0000
commit5942fb8023b75e8e631ee8d6148c3aad26567fa1 (patch)
treede92d5abe59d70befd21c2b594bc7dac844c8ffa
parent8e7692a98a927fc62a7e34c8013f12b9edc94c50 (diff)
downloademacs-5942fb8023b75e8e631ee8d6148c3aad26567fa1.tar.gz
emacs-5942fb8023b75e8e631ee8d6148c3aad26567fa1.zip
Fix command names dired-do-flagged-delete,
dired-do-query-replace-regexp, dired-unmark-all-marks. Fix xrefs to Dired-X and Misc File Ops. Correct the uuencode shell command example to handle spaces. Explain prefix args to k and l better, especially negative args.
-rw-r--r--man/dired.texi62
1 files changed, 33 insertions, 29 deletions
diff --git a/man/dired.texi b/man/dired.texi
index 2d610d01f76..a4f141e3b9d 100644
--- a/man/dired.texi
+++ b/man/dired.texi
@@ -13,7 +13,7 @@ Emacs commands to move around in this buffer, and special Dired commands
13to operate on the files listed. 13to operate on the files listed.
14 14
15 The Dired-X package provides various extra features for Dired mode. 15 The Dired-X package provides various extra features for Dired mode.
16@xref{,Dired-X,,dired-x, Dired Extra Version 2 User's Manual}. 16@xref{Dired-X,,,dired-x, Dired Extra Version 2 User's Manual}.
17 17
18@menu 18@menu
19* Enter: Dired Enter. How to invoke Dired. 19* Enter: Dired Enter. How to invoke Dired.
@@ -121,16 +121,17 @@ contents). The default is to delete only empty directories.
121@kindex DEL @r{(Dired)} 121@kindex DEL @r{(Dired)}
122 The files are flagged for deletion rather than deleted immediately to 122 The files are flagged for deletion rather than deleted immediately to
123reduce the danger of deleting a file accidentally. Until you direct 123reduce the danger of deleting a file accidentally. Until you direct
124Dired to expunge the flagged files, you can remove deletion flags using 124Dired to delete the flagged files, you can remove deletion flags using
125the commands @kbd{u} and @key{DEL}. @kbd{u} (@code{dired-unmark}) works 125the commands @kbd{u} and @key{DEL}. @kbd{u} (@code{dired-unmark}) works
126just like @kbd{d}, but removes flags rather than making flags. 126just like @kbd{d}, but removes flags rather than making flags.
127@key{DEL} (@code{dired-unmark-backward}) moves upward, removing flags; 127@key{DEL} (@code{dired-unmark-backward}) moves upward, removing flags;
128it is like @kbd{u} with argument @minus{}1. 128it is like @kbd{u} with argument @minus{}1.
129 129
130@kindex x @r{(Dired)} 130@kindex x @r{(Dired)}
131@findex dired-expunge 131@findex dired-do-flagged-delete
132@cindex expunging (Dired) 132@cindex expunging (Dired)
133 To delete the flagged files, type @kbd{x} (@code{dired-expunge}). 133 To delete the flagged files, type @kbd{x} (@code{dired-do-flagged-delete}).
134(This is also known as @dfn{expunging}.)
134This command first displays a list of all the file names flagged for 135This command first displays a list of all the file names flagged for
135deletion, and requests confirmation with @kbd{yes}. If you confirm, 136deletion, and requests confirmation with @kbd{yes}. If you confirm,
136Dired deletes the flagged files, then deletes their lines from the text 137Dired deletes the flagged files, then deletes their lines from the text
@@ -180,8 +181,8 @@ keep.@refill
180 @kbd{&} (@code{dired-flag-garbage-files}) flags files whose names 181 @kbd{&} (@code{dired-flag-garbage-files}) flags files whose names
181match the regular expression specified by the variable 182match the regular expression specified by the variable
182@code{dired-garbage-files-regexp}. By default, this matches certain 183@code{dired-garbage-files-regexp}. By default, this matches certain
183files produced by @TeX{}, and the @samp{.orig} and @samp{.rej} files 184files produced by @TeX{}, @samp{.bak} files, and the @samp{.orig} and
184produced by @code{patch}. 185@samp{.rej} files produced by @code{patch}.
185 186
186@kindex # @r{(Dired)} 187@kindex # @r{(Dired)}
187@kindex ~ @r{(Dired)} 188@kindex ~ @r{(Dired)}
@@ -273,17 +274,17 @@ View the file described on the current line, using @kbd{M-x view-file}
273 274
274Viewing a file is like visiting it, but is slanted toward moving around 275Viewing a file is like visiting it, but is slanted toward moving around
275in the file conveniently and does not allow changing the file. 276in the file conveniently and does not allow changing the file.
276@xref{Misc File Ops,View File}. 277@xref{Misc File Ops,View File, Miscellaneous File Operations}.
277@end table 278@end table
278 279
279@node Marks vs Flags 280@node Marks vs Flags
280@section Dired Marks vs. Flags 281@section Dired Marks vs. Flags
281 282
282@cindex marking many files (in Dired) 283@cindex marking many files (in Dired)
283 Instead of flagging a file with @samp{D}, you can @dfn{mark} the file 284 Instead of flagging a file with @samp{D}, you can @dfn{mark} the
284with some other character (usually @samp{*}). Most Dired commands to 285file with some other character (usually @samp{*}). Most Dired
285operate on files, aside from ``expunge'' (@kbd{x}), look for files 286commands to operate on files use the files marked with @samp{*}, the
286marked with @samp{*}. 287exception being @kbd{x} which deletes the flagged files.
287 288
288 Here are some commands for marking with @samp{*}, or for unmarking or 289 Here are some commands for marking with @samp{*}, or for unmarking or
289operating on marks. (@xref{Dired Deletion}, for commands to flag and 290operating on marks. (@xref{Dired Deletion}, for commands to flag and
@@ -346,9 +347,9 @@ Move point to previous line and remove any mark on that line
346 347
347@item * ! 348@item * !
348@kindex * ! @r{(Dired)} 349@kindex * ! @r{(Dired)}
349@findex dired-unmark-all-files-no-query 350@findex dired-unmark-all-marks
350Remove all marks from all the files in this Dired buffer 351Remove all marks from all the files in this Dired buffer
351(@code{dired-unmark-all-files-no-query}). 352(@code{dired-unmark-all-marks}).
352 353
353@item * ? @var{markchar} 354@item * ? @var{markchar}
354@kindex * ? @r{(Dired)} 355@kindex * ? @r{(Dired)}
@@ -493,7 +494,7 @@ recursively, which means that directories cannot be copied.
493Delete the specified files (@code{dired-do-delete}). Like the other 494Delete the specified files (@code{dired-do-delete}). Like the other
494commands in this section, this command operates on the @emph{marked} 495commands in this section, this command operates on the @emph{marked}
495files, or the next @var{n} files. By contrast, @kbd{x} 496files, or the next @var{n} files. By contrast, @kbd{x}
496(@code{dired-expunge}) deletes all @dfn{flagged} files. 497(@code{dired-do-flagged-delete}) deletes all @dfn{flagged} files.
497 498
498@findex dired-do-rename 499@findex dired-do-rename
499@kindex R @r{(Dired)} 500@kindex R @r{(Dired)}
@@ -594,12 +595,12 @@ the first match it finds; use @kbd{M-,} to resume the search and find
594the next match. @xref{Tags Search}. 595the next match. @xref{Tags Search}.
595 596
596@kindex Q @r{(Dired)} 597@kindex Q @r{(Dired)}
597@findex dired-do-query-replace 598@findex dired-do-query-replace-regexp
598@cindex search and replace in multiple files (in Dired) 599@cindex search and replace in multiple files (in Dired)
599@item Q @var{from} @key{RET} @var{to} @key{RET} 600@item Q @var{regexp} @key{RET} @var{to} @key{RET}
600Perform @code{query-replace-regexp} on each of the specified files, 601Perform @code{query-replace-regexp} on each of the specified files,
601replacing matches for @var{from} (a regular expression) with the string 602replacing matches for @var{regexp} with the string
602@var{to} (@code{dired-do-query-replace}). 603@var{to} (@code{dired-do-query-replace-regexp}).
603 604
604This command is a variant of @code{tags-query-replace}. If you exit the 605This command is a variant of @code{tags-query-replace}. If you exit the
605query replace loop, you can use @kbd{M-,} to resume the scan and replace 606query replace loop, you can use @kbd{M-,} to resume the scan and replace
@@ -659,7 +660,7 @@ shell loop. For example, this shell command is another way to
659uuencode each file: 660uuencode each file:
660 661
661@example 662@example
662for file in *; do uuencode $file $file >$file.uu; done 663for file in *; do uuencode "$file" "$file" >"$file".uu; done
663@end example 664@end example
664 665
665The working directory for the shell command is the top-level directory 666The working directory for the shell command is the top-level directory
@@ -817,7 +818,8 @@ line to delete the subdirectory. @xref{Dired Updating}.
817@section Moving Over Subdirectories 818@section Moving Over Subdirectories
818 819
819 When a Dired buffer lists subdirectories, you can use the page motion 820 When a Dired buffer lists subdirectories, you can use the page motion
820commands @kbd{C-x [} and @kbd{C-x ]} to move by entire directories. 821commands @kbd{C-x [} and @kbd{C-x ]} to move by entire directories
822(@pxref{Pages}).
821 823
822@cindex header line (Dired) 824@cindex header line (Dired)
823@cindex directory header lines 825@cindex directory header lines
@@ -936,20 +938,22 @@ Hidden subdirectories are updated but remain hidden.
936@kindex l @r{(Dired)} 938@kindex l @r{(Dired)}
937@findex dired-do-redisplay 939@findex dired-do-redisplay
938 To update only some of the files, type @kbd{l} 940 To update only some of the files, type @kbd{l}
939(@code{dired-do-redisplay}). This command applies to the next @var{n} 941(@code{dired-do-redisplay}). Like the Dired file-operating commands,
940files, or to the marked files if any, or to the current file. Updating 942this command operates on the next @var{n} files (or previous
941them means reading their current status from the file system and 943@minus{}@var{n} files), or on the marked files if any, or on the
942changing the buffer to reflect it properly. 944current file. Updating the files means reading their current status,
945then updating their lines in the buffer to indicate that status.
943 946
944 If you use @kbd{l} on a subdirectory header line, it updates the 947 If you use @kbd{l} on a subdirectory header line, it updates the
945contents of the corresponding subdirectory. 948contents of the corresponding subdirectory.
946 949
947@kindex k @r{(Dired)} 950@kindex k @r{(Dired)}
948@findex dired-do-kill-lines 951@findex dired-do-kill-lines
949 To delete the specified @emph{file lines}---not the files, just the 952 To delete the specified @emph{file lines} from the buffer---not
950lines---type @kbd{k} (@code{dired-do-kill-lines}). With a numeric 953delete the files---type @kbd{k} (@code{dired-do-kill-lines}). Like
951argument @var{n}, this command applies to the next @var{n} files; 954the file-operating commands, this command operates on the next @var{n}
952otherwise, it applies to the marked files. 955files, or on the marked files if any; but it does not operate on the
956current file as a last resort.
953 957
954 If you kill the line for a file that is a directory, the directory's 958 If you kill the line for a file that is a directory, the directory's
955contents are also deleted from the buffer. Typing @kbd{C-u k} on the 959contents are also deleted from the buffer. Typing @kbd{C-u k} on the
@@ -958,7 +962,7 @@ from the Dired buffer.
958 962
959 The @kbd{g} command brings back any individual lines that you have 963 The @kbd{g} command brings back any individual lines that you have
960killed in this way, but not subdirectories---you must use @kbd{i} to 964killed in this way, but not subdirectories---you must use @kbd{i} to
961reinsert each subdirectory. 965reinsert a subdirectory.
962 966
963@cindex Dired sorting 967@cindex Dired sorting
964@cindex sorting Dired buffer 968@cindex sorting Dired buffer