Add 2011 to FSF/AIST copyright years.
[bpt/emacs.git] / doc / emacs / dired-xtra.texi
CommitLineData
6f585e44 1@c This is part of the Emacs manual.
5df4f04c 2@c Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
09964e7d 3@c Free Software Foundation, Inc.
6f585e44
EZ
4@c See file emacs.texi for copying conditions.
5@c
c5184807
EZ
6@c This file is included either in emacs-xtra.texi (when producing the
7@c printed version) or in the main Emacs manual (for the on-line version).
8@node Subdir Switches
9@section Subdirectory Switches in Dired
10
11You can insert subdirectories with specified @code{ls} switches in
09964e7d 12Dired buffers using @kbd{C-u i}. You can change the @code{ls}
c5184807
EZ
13switches of an already inserted subdirectory using @kbd{C-u l}.
14
09964e7d
GM
15Dired preserves the switches if you revert the buffer. Deleting a
16subdirectory forgets about its switches.
c5184807
EZ
17
18Using @code{dired-undo} (usually bound to @kbd{C-_} and @kbd{C-x u})
09964e7d
GM
19to reinsert or delete subdirectories that were inserted with explicit
20switches can bypass Dired's machinery for remembering (or forgetting)
c5184807
EZ
21switches. Deleting a subdirectory using @code{dired-undo} does not
22forget its switches. When later reinserted using @kbd{i}, it will be
23reinserted using its old switches. Using @code{dired-undo} to
24reinsert a subdirectory that was deleted using the regular
25Dired commands (not @code{dired-undo}) will originally insert it with
09964e7d 26its old switches. Reverting the buffer, however, will relist it using
c5184807
EZ
27the buffer's default switches. If any of this yields problems, you
28can easily correct the situation using @kbd{C-u i} or @kbd{C-u l}.
29
30Dired does not remember the @code{R} switch. Inserting a subdirectory
09964e7d 31with switches that include the @code{R} switch is equivalent to
c5184807
EZ
32inserting each of its subdirectories using all remaining switches.
33For instance, updating or killing a subdirectory that was inserted
34with the @code{R} switch will not update or kill its subdirectories.
35
36The buffer's default switches do not affect subdirectories that were
37inserted using explicitly specified switches. In particular,
09964e7d
GM
38commands such as @kbd{s} that change the buffer's switches do not
39affect such subdirectories. (They do, however, affect subdirectories
40without explicitly assigned switches.)
c5184807
EZ
41
42You can make Dired forget about all subdirectory switches and relist
43all subdirectories with the buffer's default switches using
44@kbd{M-x dired-reset-subdir-switches}. This also reverts the Dired buffer.
14831d20
MB
45
46@ignore
47 arch-tag: e3865701-9179-4ffb-bc34-d321111c688d
48@end ignore