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