* lisp/textmodes/rst.el (electric-pair-pairs): Declare.
[bpt/emacs.git] / doc / emacs / dired-xtra.texi
CommitLineData
6f585e44 1@c This is part of the Emacs manual.
ba318903 2@c Copyright (C) 2004-2014 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
c40a7de7
CY
10You can insert subdirectories with specified @command{ls} switches in
11Dired buffers using @kbd{C-u i}. You can change the @command{ls}
3b19a30d 12switches of an already inserted subdirectory at point using @kbd{C-u l}.
c5184807 13
09964e7d
GM
14Dired preserves the switches if you revert the buffer. Deleting a
15subdirectory forgets about its switches.
c5184807 16
3b19a30d
GM
17Using @code{dired-undo}
18@iftex
19(@pxref{Marks vs Flags,,, emacs, the Emacs Manual})
20@end iftex
21@ifnottex
22(@pxref{Marks vs Flags})
23@end ifnottex
24to reinsert or delete
c40a7de7
CY
25subdirectories that were inserted with explicit switches can bypass
26Dired's machinery for remembering (or forgetting) switches. Deleting
27a subdirectory using @code{dired-undo} does not forget its switches.
28When later reinserted using @kbd{i}, it will be reinserted using its
29old switches. Using @code{dired-undo} to reinsert a subdirectory that
30was deleted using the regular Dired commands (not @code{dired-undo})
31will originally insert it with its old switches. Reverting the
32buffer, however, will relist it using the buffer's default switches.
33If any of this yields problems, you can easily correct the situation
34using @kbd{C-u i} or @kbd{C-u l}.
c5184807
EZ
35
36Dired does not remember the @code{R} switch. Inserting a subdirectory
09964e7d 37with switches that include the @code{R} switch is equivalent to
c5184807
EZ
38inserting each of its subdirectories using all remaining switches.
39For instance, updating or killing a subdirectory that was inserted
40with the @code{R} switch will not update or kill its subdirectories.
41
42The buffer's default switches do not affect subdirectories that were
43inserted using explicitly specified switches. In particular,
09964e7d
GM
44commands such as @kbd{s} that change the buffer's switches do not
45affect such subdirectories. (They do, however, affect subdirectories
46without explicitly assigned switches.)
c5184807
EZ
47
48You can make Dired forget about all subdirectory switches and relist
49all subdirectories with the buffer's default switches using
50@kbd{M-x dired-reset-subdir-switches}. This also reverts the Dired buffer.