aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-02-17 16:43:14 +0000
committerRichard M. Stallman2001-02-17 16:43:14 +0000
commita8ef67ae518b4e0a239696e0370784af3ba992cb (patch)
treecfad5605d7ab544bb6ef11efcd2d982aa91bfdb8
parent5d9dd378d3344a193adeb6f4cff96d6a36520715 (diff)
downloademacs-a8ef67ae518b4e0a239696e0370784af3ba992cb.tar.gz
emacs-a8ef67ae518b4e0a239696e0370784af3ba992cb.zip
Just a short xref for dired-x.
Clean up dired-recursive-deletes and dired-recursive-copies. Clean up ? in shell command. Mention M-x locate here.
-rw-r--r--man/dired.texi60
1 files changed, 35 insertions, 25 deletions
diff --git a/man/dired.texi b/man/dired.texi
index ea40d6bd75c..034b83e5d8d 100644
--- a/man/dired.texi
+++ b/man/dired.texi
@@ -12,6 +12,9 @@ optionally some of its subdirectories as well. You can use the normal
12Emacs commands to move around in this buffer, and special Dired commands 12Emacs 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.
16@xref{,Dired-X,,dired-x, Dired Extra Version 2 User's Manual}.
17
15@menu 18@menu
16* Enter: Dired Enter. How to invoke Dired. 19* Enter: Dired Enter. How to invoke Dired.
17* Commands: Dired Commands. Commands in the Dired buffer. 20* Commands: Dired Commands. Commands in the Dired buffer.
@@ -29,7 +32,6 @@ to operate on the files listed.
29* Hiding Subdirectories:: Making subdirectories visible or invisible. 32* Hiding Subdirectories:: Making subdirectories visible or invisible.
30* Updating: Dired Updating. Discarding lines for files of no interest. 33* Updating: Dired Updating. Discarding lines for files of no interest.
31* Find: Dired and Find. Using `find' to choose the files for Dired. 34* Find: Dired and Find. Using `find' to choose the files for Dired.
32* Extra: Dired Extra Features. Dired-X provides more features.
33@end menu 35@end menu
34 36
35@node Dired Enter 37@node Dired Enter
@@ -109,10 +111,11 @@ file and typing @kbd{d} (@code{dired-flag-file-deletion}). The deletion flag is
109the beginning of the line. This command moves point to the next line, 111the beginning of the line. This command moves point to the next line,
110so that repeated @kbd{d} commands flag successive files. A numeric 112so that repeated @kbd{d} commands flag successive files. A numeric
111argument serves as a repeat count. 113argument serves as a repeat count.
114
112@vindex dired-recursive-deletes 115@vindex dired-recursive-deletes
113The variable @code{dired-recursive-deletes} determines if the delete 116 The variable @code{dired-recursive-deletes} controls whether the
114command will delete non-empty directories recursively. The default 117delete command will delete non-empty directories (including their
115is to delete only empty directories. 118contents). The default is to delete only empty directories.
116 119
117@kindex u @r{(Dired deletion)} 120@kindex u @r{(Dired deletion)}
118@kindex DEL @r{(Dired)} 121@kindex DEL @r{(Dired)}
@@ -470,15 +473,17 @@ commands, also use these conventions to decide which files to work on.)
470Copy the specified files (@code{dired-do-copy}). The argument @var{new} 473Copy the specified files (@code{dired-do-copy}). The argument @var{new}
471is the directory to copy into, or (if copying a single file) the new 474is the directory to copy into, or (if copying a single file) the new
472name. 475name.
473@vindex dired-recursive-copies
474The variable @code{dired-recursive-copies} determines if directories are
475copied recursively. The default is to not copy recursively.
476 476
477@vindex dired-copy-preserve-time 477@vindex dired-copy-preserve-time
478If @code{dired-copy-preserve-time} is non-@code{nil}, then copying with 478If @code{dired-copy-preserve-time} is non-@code{nil}, then copying with
479this command sets the modification time of the new file to be the same 479this command sets the modification time of the new file to be the same
480as that of the old file. 480as that of the old file.
481 481
482@vindex dired-recursive-copies
483The variable @code{dired-recursive-copies} controls whether
484directories are copied recursively. The default is to not copy
485recursively, which means that directories cannot be copied.
486
482@item D 487@item D
483@findex dired-do-delete 488@findex dired-do-delete
484@kindex D @r{(Dired)} 489@kindex D @r{(Dired)}
@@ -640,20 +645,24 @@ For example, @kbd{! uudecode @key{RET}} runs @code{uudecode} on each
640file. 645file.
641@end itemize 646@end itemize
642 647
643What if you want to run the shell command once for each file but with 648What if you want to run the shell command once for each file, with the
644the file name inserted in the middle? Or if you want to use the file 649file name inserted in the middle? You can use @samp{?} in the command
645names in a more complicated fashion? Use a shell loop. For example, 650instead of @samp{*}. The current file name is substituted for
646this shell command would run @code{uuencode} on each of the specified 651@samp{?}. You can use @samp{?} more than once. For instance, here is
647files, writing the output into a corresponding @file{.uu} file: 652how to uuencode each file, making the output file name by appending
653@samp{.uu} to the input file name:
648 654
649@example 655@example
650for file in *; do uuencode $file $file >$file.uu; done 656uuencode ? ? > ?.uu
651@end example 657@end example
652 658
653@noindent 659To use the file names in a more complicated fashion, you can use a
654In simple cases you can instead use @samp{?} in the command. This is 660shell loop. For example, this shell command is another way to
655similar to @samp{*} but the command will be run on each file 661uuencode each file:
656individually. 662
663@example
664for file in *; do uuencode $file $file >$file.uu; done
665@end example
657 666
658The working directory for the shell command is the top-level directory 667The working directory for the shell command is the top-level directory
659of the Dired buffer. 668of the Dired buffer.
@@ -1001,16 +1010,17 @@ minibuffer arguments, @var{directory} and @var{find-args}; it runs
1001@code{find} what condition to test. To use this command, you need to 1010@code{find} what condition to test. To use this command, you need to
1002know how to use @code{find}. 1011know how to use @code{find}.
1003 1012
1013@pindex locate
1014@findex locate
1015@findex locate-with-filter
1016@cindex file database (locate)
1017@vindex locate-command
1018 @kbd{M-x locate} provides a similar interface to the @code{locate}.
1019@kbd{M-x locate-with-filter} is similar, but keeps only lines matching
1020a given regular expression.
1021
1004@vindex find-ls-option 1022@vindex find-ls-option
1005 The format of listing produced by these commands is controlled by the 1023 The format of listing produced by these commands is controlled by the
1006variable @code{find-ls-option}, whose default value specifies using 1024variable @code{find-ls-option}, whose default value specifies using
1007options @samp{-ld} for @code{ls}. If your listings are corrupted, you 1025options @samp{-ld} for @code{ls}. If your listings are corrupted, you
1008may need to change the value of this variable. 1026may need to change the value of this variable.
1009
1010@node Dired Extra Features
1011@section Extra Features for Dired
1012
1013The Dired-X package provides various extra features for Dired mode. You
1014can load it with @code{M-x load-library} or customize
1015@code{dired-load-hook} to add @code{dired-require-dired-x}.
1016@xref{,Dired-X,,dired-x, Dired Extra Version 2 User's Manual}.