comparison man/dired.texi @ 60103:d7a513160c01

(Dired Enter): C-x C-f can run Dired. (Dired Visiting): Comment out `a' command. Mouse-1 is like Mouse-2. (Shell Commands in Dired): ? can be used more than once.
author Richard M. Stallman <rms@gnu.org>
date Wed, 16 Feb 2005 09:54:47 +0000
parents 10a455da0924
children fa4296e0e363 7e3f621f1dd4
comparison
equal deleted inserted replaced
60102:8555807a4582 60103:d7a513160c01
46 @section Entering Dired 46 @section Entering Dired
47 47
48 @findex dired 48 @findex dired
49 @kindex C-x d 49 @kindex C-x d
50 @vindex dired-listing-switches 50 @vindex dired-listing-switches
51 To invoke Dired, do @kbd{C-x d} or @kbd{M-x dired}. The command reads 51 To invoke Dired, do @kbd{C-x d} or @kbd{M-x dired}. The command
52 a directory name or wildcard file name pattern as a minibuffer argument 52 reads a directory name or wildcard file name pattern as a minibuffer
53 to specify which files to list. Where @code{dired} differs from 53 argument to specify which files to list. @kbd{C-x C-f} given a
54 @code{list-directory} is in putting the buffer into Dired mode so that 54 directory name also invokes Dired. Where @code{dired} differs from
55 the special commands of Dired are available. 55 @code{list-directory} is that it puts the buffer into Dired mode, so
56 that the special commands of Dired are available.
56 57
57 The variable @code{dired-listing-switches} specifies the options to 58 The variable @code{dired-listing-switches} specifies the options to
58 give to @code{ls} for listing directory; this string @emph{must} contain 59 give to @code{ls} for listing the directory; this string @emph{must} contain
59 @samp{-l}. If you use a numeric prefix argument with the @code{dired} 60 @samp{-l}. If you use a numeric prefix argument with the @code{dired}
60 command, you can specify the @code{ls} switches with the minibuffer 61 command, you can specify the @code{ls} switches with the minibuffer
61 before you enter the directory specification. No matter how they are 62 before you enter the directory specification. No matter how they are
62 specified, the @code{ls} switches should all be short options (that 63 specified, the @code{ls} switches should all be short options (that
63 is, single characters) requiring no arguments. 64 is, single characters) requiring no arguments.
253 @itemx e 254 @itemx e
254 @kindex RET @r{(Dired)} 255 @kindex RET @r{(Dired)}
255 @kindex e @r{(Dired)} 256 @kindex e @r{(Dired)}
256 Equivalent to @kbd{f}. 257 Equivalent to @kbd{f}.
257 258
259 @ignore @c This command seems too risky to document at all.
258 @item a 260 @item a
259 @kindex a @r{(Dired)} 261 @kindex a @r{(Dired)}
260 @findex dired-find-alternate-file 262 @findex dired-find-alternate-file
261 Like @kbd{f}, but replaces the contents of the Dired buffer with 263 Like @kbd{f}, but replaces the contents of the Dired buffer with
262 that of an alternate file or directory (@code{dired-find-alternate-file}). 264 that of an alternate file or directory (@code{dired-find-alternate-file}).
265 @end ignore
263 266
264 @item o 267 @item o
265 @kindex o @r{(Dired)} 268 @kindex o @r{(Dired)}
266 @findex dired-find-file-other-window 269 @findex dired-find-file-other-window
267 Like @kbd{f}, but uses another window to display the file's buffer 270 Like @kbd{f}, but uses another window to display the file's buffer
273 @kindex C-o @r{(Dired)} 276 @kindex C-o @r{(Dired)}
274 @findex dired-display-file 277 @findex dired-display-file
275 Visit the file described on the current line, and display the buffer in 278 Visit the file described on the current line, and display the buffer in
276 another window, but do not select that window (@code{dired-display-file}). 279 another window, but do not select that window (@code{dired-display-file}).
277 280
278 @item Mouse-2 281 @item Mouse-1
282 @itemx Mouse-2
279 @findex dired-mouse-find-file-other-window 283 @findex dired-mouse-find-file-other-window
280 Visit the file named by the line you click on 284 Visit the file named by the line you click on
281 (@code{dired-mouse-find-file-other-window}). This uses another window 285 (@code{dired-mouse-find-file-other-window}). This uses another window
282 to display the file, like the @kbd{o} command. 286 to display the file, like the @kbd{o} command.
283 287
695 699
696 For example, @kbd{! uudecode @key{RET}} runs @code{uudecode} on each 700 For example, @kbd{! uudecode @key{RET}} runs @code{uudecode} on each
697 file. 701 file.
698 702
699 @item 703 @item
700 If the command string contains @samp{?} surrounded by whitespace, the 704 However, if the command string contains @samp{?} surrounded by
701 current file name is substituted for @samp{?}. You can use @samp{?} 705 whitespace, the current file name is substituted for @samp{?} (rather
702 this way more than once in the command, and each occurrence is 706 than added at the end). You can use @samp{?} this way more than once
703 replaced. 707 in the command, and the same file name replaces each occurrence.
704 @end itemize 708 @end itemize
705 709
706 To iterate over the file names in a more complicated fashion, use an 710 To iterate over the file names in a more complicated fashion, use an
707 explicit shell loop. For example, here is how to uuencode each file, 711 explicit shell loop. For example, here is how to uuencode each file,
708 making the output file name by appending @samp{.uu} to the input file 712 making the output file name by appending @samp{.uu} to the input file