aboutsummaryrefslogtreecommitdiffstats
path: root/man/dired-xtra.texi
diff options
context:
space:
mode:
authorEli Zaretskii2006-05-06 12:45:46 +0000
committerEli Zaretskii2006-05-06 12:45:46 +0000
commitc51848079a72dfd75b5dca69149fd2920a31f516 (patch)
tree366b4dc6e3fdc6719b644d6f4fe07a893e492d63 /man/dired-xtra.texi
parent92d05762f73efe69ff12300d0a6478cd610e2a3a (diff)
downloademacs-c51848079a72dfd75b5dca69149fd2920a31f516.tar.gz
emacs-c51848079a72dfd75b5dca69149fd2920a31f516.zip
New file, a portion of emacs-xtra.texi.
Diffstat (limited to 'man/dired-xtra.texi')
-rw-r--r--man/dired-xtra.texi41
1 files changed, 41 insertions, 0 deletions
diff --git a/man/dired-xtra.texi b/man/dired-xtra.texi
new file mode 100644
index 00000000000..9939482dfba
--- /dev/null
+++ b/man/dired-xtra.texi
@@ -0,0 +1,41 @@
1@c This file is included either in emacs-xtra.texi (when producing the
2@c printed version) or in the main Emacs manual (for the on-line version).
3@node Subdir Switches
4@section Subdirectory Switches in Dired
5
6You can insert subdirectories with specified @code{ls} switches in
7Dired buffers, using @kbd{C-u i}. You can change the @code{ls}
8switches of an already inserted subdirectory using @kbd{C-u l}.
9
10In Emacs versions 22.1 and later, Dired remembers the switches, so
11that reverting the buffer will not change them back to the main
12directory's switches. Deleting a subdirectory forgets about its
13switches.
14
15Using @code{dired-undo} (usually bound to @kbd{C-_} and @kbd{C-x u})
16to reinsert or delete subdirectories, that were inserted with explicit
17switches, can bypass Dired's machinery for remembering (or forgetting)
18switches. Deleting a subdirectory using @code{dired-undo} does not
19forget its switches. When later reinserted using @kbd{i}, it will be
20reinserted using its old switches. Using @code{dired-undo} to
21reinsert a subdirectory that was deleted using the regular
22Dired commands (not @code{dired-undo}) will originally insert it with
23its old switches. However, reverting the buffer will relist it using
24the buffer's default switches. If any of this yields problems, you
25can easily correct the situation using @kbd{C-u i} or @kbd{C-u l}.
26
27Dired does not remember the @code{R} switch. Inserting a subdirectory
28with switches that include the @code{R} switch is equivalent with
29inserting each of its subdirectories using all remaining switches.
30For instance, updating or killing a subdirectory that was inserted
31with the @code{R} switch will not update or kill its subdirectories.
32
33The buffer's default switches do not affect subdirectories that were
34inserted using explicitly specified switches. In particular,
35commands such as @kbd{s}, that change the buffer's switches do not
36affect such subdirectories. (They do affect subdirectories without
37explicitly assigned switches, however.)
38
39You can make Dired forget about all subdirectory switches and relist
40all subdirectories with the buffer's default switches using
41@kbd{M-x dired-reset-subdir-switches}. This also reverts the Dired buffer.