diff options
| author | Richard M. Stallman | 2001-04-26 00:29:21 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-04-26 00:29:21 +0000 |
| commit | 5942fb8023b75e8e631ee8d6148c3aad26567fa1 (patch) | |
| tree | de92d5abe59d70befd21c2b594bc7dac844c8ffa | |
| parent | 8e7692a98a927fc62a7e34c8013f12b9edc94c50 (diff) | |
| download | emacs-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.texi | 62 |
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 | |||
| 13 | to operate on the files listed. | 13 | to 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 |
| 123 | reduce the danger of deleting a file accidentally. Until you direct | 123 | reduce the danger of deleting a file accidentally. Until you direct |
| 124 | Dired to expunge the flagged files, you can remove deletion flags using | 124 | Dired to delete the flagged files, you can remove deletion flags using |
| 125 | the commands @kbd{u} and @key{DEL}. @kbd{u} (@code{dired-unmark}) works | 125 | the commands @kbd{u} and @key{DEL}. @kbd{u} (@code{dired-unmark}) works |
| 126 | just like @kbd{d}, but removes flags rather than making flags. | 126 | just 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; |
| 128 | it is like @kbd{u} with argument @minus{}1. | 128 | it 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}.) | ||
| 134 | This command first displays a list of all the file names flagged for | 135 | This command first displays a list of all the file names flagged for |
| 135 | deletion, and requests confirmation with @kbd{yes}. If you confirm, | 136 | deletion, and requests confirmation with @kbd{yes}. If you confirm, |
| 136 | Dired deletes the flagged files, then deletes their lines from the text | 137 | Dired 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 |
| 181 | match the regular expression specified by the variable | 182 | match 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 |
| 183 | files produced by @TeX{}, and the @samp{.orig} and @samp{.rej} files | 184 | files produced by @TeX{}, @samp{.bak} files, and the @samp{.orig} and |
| 184 | produced 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 | ||
| 274 | Viewing a file is like visiting it, but is slanted toward moving around | 275 | Viewing a file is like visiting it, but is slanted toward moving around |
| 275 | in the file conveniently and does not allow changing the file. | 276 | in 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 |
| 284 | with some other character (usually @samp{*}). Most Dired commands to | 285 | file with some other character (usually @samp{*}). Most Dired |
| 285 | operate on files, aside from ``expunge'' (@kbd{x}), look for files | 286 | commands to operate on files use the files marked with @samp{*}, the |
| 286 | marked with @samp{*}. | 287 | exception 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 |
| 289 | operating on marks. (@xref{Dired Deletion}, for commands to flag and | 290 | operating 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 |
| 350 | Remove all marks from all the files in this Dired buffer | 351 | Remove 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. | |||
| 493 | Delete the specified files (@code{dired-do-delete}). Like the other | 494 | Delete the specified files (@code{dired-do-delete}). Like the other |
| 494 | commands in this section, this command operates on the @emph{marked} | 495 | commands in this section, this command operates on the @emph{marked} |
| 495 | files, or the next @var{n} files. By contrast, @kbd{x} | 496 | files, 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 | |||
| 594 | the next match. @xref{Tags Search}. | 595 | the 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} |
| 600 | Perform @code{query-replace-regexp} on each of the specified files, | 601 | Perform @code{query-replace-regexp} on each of the specified files, |
| 601 | replacing matches for @var{from} (a regular expression) with the string | 602 | replacing 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 | ||
| 604 | This command is a variant of @code{tags-query-replace}. If you exit the | 605 | This command is a variant of @code{tags-query-replace}. If you exit the |
| 605 | query replace loop, you can use @kbd{M-,} to resume the scan and replace | 606 | query 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 | |||
| 659 | uuencode each file: | 660 | uuencode each file: |
| 660 | 661 | ||
| 661 | @example | 662 | @example |
| 662 | for file in *; do uuencode $file $file >$file.uu; done | 663 | for file in *; do uuencode "$file" "$file" >"$file".uu; done |
| 663 | @end example | 664 | @end example |
| 664 | 665 | ||
| 665 | The working directory for the shell command is the top-level directory | 666 | The 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 |
| 820 | commands @kbd{C-x [} and @kbd{C-x ]} to move by entire directories. | 821 | commands @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, |
| 940 | files, or to the marked files if any, or to the current file. Updating | 942 | this command operates on the next @var{n} files (or previous |
| 941 | them 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 |
| 942 | changing the buffer to reflect it properly. | 944 | current file. Updating the files means reading their current status, |
| 945 | then 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 |
| 945 | contents of the corresponding subdirectory. | 948 | contents 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 |
| 950 | lines---type @kbd{k} (@code{dired-do-kill-lines}). With a numeric | 953 | delete the files---type @kbd{k} (@code{dired-do-kill-lines}). Like |
| 951 | argument @var{n}, this command applies to the next @var{n} files; | 954 | the file-operating commands, this command operates on the next @var{n} |
| 952 | otherwise, it applies to the marked files. | 955 | files, or on the marked files if any; but it does not operate on the |
| 956 | current 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 |
| 955 | contents are also deleted from the buffer. Typing @kbd{C-u k} on the | 959 | contents 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 |
| 960 | killed in this way, but not subdirectories---you must use @kbd{i} to | 964 | killed in this way, but not subdirectories---you must use @kbd{i} to |
| 961 | reinsert each subdirectory. | 965 | reinsert a subdirectory. |
| 962 | 966 | ||
| 963 | @cindex Dired sorting | 967 | @cindex Dired sorting |
| 964 | @cindex sorting Dired buffer | 968 | @cindex sorting Dired buffer |