annotate man/dired-x.texi @ 28246:7ee0bbd93bea

*** empty log message ***
author Jason Rumney <jasonr@gnu.org>
date Tue, 21 Mar 2000 22:20:57 +0000
parents 1c8b8c87db6f
children 54fda0e8528a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
1 \input texinfo @comment -*-texinfo-*-
Dave Love <fx@gnu.org>
parents:
diff changeset
2
Dave Love <fx@gnu.org>
parents:
diff changeset
3 @c dired-x.texi --- Sebastian Kremer's Extra DIRED hacked up for GNU Emacs19
Dave Love <fx@gnu.org>
parents:
diff changeset
4 @c
Dave Love <fx@gnu.org>
parents:
diff changeset
5 @c Author: Sebastian Kremer <sk@thp.uni-koeln.de>
Dave Love <fx@gnu.org>
parents:
diff changeset
6 @c Lawrence R. Dodd <dodd@roebling.poly.edu>
Dave Love <fx@gnu.org>
parents:
diff changeset
7 @c Maintainer: Lawrence R. Dodd <dodd@roebling.poly.edu>
Dave Love <fx@gnu.org>
parents:
diff changeset
8 @c Version: 2.52
Dave Love <fx@gnu.org>
parents:
diff changeset
9 @c Date: 1994/08/09 16:51:31
Dave Love <fx@gnu.org>
parents:
diff changeset
10 @c Keywords: dired extensions
Dave Love <fx@gnu.org>
parents:
diff changeset
11 @c dired-x.el REVISION NUMBER: 2
Dave Love <fx@gnu.org>
parents:
diff changeset
12
Dave Love <fx@gnu.org>
parents:
diff changeset
13 @c State: Released
Dave Love <fx@gnu.org>
parents:
diff changeset
14 @c Ident: dired-x.texi,v 2.52 1994/08/09 16:51:31 dodd Released
Dave Love <fx@gnu.org>
parents:
diff changeset
15
Dave Love <fx@gnu.org>
parents:
diff changeset
16 @comment %**start of header (This is for running Texinfo on a region.)
Dave Love <fx@gnu.org>
parents:
diff changeset
17 @c FOR GNU EMACS USE ../info/dired-x BELOW
Dave Love <fx@gnu.org>
parents:
diff changeset
18 @setfilename ../info/dired-x
Dave Love <fx@gnu.org>
parents:
diff changeset
19 @c dired-x.el REVISION NUMBER
Dave Love <fx@gnu.org>
parents:
diff changeset
20 @settitle Dired Extra Version 2 User's Manual
Dave Love <fx@gnu.org>
parents:
diff changeset
21
Dave Love <fx@gnu.org>
parents:
diff changeset
22 @dircategory Editors
Dave Love <fx@gnu.org>
parents:
diff changeset
23 @direntry
Dave Love <fx@gnu.org>
parents:
diff changeset
24 * Dired-X: (dired-x). Dired Extra Features.
Dave Love <fx@gnu.org>
parents:
diff changeset
25 @end direntry
Dave Love <fx@gnu.org>
parents:
diff changeset
26
Dave Love <fx@gnu.org>
parents:
diff changeset
27 @iftex
Dave Love <fx@gnu.org>
parents:
diff changeset
28 @finalout
Dave Love <fx@gnu.org>
parents:
diff changeset
29 @end iftex
Dave Love <fx@gnu.org>
parents:
diff changeset
30 @c @setchapternewpage odd % For book style double sided manual.
Dave Love <fx@gnu.org>
parents:
diff changeset
31 @comment %**end of header (This is for running Texinfo on a region.)
Dave Love <fx@gnu.org>
parents:
diff changeset
32 @c @smallbook
Dave Love <fx@gnu.org>
parents:
diff changeset
33 @tex
Dave Love <fx@gnu.org>
parents:
diff changeset
34 \overfullrule=0pt
Dave Love <fx@gnu.org>
parents:
diff changeset
35 %\global\baselineskip 30pt % For printing in double spaces
Dave Love <fx@gnu.org>
parents:
diff changeset
36 @end tex
Dave Love <fx@gnu.org>
parents:
diff changeset
37
Dave Love <fx@gnu.org>
parents:
diff changeset
38 @ifinfo
Dave Love <fx@gnu.org>
parents:
diff changeset
39 @node Copyright, Top, (dir), (dir)
Dave Love <fx@gnu.org>
parents:
diff changeset
40 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
41 This documents the ``extra'' features for Dired Mode for GNU Emacs 19 found in
Dave Love <fx@gnu.org>
parents:
diff changeset
42 the file @file{dired-x.el}.
Dave Love <fx@gnu.org>
parents:
diff changeset
43
Dave Love <fx@gnu.org>
parents:
diff changeset
44 Copyright @copyright{} 1993, 1994 Free Software Foundation, Inc.
Dave Love <fx@gnu.org>
parents:
diff changeset
45
Dave Love <fx@gnu.org>
parents:
diff changeset
46 Permission is granted to make and distribute verbatim copies of this
Dave Love <fx@gnu.org>
parents:
diff changeset
47 manual provided the copyright notice and this permission notice are
Dave Love <fx@gnu.org>
parents:
diff changeset
48 preserved on all copies.
Dave Love <fx@gnu.org>
parents:
diff changeset
49
Dave Love <fx@gnu.org>
parents:
diff changeset
50 Permission is granted to copy and distribute modified versions of
Dave Love <fx@gnu.org>
parents:
diff changeset
51 this manual under the conditions for verbatim copying, provided that
Dave Love <fx@gnu.org>
parents:
diff changeset
52 the entire resulting derived work is distributed under the terms of
Dave Love <fx@gnu.org>
parents:
diff changeset
53 a permission notice identical to this one.
Dave Love <fx@gnu.org>
parents:
diff changeset
54
Dave Love <fx@gnu.org>
parents:
diff changeset
55 Permission is granted to copy and distribute translations of this
Dave Love <fx@gnu.org>
parents:
diff changeset
56 manual into another language, under the above conditions for
Dave Love <fx@gnu.org>
parents:
diff changeset
57 modified versions, except that this permission notice may be stated
Dave Love <fx@gnu.org>
parents:
diff changeset
58 in a translation approved by the Free Software Foundation.
Dave Love <fx@gnu.org>
parents:
diff changeset
59
Dave Love <fx@gnu.org>
parents:
diff changeset
60 The file used to create this is called @file{dired-x.texi}, but the
Dave Love <fx@gnu.org>
parents:
diff changeset
61 original work that was altered to make that file was called
Dave Love <fx@gnu.org>
parents:
diff changeset
62 @file{dired.texi} written by Sebastian Kremer.
Dave Love <fx@gnu.org>
parents:
diff changeset
63
Dave Love <fx@gnu.org>
parents:
diff changeset
64 @ignore
Dave Love <fx@gnu.org>
parents:
diff changeset
65 Permission is granted to process this file through TeX and print the
Dave Love <fx@gnu.org>
parents:
diff changeset
66 results, provided the printed document carries copying permission
Dave Love <fx@gnu.org>
parents:
diff changeset
67 notice identical to this one except for the removal of this paragraph
Dave Love <fx@gnu.org>
parents:
diff changeset
68 (this paragraph not being relevant to the printed manual).
Dave Love <fx@gnu.org>
parents:
diff changeset
69
Dave Love <fx@gnu.org>
parents:
diff changeset
70 @end ignore
Dave Love <fx@gnu.org>
parents:
diff changeset
71 @end ifinfo
Dave Love <fx@gnu.org>
parents:
diff changeset
72
Dave Love <fx@gnu.org>
parents:
diff changeset
73 @c
Dave Love <fx@gnu.org>
parents:
diff changeset
74 @titlepage
Dave Love <fx@gnu.org>
parents:
diff changeset
75 @sp 6
Dave Love <fx@gnu.org>
parents:
diff changeset
76 @c dired-x.el REVISION NUMBER
Dave Love <fx@gnu.org>
parents:
diff changeset
77 @center @titlefont{Dired Extra Version 2}
Dave Love <fx@gnu.org>
parents:
diff changeset
78 @sp 2
Dave Love <fx@gnu.org>
parents:
diff changeset
79 @center @titlefont{For The GNU Emacs 19}
Dave Love <fx@gnu.org>
parents:
diff changeset
80 @sp 1
Dave Love <fx@gnu.org>
parents:
diff changeset
81 @center @titlefont{Directory Editor}
Dave Love <fx@gnu.org>
parents:
diff changeset
82 @sp 4
Dave Love <fx@gnu.org>
parents:
diff changeset
83 @center Manual Revision: 2.52
Dave Love <fx@gnu.org>
parents:
diff changeset
84 @center 1994/08/09 16:51:31
Dave Love <fx@gnu.org>
parents:
diff changeset
85 @sp 5
Dave Love <fx@gnu.org>
parents:
diff changeset
86 @center Lawrence R@. Dodd
Dave Love <fx@gnu.org>
parents:
diff changeset
87 @center @t{dodd@@roebling.poly.edu}
Dave Love <fx@gnu.org>
parents:
diff changeset
88 @sp 5
Dave Love <fx@gnu.org>
parents:
diff changeset
89 @center (Based on @file{dired.texi} by Sebastian Kremer <sk@@thp.uni-koeln.de>)
Dave Love <fx@gnu.org>
parents:
diff changeset
90 @page
Dave Love <fx@gnu.org>
parents:
diff changeset
91 @vskip 0pt plus 1filll
Dave Love <fx@gnu.org>
parents:
diff changeset
92 Copyright @copyright{} 1993, 1994 Free Software Foundation
Dave Love <fx@gnu.org>
parents:
diff changeset
93
Dave Love <fx@gnu.org>
parents:
diff changeset
94 Permission is granted to make and distribute verbatim copies of
Dave Love <fx@gnu.org>
parents:
diff changeset
95 this manual provided the copyright notice and this permission notice
Dave Love <fx@gnu.org>
parents:
diff changeset
96 are preserved on all copies.
Dave Love <fx@gnu.org>
parents:
diff changeset
97
Dave Love <fx@gnu.org>
parents:
diff changeset
98 Permission is granted to copy and distribute modified versions of
Dave Love <fx@gnu.org>
parents:
diff changeset
99 this manual under the conditions for verbatim copying, provided that
Dave Love <fx@gnu.org>
parents:
diff changeset
100 the entire resulting derived work is distributed under the terms of
Dave Love <fx@gnu.org>
parents:
diff changeset
101 a permission notice identical to this one.
Dave Love <fx@gnu.org>
parents:
diff changeset
102
Dave Love <fx@gnu.org>
parents:
diff changeset
103 Permission is granted to copy and distribute translations of this
Dave Love <fx@gnu.org>
parents:
diff changeset
104 manual into another language, under the above conditions for
Dave Love <fx@gnu.org>
parents:
diff changeset
105 modified versions, except that this permission notice may be stated
Dave Love <fx@gnu.org>
parents:
diff changeset
106 in a translation approved by the Free Software Foundation.
Dave Love <fx@gnu.org>
parents:
diff changeset
107
Dave Love <fx@gnu.org>
parents:
diff changeset
108 The file used to create this is called @file{dired-x.texi}, but the
Dave Love <fx@gnu.org>
parents:
diff changeset
109 original work that was altered to make that file was called
Dave Love <fx@gnu.org>
parents:
diff changeset
110 @file{dired.texi} written by Sebastian Kremer.
Dave Love <fx@gnu.org>
parents:
diff changeset
111
Dave Love <fx@gnu.org>
parents:
diff changeset
112 @end titlepage
Dave Love <fx@gnu.org>
parents:
diff changeset
113
Dave Love <fx@gnu.org>
parents:
diff changeset
114 @page
Dave Love <fx@gnu.org>
parents:
diff changeset
115
Dave Love <fx@gnu.org>
parents:
diff changeset
116 @ifinfo
Dave Love <fx@gnu.org>
parents:
diff changeset
117
Dave Love <fx@gnu.org>
parents:
diff changeset
118 @node Top, Introduction, Copyright, (dir)
Dave Love <fx@gnu.org>
parents:
diff changeset
119 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
120
Dave Love <fx@gnu.org>
parents:
diff changeset
121 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
122 This documents the ``extra'' features for Dired Mode for GNU Emacs 19 that are
Dave Love <fx@gnu.org>
parents:
diff changeset
123 provided by the file @file{dired-x.el}.
Dave Love <fx@gnu.org>
parents:
diff changeset
124
Dave Love <fx@gnu.org>
parents:
diff changeset
125 @itemize @bullet
Dave Love <fx@gnu.org>
parents:
diff changeset
126
Dave Love <fx@gnu.org>
parents:
diff changeset
127 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
128 Based on @file{dired.texi} by Sebastian Kremer <sk@@thp.uni-koeln.de>
Dave Love <fx@gnu.org>
parents:
diff changeset
129
Dave Love <fx@gnu.org>
parents:
diff changeset
130 @c dired-x.el REVISION NUMBER
Dave Love <fx@gnu.org>
parents:
diff changeset
131 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
132 For @file{dired-x.el} revision 2
Dave Love <fx@gnu.org>
parents:
diff changeset
133
Dave Love <fx@gnu.org>
parents:
diff changeset
134 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
135 Revision of this manual: 2.52 (1994/08/09 16:51:31)
Dave Love <fx@gnu.org>
parents:
diff changeset
136
Dave Love <fx@gnu.org>
parents:
diff changeset
137 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
138 Bugs to Lawrence R. Dodd <dodd@@roebling.poly.edu>. @emph{Please} type
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
139 @kbd{M-x dired-x-submit-report} to submit a bug report (@pxref{Bugs}).
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
140
Dave Love <fx@gnu.org>
parents:
diff changeset
141 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
142 You can obtain a copy of this package via anonymous ftp in
Dave Love <fx@gnu.org>
parents:
diff changeset
143 @t{/roebling.poly.edu:/pub/packages/dired-x.tar.gz}
Dave Love <fx@gnu.org>
parents:
diff changeset
144
Dave Love <fx@gnu.org>
parents:
diff changeset
145 @end itemize
Dave Love <fx@gnu.org>
parents:
diff changeset
146
Dave Love <fx@gnu.org>
parents:
diff changeset
147 @menu
Dave Love <fx@gnu.org>
parents:
diff changeset
148 * Introduction::
Dave Love <fx@gnu.org>
parents:
diff changeset
149 * Installation::
Dave Love <fx@gnu.org>
parents:
diff changeset
150 * Omitting Files in Dired::
Dave Love <fx@gnu.org>
parents:
diff changeset
151 * Local Variables::
Dave Love <fx@gnu.org>
parents:
diff changeset
152 * Shell Command Guessing::
Dave Love <fx@gnu.org>
parents:
diff changeset
153 * Virtual Dired::
Dave Love <fx@gnu.org>
parents:
diff changeset
154 * Advanced Mark Commands::
Dave Love <fx@gnu.org>
parents:
diff changeset
155 * Multiple Dired Directories::
Dave Love <fx@gnu.org>
parents:
diff changeset
156 * Find File At Point::
Dave Love <fx@gnu.org>
parents:
diff changeset
157 * Miscellaneous Commands::
Dave Love <fx@gnu.org>
parents:
diff changeset
158 * Bugs::
Dave Love <fx@gnu.org>
parents:
diff changeset
159
Dave Love <fx@gnu.org>
parents:
diff changeset
160 * Concept Index::
Dave Love <fx@gnu.org>
parents:
diff changeset
161 * Command Index::
Dave Love <fx@gnu.org>
parents:
diff changeset
162 * Key Index::
Dave Love <fx@gnu.org>
parents:
diff changeset
163 * Variable Index::
Dave Love <fx@gnu.org>
parents:
diff changeset
164
Dave Love <fx@gnu.org>
parents:
diff changeset
165 @end menu
Dave Love <fx@gnu.org>
parents:
diff changeset
166
Dave Love <fx@gnu.org>
parents:
diff changeset
167 @end ifinfo
Dave Love <fx@gnu.org>
parents:
diff changeset
168
Dave Love <fx@gnu.org>
parents:
diff changeset
169 @node Introduction, Features, Top, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
170 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
171 @chapter Introduction
Dave Love <fx@gnu.org>
parents:
diff changeset
172
Dave Love <fx@gnu.org>
parents:
diff changeset
173 This documents the @emph{extra} features for Dired Mode for GNU Emacs 19. It
Dave Love <fx@gnu.org>
parents:
diff changeset
174 is derived from version 1.191 of Sebastian Kremer's @file{dired-x.el} and is
Dave Love <fx@gnu.org>
parents:
diff changeset
175 GNU Emacs v19 compatible.
Dave Love <fx@gnu.org>
parents:
diff changeset
176
Dave Love <fx@gnu.org>
parents:
diff changeset
177 In adopting this @file{dired-x.el} to GNU Emacs v19 some material that has
Dave Love <fx@gnu.org>
parents:
diff changeset
178 been incorporated into @file{dired.el} and @file{dired-aux.el} of the GNU Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
179 19 distribution has been removed and some material was modified for agreement
Dave Love <fx@gnu.org>
parents:
diff changeset
180 with the functions in @file{dired.el} and @file{dired-aux.el}. For example,
Dave Love <fx@gnu.org>
parents:
diff changeset
181 the code using @code{gmhist} history functions was replaced with code using
Dave Love <fx@gnu.org>
parents:
diff changeset
182 the mini-buffer history now built into GNU Emacs 19. Finally, a few other
Dave Love <fx@gnu.org>
parents:
diff changeset
183 features have been added and a few more functions have been bound to keys.
Dave Love <fx@gnu.org>
parents:
diff changeset
184
Dave Love <fx@gnu.org>
parents:
diff changeset
185 Please note that @file{dired-x.el} and this texinfo file @file{dired-x.texi}
Dave Love <fx@gnu.org>
parents:
diff changeset
186 are bundled with GNU Emacs versions 19.23 and later.
Dave Love <fx@gnu.org>
parents:
diff changeset
187
Dave Love <fx@gnu.org>
parents:
diff changeset
188 @ifinfo
Dave Love <fx@gnu.org>
parents:
diff changeset
189 @menu
Dave Love <fx@gnu.org>
parents:
diff changeset
190 * Features::
Dave Love <fx@gnu.org>
parents:
diff changeset
191 * Technical Details::
Dave Love <fx@gnu.org>
parents:
diff changeset
192 @end menu
Dave Love <fx@gnu.org>
parents:
diff changeset
193 @end ifinfo
Dave Love <fx@gnu.org>
parents:
diff changeset
194
Dave Love <fx@gnu.org>
parents:
diff changeset
195 @node Features, Technical Details, Introduction, Introduction
Dave Love <fx@gnu.org>
parents:
diff changeset
196 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
197 @section Features
Dave Love <fx@gnu.org>
parents:
diff changeset
198 @cindex Features
Dave Love <fx@gnu.org>
parents:
diff changeset
199
Dave Love <fx@gnu.org>
parents:
diff changeset
200 Some features provided by Dired Extra
Dave Love <fx@gnu.org>
parents:
diff changeset
201
Dave Love <fx@gnu.org>
parents:
diff changeset
202 @enumerate
Dave Love <fx@gnu.org>
parents:
diff changeset
203 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
204 Omitting of uninteresting files from dired listing.
Dave Love <fx@gnu.org>
parents:
diff changeset
205 @itemize @bullet
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
206 @xref{Omitting Files in Dired}.
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
207 @end itemize
Dave Love <fx@gnu.org>
parents:
diff changeset
208 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
209 Local variables for dired directories.
Dave Love <fx@gnu.org>
parents:
diff changeset
210 @itemize @bullet
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
211 @xref{Local Variables}.
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
212 @end itemize
Dave Love <fx@gnu.org>
parents:
diff changeset
213 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
214 Guessing shell commands in dired buffers.
Dave Love <fx@gnu.org>
parents:
diff changeset
215 @itemize @bullet
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
216 @xref{Shell Command Guessing}.
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
217 @end itemize
Dave Love <fx@gnu.org>
parents:
diff changeset
218 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
219 Running dired command in non-dired buffers.
Dave Love <fx@gnu.org>
parents:
diff changeset
220 @itemize @bullet
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
221 @xref{Virtual Dired}.
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
222 @end itemize
Dave Love <fx@gnu.org>
parents:
diff changeset
223 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
224 Finding a file mentioned in a buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
225 @itemize @bullet
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
226 @xref{Find File At Point}.
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
227 @end itemize
Dave Love <fx@gnu.org>
parents:
diff changeset
228 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
229 Commands using file marking.
Dave Love <fx@gnu.org>
parents:
diff changeset
230 @itemize @bullet
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
231 @xref{Advanced Mark Commands}.
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
232 @end itemize
Dave Love <fx@gnu.org>
parents:
diff changeset
233 @end enumerate
Dave Love <fx@gnu.org>
parents:
diff changeset
234
Dave Love <fx@gnu.org>
parents:
diff changeset
235 @noindent
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
236 @file{dired-x.el} binds some functions to keys in Dired Mode (@pxref{Key
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
237 Index}) and also binds @kbd{C-x C-j} and @kbd{C-x 4 C-j} @emph{globally} to
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
238 @code{dired-jump} (@pxref{Miscellaneous Commands}). It may also bind @kbd{C-x
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
239 C-f} and @kbd{C-x 4 C-f} to @code{dired-x-find-file} and
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
240 @code{dired-x-find-file-other-window}, respectively (@pxref{Find File At
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
241 Point}).
Dave Love <fx@gnu.org>
parents:
diff changeset
242
Dave Love <fx@gnu.org>
parents:
diff changeset
243 @node Technical Details, Installation, Features, Introduction
Dave Love <fx@gnu.org>
parents:
diff changeset
244 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
245 @section Technical Details
Dave Love <fx@gnu.org>
parents:
diff changeset
246 @cindex Redefined functions
Dave Love <fx@gnu.org>
parents:
diff changeset
247 @cindex @file{dired-aux.el}
Dave Love <fx@gnu.org>
parents:
diff changeset
248
Dave Love <fx@gnu.org>
parents:
diff changeset
249 When loaded this code @emph{redefines} the following functions of GNU Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
250 from @file{dired.el}
Dave Love <fx@gnu.org>
parents:
diff changeset
251
Dave Love <fx@gnu.org>
parents:
diff changeset
252 @itemize @bullet
Dave Love <fx@gnu.org>
parents:
diff changeset
253 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
254 @code{dired-clean-up-after-deletion}
Dave Love <fx@gnu.org>
parents:
diff changeset
255 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
256 @code{dired-find-buffer-nocreate}
Dave Love <fx@gnu.org>
parents:
diff changeset
257 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
258 @code{dired-initial-position}
Dave Love <fx@gnu.org>
parents:
diff changeset
259 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
260 @code{dired-up-directory}
Dave Love <fx@gnu.org>
parents:
diff changeset
261 @end itemize
Dave Love <fx@gnu.org>
parents:
diff changeset
262
Dave Love <fx@gnu.org>
parents:
diff changeset
263 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
264 and the following functions from @file{dired-aux.el}
Dave Love <fx@gnu.org>
parents:
diff changeset
265
Dave Love <fx@gnu.org>
parents:
diff changeset
266 @itemize @bullet
Dave Love <fx@gnu.org>
parents:
diff changeset
267 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
268 @code{dired-add-entry}
Dave Love <fx@gnu.org>
parents:
diff changeset
269 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
270 @code{dired-read-shell-command}
Dave Love <fx@gnu.org>
parents:
diff changeset
271 @end itemize
Dave Love <fx@gnu.org>
parents:
diff changeset
272
Dave Love <fx@gnu.org>
parents:
diff changeset
273 One drawback is that @file{dired-x.el} will load @file{dired-aux.el} as soon
Dave Love <fx@gnu.org>
parents:
diff changeset
274 as dired is loaded. Thus, the advantage of separating out non-essential dired
Dave Love <fx@gnu.org>
parents:
diff changeset
275 stuff into @file{dired-aux.el} and only loading when necessary will be lost
Dave Love <fx@gnu.org>
parents:
diff changeset
276 when @file{dired-x.el} is used.
Dave Love <fx@gnu.org>
parents:
diff changeset
277
Dave Love <fx@gnu.org>
parents:
diff changeset
278 @node Installation, Optional Installation Dired Jump, Technical Details, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
279 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
280 @chapter Installation
Dave Love <fx@gnu.org>
parents:
diff changeset
281
Dave Love <fx@gnu.org>
parents:
diff changeset
282 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
283 This manual describes the dired features provided by the file
Dave Love <fx@gnu.org>
parents:
diff changeset
284 @file{dired-x.el}. To take advantage of these features, you must load the
Dave Love <fx@gnu.org>
parents:
diff changeset
285 file and (optionally) set some variables.
Dave Love <fx@gnu.org>
parents:
diff changeset
286
Dave Love <fx@gnu.org>
parents:
diff changeset
287 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
288 In your @file{.emacs} file in your home directory, or in the system-wide
Dave Love <fx@gnu.org>
parents:
diff changeset
289 initialization file @file{default.el} in the @file{site-lisp} directory, put
Dave Love <fx@gnu.org>
parents:
diff changeset
290
Dave Love <fx@gnu.org>
parents:
diff changeset
291 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
292 (add-hook 'dired-load-hook
Dave Love <fx@gnu.org>
parents:
diff changeset
293 (function (lambda ()
Dave Love <fx@gnu.org>
parents:
diff changeset
294 (load "dired-x")
Dave Love <fx@gnu.org>
parents:
diff changeset
295 ;; Set dired-x global variables here. For example:
Dave Love <fx@gnu.org>
parents:
diff changeset
296 ;; (setq dired-guess-shell-gnutar "gtar")
Dave Love <fx@gnu.org>
parents:
diff changeset
297 ;; (setq dired-x-hands-off-my-keys nil)
Dave Love <fx@gnu.org>
parents:
diff changeset
298 )))
Dave Love <fx@gnu.org>
parents:
diff changeset
299 (add-hook 'dired-mode-hook
Dave Love <fx@gnu.org>
parents:
diff changeset
300 (function (lambda ()
Dave Love <fx@gnu.org>
parents:
diff changeset
301 ;; Set dired-x buffer-local variables here. For example:
Dave Love <fx@gnu.org>
parents:
diff changeset
302 ;; (setq dired-omit-files-p t)
Dave Love <fx@gnu.org>
parents:
diff changeset
303 )))
Dave Love <fx@gnu.org>
parents:
diff changeset
304 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
305
Dave Love <fx@gnu.org>
parents:
diff changeset
306 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
307 This will load @file{dired-x.el} when dired is first invoked (for example,
Dave Love <fx@gnu.org>
parents:
diff changeset
308 when you first do @kbd{C-x d}).
Dave Love <fx@gnu.org>
parents:
diff changeset
309
Dave Love <fx@gnu.org>
parents:
diff changeset
310 @ifinfo
Dave Love <fx@gnu.org>
parents:
diff changeset
311 @menu
Dave Love <fx@gnu.org>
parents:
diff changeset
312 * Optional Installation Dired Jump::
Dave Love <fx@gnu.org>
parents:
diff changeset
313 * Optional Installation File At Point::
Dave Love <fx@gnu.org>
parents:
diff changeset
314 * Special Notes::
Dave Love <fx@gnu.org>
parents:
diff changeset
315 @end menu
Dave Love <fx@gnu.org>
parents:
diff changeset
316 @end ifinfo
Dave Love <fx@gnu.org>
parents:
diff changeset
317
Dave Love <fx@gnu.org>
parents:
diff changeset
318 @node Optional Installation Dired Jump, Optional Installation File At Point, Installation, Installation
Dave Love <fx@gnu.org>
parents:
diff changeset
319 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
320 @section Optional Installation Dired Jump
Dave Love <fx@gnu.org>
parents:
diff changeset
321
Dave Love <fx@gnu.org>
parents:
diff changeset
322 @cindex Autoloading @code{dired-jump} and @code{dired-jump-other-window}
Dave Love <fx@gnu.org>
parents:
diff changeset
323
Dave Love <fx@gnu.org>
parents:
diff changeset
324 In order to have @code{dired-jump} and @code{dired-jump-other-window}
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
325 (@pxref{Miscellaneous Commands}) work @emph{before} @code{dired} and
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
326 @code{dired-x} have been properly loaded the user should set-up an autoload
Dave Love <fx@gnu.org>
parents:
diff changeset
327 for these functions. In your @file{.emacs} file put
Dave Love <fx@gnu.org>
parents:
diff changeset
328
Dave Love <fx@gnu.org>
parents:
diff changeset
329 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
330 ;;; Autoload `dired-jump' and `dired-jump-other-window'.
Dave Love <fx@gnu.org>
parents:
diff changeset
331 ;;; We autoload from FILE dired.el. This will then load dired-x.el
Dave Love <fx@gnu.org>
parents:
diff changeset
332 ;;; and hence define `dired-jump' and `dired-jump-other-window'.
Dave Love <fx@gnu.org>
parents:
diff changeset
333 (define-key global-map "\C-x\C-j" 'dired-jump)
Dave Love <fx@gnu.org>
parents:
diff changeset
334 (define-key global-map "\C-x4\C-j" 'dired-jump-other-window)
Dave Love <fx@gnu.org>
parents:
diff changeset
335
Dave Love <fx@gnu.org>
parents:
diff changeset
336 (autoload (quote dired-jump) "dired" "\
Dave Love <fx@gnu.org>
parents:
diff changeset
337 Jump to dired buffer corresponding to current buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
338 If in a file, dired the current directory and move to file's line.
Dave Love <fx@gnu.org>
parents:
diff changeset
339 If in dired already, pop up a level and goto old directory's line.
Dave Love <fx@gnu.org>
parents:
diff changeset
340 In case the proper dired file line cannot be found, refresh the dired
Dave Love <fx@gnu.org>
parents:
diff changeset
341 buffer and try again." t nil)
Dave Love <fx@gnu.org>
parents:
diff changeset
342
Dave Love <fx@gnu.org>
parents:
diff changeset
343 (autoload (quote dired-jump-other-window) "dired" "\
Dave Love <fx@gnu.org>
parents:
diff changeset
344 Like \\[dired-jump] (dired-jump) but in other window." t nil)
Dave Love <fx@gnu.org>
parents:
diff changeset
345 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
346
Dave Love <fx@gnu.org>
parents:
diff changeset
347 Note that in recent releases of GNU Emacs 19 (i.e., 19.25 or later) the file
Dave Love <fx@gnu.org>
parents:
diff changeset
348 @file{../lisp/loaddefs.el} of the Emacs distribution already contains the
Dave Love <fx@gnu.org>
parents:
diff changeset
349 proper auto-loading for @code{dired-jump} so you need only put
Dave Love <fx@gnu.org>
parents:
diff changeset
350
Dave Love <fx@gnu.org>
parents:
diff changeset
351 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
352 (define-key global-map "\C-x\C-j" 'dired-jump)
Dave Love <fx@gnu.org>
parents:
diff changeset
353 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
354
Dave Love <fx@gnu.org>
parents:
diff changeset
355 @noindent in your @file{.emacs} file in order to have @kbd{C-x C-j} work
Dave Love <fx@gnu.org>
parents:
diff changeset
356 before @code{dired} is loaded.
Dave Love <fx@gnu.org>
parents:
diff changeset
357
Dave Love <fx@gnu.org>
parents:
diff changeset
358 @node Optional Installation File At Point, Special Notes, Optional Installation Dired Jump, Installation
Dave Love <fx@gnu.org>
parents:
diff changeset
359 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
360 @section Optional Installation File At Point
Dave Love <fx@gnu.org>
parents:
diff changeset
361
Dave Love <fx@gnu.org>
parents:
diff changeset
362 @cindex Binding @code{dired-x-find-file}
Dave Love <fx@gnu.org>
parents:
diff changeset
363 If you choose to have @file{dired-x.el} bind @code{dired-x-find-file} over
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
364 @code{find-file} (@pxref{Find File At Point}), then you will need to set
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
365 @code{dired-x-hands-off-my-keys} and make a call to the function
Dave Love <fx@gnu.org>
parents:
diff changeset
366 @code{dired-x-bind-find-file} in the @code{dired-load-hook}:
Dave Love <fx@gnu.org>
parents:
diff changeset
367
Dave Love <fx@gnu.org>
parents:
diff changeset
368 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
369 (add-hook 'dired-load-hook
Dave Love <fx@gnu.org>
parents:
diff changeset
370 (function (lambda ()
Dave Love <fx@gnu.org>
parents:
diff changeset
371 (load "dired-x")
Dave Love <fx@gnu.org>
parents:
diff changeset
372 ;; Bind dired-x-find-file.
Dave Love <fx@gnu.org>
parents:
diff changeset
373 (setq dired-x-hands-off-my-keys nil)
Dave Love <fx@gnu.org>
parents:
diff changeset
374 ;; Make sure our binding preference is invoked.
Dave Love <fx@gnu.org>
parents:
diff changeset
375 (dired-x-bind-find-file)
Dave Love <fx@gnu.org>
parents:
diff changeset
376 )))
Dave Love <fx@gnu.org>
parents:
diff changeset
377 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
378
Dave Love <fx@gnu.org>
parents:
diff changeset
379 Alternatively, you can set the variable @emph{before} @file{dired-x.el} is
Dave Love <fx@gnu.org>
parents:
diff changeset
380 loaded
Dave Love <fx@gnu.org>
parents:
diff changeset
381
Dave Love <fx@gnu.org>
parents:
diff changeset
382 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
383 (add-hook 'dired-load-hook
Dave Love <fx@gnu.org>
parents:
diff changeset
384 (function (lambda ()
Dave Love <fx@gnu.org>
parents:
diff changeset
385 ;; Bind dired-x-find-file.
Dave Love <fx@gnu.org>
parents:
diff changeset
386 (setq dired-x-hands-off-my-keys nil)
Dave Love <fx@gnu.org>
parents:
diff changeset
387 (load "dired-x")
Dave Love <fx@gnu.org>
parents:
diff changeset
388 )))
Dave Love <fx@gnu.org>
parents:
diff changeset
389 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
390
Dave Love <fx@gnu.org>
parents:
diff changeset
391 @node Special Notes, Omitting Files in Dired, Optional Installation File At Point, Installation
Dave Love <fx@gnu.org>
parents:
diff changeset
392 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
393 @section Special Notes
Dave Love <fx@gnu.org>
parents:
diff changeset
394
Dave Love <fx@gnu.org>
parents:
diff changeset
395 If @file{dired-x.el} was @emph{not} bundled with the version of GNU Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
396 installed at your site (i.e., not in the default @file{../lisp} directory)
Dave Love <fx@gnu.org>
parents:
diff changeset
397 then you must put the file @file{dired-x.el} in a directory known to GNU
Dave Love <fx@gnu.org>
parents:
diff changeset
398 Emacs. Examine the variable @code{load-path} for a list of these directories.
Dave Love <fx@gnu.org>
parents:
diff changeset
399 If you wish to add a new directory on this list of directories use something
Dave Love <fx@gnu.org>
parents:
diff changeset
400 like this in your @file{.emacs} file
Dave Love <fx@gnu.org>
parents:
diff changeset
401
Dave Love <fx@gnu.org>
parents:
diff changeset
402 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
403 ;;; LOAD PATH
Dave Love <fx@gnu.org>
parents:
diff changeset
404 (setq load-path (append
Dave Love <fx@gnu.org>
parents:
diff changeset
405 load-path ; default at top
Dave Love <fx@gnu.org>
parents:
diff changeset
406 (list
Dave Love <fx@gnu.org>
parents:
diff changeset
407 "/the/directory/where/you/put/dired-x")))
Dave Love <fx@gnu.org>
parents:
diff changeset
408 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
409
Dave Love <fx@gnu.org>
parents:
diff changeset
410 @noindent If you wish to put the new directory at the head of the list (where
Dave Love <fx@gnu.org>
parents:
diff changeset
411 it will be found first) then you should use instead
Dave Love <fx@gnu.org>
parents:
diff changeset
412
Dave Love <fx@gnu.org>
parents:
diff changeset
413 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
414 ;;; LOAD PATH
Dave Love <fx@gnu.org>
parents:
diff changeset
415 (setq load-path (append
Dave Love <fx@gnu.org>
parents:
diff changeset
416 (list
Dave Love <fx@gnu.org>
parents:
diff changeset
417 "/the/directory/where/you/put/dired-x")
Dave Love <fx@gnu.org>
parents:
diff changeset
418 load-path)) ; default at bottom
Dave Love <fx@gnu.org>
parents:
diff changeset
419 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
420
Dave Love <fx@gnu.org>
parents:
diff changeset
421 You must also byte compile the file (for example, hitting @kbd{B} in
Dave Love <fx@gnu.org>
parents:
diff changeset
422 @code{dired-mode}). When byte-compiling @file{dired-x.el} you may get
Dave Love <fx@gnu.org>
parents:
diff changeset
423 messages about functions @code{vm-visit-folder}, @code{Man-notify-when-ready},
Dave Love <fx@gnu.org>
parents:
diff changeset
424 and @code{reporter-submit-bug-report} not being defined. These are warnings
Dave Love <fx@gnu.org>
parents:
diff changeset
425 and should be ignored.
Dave Love <fx@gnu.org>
parents:
diff changeset
426
Dave Love <fx@gnu.org>
parents:
diff changeset
427 @noindent CAUTION: If you are using a version of GNU Emacs earlier than 19.20
Dave Love <fx@gnu.org>
parents:
diff changeset
428 than you may have to edit @file{dired.el}. The copy of @file{dired.el} in GNU
Dave Love <fx@gnu.org>
parents:
diff changeset
429 Emacs versions earlier than 19.20 incorrectly had the call to @code{run-hooks}
Dave Love <fx@gnu.org>
parents:
diff changeset
430 @emph{before} the call to @code{provide}. In such a case, it is possible that
Dave Love <fx@gnu.org>
parents:
diff changeset
431 byte-compiling and/or loading dired can cause an infinite loop. To prevent
Dave Love <fx@gnu.org>
parents:
diff changeset
432 this, make sure the line of code
Dave Love <fx@gnu.org>
parents:
diff changeset
433
Dave Love <fx@gnu.org>
parents:
diff changeset
434 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
435 (run-hooks 'dired-load-hook)
Dave Love <fx@gnu.org>
parents:
diff changeset
436 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
437
Dave Love <fx@gnu.org>
parents:
diff changeset
438 @noindent is the @emph{last} executable line in the file @file{dired.el}.
Dave Love <fx@gnu.org>
parents:
diff changeset
439 That is, make sure it comes @emph{after} the line
Dave Love <fx@gnu.org>
parents:
diff changeset
440
Dave Love <fx@gnu.org>
parents:
diff changeset
441 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
442 (provide 'dired)
Dave Love <fx@gnu.org>
parents:
diff changeset
443 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
444
Dave Love <fx@gnu.org>
parents:
diff changeset
445 @node Omitting Files in Dired, Omitting Variables, Special Notes, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
446 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
447 @chapter Omitting Files in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
448
Dave Love <fx@gnu.org>
parents:
diff changeset
449 @cindex Omitting Files in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
450 @dfn{Omitting} a file means removing it from the directory listing. Omitting
Dave Love <fx@gnu.org>
parents:
diff changeset
451 is useful for keeping Dired buffers free of ``uninteresting'' files (for
Dave Love <fx@gnu.org>
parents:
diff changeset
452 instance, auto-save, auxiliary, backup, and revision control files) so that
Dave Love <fx@gnu.org>
parents:
diff changeset
453 the user can concentrate on the interesting files. Like hidden files, omitted
Dave Love <fx@gnu.org>
parents:
diff changeset
454 files are never seen by Dired. Omitting differs from hiding in several
Dave Love <fx@gnu.org>
parents:
diff changeset
455 respects:
Dave Love <fx@gnu.org>
parents:
diff changeset
456
Dave Love <fx@gnu.org>
parents:
diff changeset
457 @itemize @bullet
Dave Love <fx@gnu.org>
parents:
diff changeset
458
Dave Love <fx@gnu.org>
parents:
diff changeset
459 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
460 Omitting works on individual files, not on directories; an entire directory
Dave Love <fx@gnu.org>
parents:
diff changeset
461 cannot be omitted (though each of its files could be).
Dave Love <fx@gnu.org>
parents:
diff changeset
462
Dave Love <fx@gnu.org>
parents:
diff changeset
463 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
464 Omitting is wholesale; if omitting is turned on for a dired buffer, then all
Dave Love <fx@gnu.org>
parents:
diff changeset
465 uninteresting files listed in that buffer are omitted. The user does not omit
Dave Love <fx@gnu.org>
parents:
diff changeset
466 (or unomit) files one at a time.
Dave Love <fx@gnu.org>
parents:
diff changeset
467
Dave Love <fx@gnu.org>
parents:
diff changeset
468 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
469 Omitting can be automatic; uninteresting file lines in the buffer can be
Dave Love <fx@gnu.org>
parents:
diff changeset
470 removed before the user ever sees them.
Dave Love <fx@gnu.org>
parents:
diff changeset
471
Dave Love <fx@gnu.org>
parents:
diff changeset
472 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
473 Marked files are never omitted.
Dave Love <fx@gnu.org>
parents:
diff changeset
474 @end itemize
Dave Love <fx@gnu.org>
parents:
diff changeset
475
Dave Love <fx@gnu.org>
parents:
diff changeset
476 @table @kbd
Dave Love <fx@gnu.org>
parents:
diff changeset
477 @item M-o
Dave Love <fx@gnu.org>
parents:
diff changeset
478 @kindex M-o
Dave Love <fx@gnu.org>
parents:
diff changeset
479 @findex dired-omit-toggle
Dave Love <fx@gnu.org>
parents:
diff changeset
480 (@code{dired-omit-toggle}) Toggle between displaying and omitting
Dave Love <fx@gnu.org>
parents:
diff changeset
481 ``uninteresting'' files. With a prefix argument, don't toggle and just mark
Dave Love <fx@gnu.org>
parents:
diff changeset
482 the files, but don't actually omit them.
Dave Love <fx@gnu.org>
parents:
diff changeset
483 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
484
Dave Love <fx@gnu.org>
parents:
diff changeset
485 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
486 In order to make Dired Omit work you first need to load @file{dired-x.el}
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
487 inside @code{dired-load-hook} (@pxref{Installation}) and then set
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
488 @code{dired-omit-files-p} in some way (@pxref{Omitting Variables}).
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
489
Dave Love <fx@gnu.org>
parents:
diff changeset
490 @ifinfo
Dave Love <fx@gnu.org>
parents:
diff changeset
491 @menu
Dave Love <fx@gnu.org>
parents:
diff changeset
492 * Omitting Variables::
Dave Love <fx@gnu.org>
parents:
diff changeset
493 * Omitting Examples::
Dave Love <fx@gnu.org>
parents:
diff changeset
494 * Omitting Technical::
Dave Love <fx@gnu.org>
parents:
diff changeset
495 @end menu
Dave Love <fx@gnu.org>
parents:
diff changeset
496 @end ifinfo
Dave Love <fx@gnu.org>
parents:
diff changeset
497
Dave Love <fx@gnu.org>
parents:
diff changeset
498 @node Omitting Variables, Omitting Examples, Omitting Files in Dired, Omitting Files in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
499 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
500
Dave Love <fx@gnu.org>
parents:
diff changeset
501 @section Omitting Variables
Dave Love <fx@gnu.org>
parents:
diff changeset
502
Dave Love <fx@gnu.org>
parents:
diff changeset
503 The following variables can be used to customize omitting.
Dave Love <fx@gnu.org>
parents:
diff changeset
504
Dave Love <fx@gnu.org>
parents:
diff changeset
505 @table @code
Dave Love <fx@gnu.org>
parents:
diff changeset
506
Dave Love <fx@gnu.org>
parents:
diff changeset
507 @vindex dired-omit-files-p
Dave Love <fx@gnu.org>
parents:
diff changeset
508 @item dired-omit-files-p
Dave Love <fx@gnu.org>
parents:
diff changeset
509
Dave Love <fx@gnu.org>
parents:
diff changeset
510 Default: @code{nil}
Dave Love <fx@gnu.org>
parents:
diff changeset
511
Dave Love <fx@gnu.org>
parents:
diff changeset
512 @cindex How to make omitting the default in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
513 If non-@code{nil}, ``uninteresting'' files are not listed. Uninteresting
Dave Love <fx@gnu.org>
parents:
diff changeset
514 files are those whose filenames match regexp @code{dired-omit-files}, plus
Dave Love <fx@gnu.org>
parents:
diff changeset
515 those ending with extensions in @code{dired-omit-extensions}. @kbd{M-o}
Dave Love <fx@gnu.org>
parents:
diff changeset
516 (@code{dired-omit-toggle}) toggles its value, which is buffer-local. Put
Dave Love <fx@gnu.org>
parents:
diff changeset
517
Dave Love <fx@gnu.org>
parents:
diff changeset
518 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
519 (setq dired-omit-files-p t)
Dave Love <fx@gnu.org>
parents:
diff changeset
520 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
521
Dave Love <fx@gnu.org>
parents:
diff changeset
522 inside your @code{dired-mode-hook} to have omitting initially turned on in
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
523 @emph{every} Dired buffer (@pxref{Installation}). You can then use @kbd{M-o} to
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
524 unomit in that buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
525
Dave Love <fx@gnu.org>
parents:
diff changeset
526 To enable omitting automatically only in certain directories one can use Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
527 Local Variables and put
Dave Love <fx@gnu.org>
parents:
diff changeset
528
Dave Love <fx@gnu.org>
parents:
diff changeset
529 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
530 Local Variables:
Dave Love <fx@gnu.org>
parents:
diff changeset
531 dired-omit-files-p: t
Dave Love <fx@gnu.org>
parents:
diff changeset
532 End:
Dave Love <fx@gnu.org>
parents:
diff changeset
533 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
534
Dave Love <fx@gnu.org>
parents:
diff changeset
535 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
536 into a file @file{.dired} (the default value of
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
537 @code{dired-local-variables-file}) in that directory (@pxref{Local Variables}).
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
538
Dave Love <fx@gnu.org>
parents:
diff changeset
539 @table @code
Dave Love <fx@gnu.org>
parents:
diff changeset
540 @findex dired-omit-here-always
Dave Love <fx@gnu.org>
parents:
diff changeset
541 @item dired-omit-here-always
Dave Love <fx@gnu.org>
parents:
diff changeset
542
Dave Love <fx@gnu.org>
parents:
diff changeset
543 This is an interactive function that creates a local variables file exactly
Dave Love <fx@gnu.org>
parents:
diff changeset
544 like the example above (if it does not already exist) in the file
Dave Love <fx@gnu.org>
parents:
diff changeset
545 @code{dired-local-variables-file} in the current directory and then refreshes
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
546 the directory listing (@pxref{Local Variables}).
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
547 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
548
Dave Love <fx@gnu.org>
parents:
diff changeset
549 @vindex dired-omit-files
Dave Love <fx@gnu.org>
parents:
diff changeset
550 @item dired-omit-files
Dave Love <fx@gnu.org>
parents:
diff changeset
551
Dave Love <fx@gnu.org>
parents:
diff changeset
552 Default: @code{"^#\\|\\.$"}
Dave Love <fx@gnu.org>
parents:
diff changeset
553
Dave Love <fx@gnu.org>
parents:
diff changeset
554 Filenames matching this buffer-local regexp will not be displayed.
Dave Love <fx@gnu.org>
parents:
diff changeset
555 This only has effect when @code{dired-omit-files-p} is t.
Dave Love <fx@gnu.org>
parents:
diff changeset
556
Dave Love <fx@gnu.org>
parents:
diff changeset
557 The default value omits the special directories @file{.} and @file{..} and
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
558 autosave files (plus other files ending in ``.'') (@pxref{Omitting Examples}).
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
559
Dave Love <fx@gnu.org>
parents:
diff changeset
560 @vindex dired-omit-extensions
Dave Love <fx@gnu.org>
parents:
diff changeset
561 @item dired-omit-extensions
Dave Love <fx@gnu.org>
parents:
diff changeset
562
Dave Love <fx@gnu.org>
parents:
diff changeset
563 Default: The elements of @code{completion-ignored-extensions} (as defined in
Dave Love <fx@gnu.org>
parents:
diff changeset
564 the file @file{loaddefs.el} of the GNU Emacs distribution),
Dave Love <fx@gnu.org>
parents:
diff changeset
565 @code{dired-latex-unclean-extensions}, @code{dired-bibtex-unclean-extensions}
Dave Love <fx@gnu.org>
parents:
diff changeset
566 and @code{dired-texinfo-unclean-extensions}.
Dave Love <fx@gnu.org>
parents:
diff changeset
567
Dave Love <fx@gnu.org>
parents:
diff changeset
568 If non-@code{nil}, a list of extensions (strings) to omit from Dired listings.
Dave Love <fx@gnu.org>
parents:
diff changeset
569 Its format is the same as that of @code{completion-ignored-extensions}.
Dave Love <fx@gnu.org>
parents:
diff changeset
570
Dave Love <fx@gnu.org>
parents:
diff changeset
571 @vindex dired-omit-localp
Dave Love <fx@gnu.org>
parents:
diff changeset
572 @item dired-omit-localp
Dave Love <fx@gnu.org>
parents:
diff changeset
573
Dave Love <fx@gnu.org>
parents:
diff changeset
574 Default: @code{'no-dir}
Dave Love <fx@gnu.org>
parents:
diff changeset
575
Dave Love <fx@gnu.org>
parents:
diff changeset
576 The @var{localp} argument @code{dired-omit-expunge} passes to
Dave Love <fx@gnu.org>
parents:
diff changeset
577 @code{dired-get-filename}. If it is @code{'no-dir}, omitting is much faster,
Dave Love <fx@gnu.org>
parents:
diff changeset
578 but you can only match against the non-directory part of the filename. Set it
Dave Love <fx@gnu.org>
parents:
diff changeset
579 to @code{nil} if you need to match the whole pathname or @code{t} to match the
Dave Love <fx@gnu.org>
parents:
diff changeset
580 pathname relative to the buffer's top-level directory.
Dave Love <fx@gnu.org>
parents:
diff changeset
581
Dave Love <fx@gnu.org>
parents:
diff changeset
582 @item dired-omit-marker-char
Dave Love <fx@gnu.org>
parents:
diff changeset
583 @vindex dired-omit-marker-char
Dave Love <fx@gnu.org>
parents:
diff changeset
584 @cindex Omitting additional files
Dave Love <fx@gnu.org>
parents:
diff changeset
585 Default: @kbd{C-o}
Dave Love <fx@gnu.org>
parents:
diff changeset
586
Dave Love <fx@gnu.org>
parents:
diff changeset
587 Temporary marker used by by Dired to implement omitting. Should never be used
Dave Love <fx@gnu.org>
parents:
diff changeset
588 as marker by the user or other packages. There is one exception to this rule:
Dave Love <fx@gnu.org>
parents:
diff changeset
589 by doing
Dave Love <fx@gnu.org>
parents:
diff changeset
590
Dave Love <fx@gnu.org>
parents:
diff changeset
591 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
592 (setq dired-mark-keys "\C-o")
Dave Love <fx@gnu.org>
parents:
diff changeset
593 ;; i.e., the value of dired-omit-marker-char
Dave Love <fx@gnu.org>
parents:
diff changeset
594 ;; (which is not defined yet)
Dave Love <fx@gnu.org>
parents:
diff changeset
595 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
596
Dave Love <fx@gnu.org>
parents:
diff changeset
597 anywhere in your @file{~/.emacs}, you will bind the @kbd{C-o} key to insert a
Dave Love <fx@gnu.org>
parents:
diff changeset
598 @kbd{C-o} marker, thus causing these files to be omitted in addition to the
Dave Love <fx@gnu.org>
parents:
diff changeset
599 usually omitted files. Unfortunately the files you omitted manually this way
Dave Love <fx@gnu.org>
parents:
diff changeset
600 will show up again after reverting the buffer, unlike the others.
Dave Love <fx@gnu.org>
parents:
diff changeset
601
Dave Love <fx@gnu.org>
parents:
diff changeset
602 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
603
Dave Love <fx@gnu.org>
parents:
diff changeset
604 @node Omitting Examples, Omitting Technical, Omitting Variables, Omitting Files in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
605 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
606 @section Examples of Omitting Various File Types
Dave Love <fx@gnu.org>
parents:
diff changeset
607
Dave Love <fx@gnu.org>
parents:
diff changeset
608 @itemize @bullet
Dave Love <fx@gnu.org>
parents:
diff changeset
609
Dave Love <fx@gnu.org>
parents:
diff changeset
610 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
611 @cindex RCS files, how to omit them in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
612 @cindex Omitting RCS files in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
613 If you wish to avoid seeing RCS files and the RCS directory, then put
Dave Love <fx@gnu.org>
parents:
diff changeset
614
Dave Love <fx@gnu.org>
parents:
diff changeset
615 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
616 (setq dired-omit-files
Dave Love <fx@gnu.org>
parents:
diff changeset
617 (concat dired-omit-files "\\|^RCS$\\|,v$"))
Dave Love <fx@gnu.org>
parents:
diff changeset
618 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
619 @noindent
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
620 in the @code{dired-load-hook} (@pxref{Installation}). This assumes
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
621 @code{dired-omit-localp} has its default value of @code{'no-dir} to make the
Dave Love <fx@gnu.org>
parents:
diff changeset
622 @code{^}-anchored matches work. As a slower alternative, with
Dave Love <fx@gnu.org>
parents:
diff changeset
623 @code{dired-omit-localp} set to @code{nil}, you can use @code{/} instead of
Dave Love <fx@gnu.org>
parents:
diff changeset
624 @code{^} in the regexp.
Dave Love <fx@gnu.org>
parents:
diff changeset
625
Dave Love <fx@gnu.org>
parents:
diff changeset
626 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
627 @cindex Tib files, how to omit them in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
628 @cindex Omitting tib files in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
629 If you use tib, the bibliography program for use with @TeX{} and La@TeX{}, you
Dave Love <fx@gnu.org>
parents:
diff changeset
630 might want to omit the @file{INDEX} and the @file{-t.tex} files, then put
Dave Love <fx@gnu.org>
parents:
diff changeset
631
Dave Love <fx@gnu.org>
parents:
diff changeset
632 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
633 (setq dired-omit-files
Dave Love <fx@gnu.org>
parents:
diff changeset
634 (concat dired-omit-files "\\|^INDEX$\\|-t\\.tex$"))
Dave Love <fx@gnu.org>
parents:
diff changeset
635 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
636
Dave Love <fx@gnu.org>
parents:
diff changeset
637 @noindent
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
638 in the @code{dired-load-hook} (@pxref{Installation}).
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
639
Dave Love <fx@gnu.org>
parents:
diff changeset
640 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
641 @cindex Dot files, how to omit them in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
642 @cindex Omitting dot files in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
643 If you do not wish to see @samp{dot} files (files starting with a @samp{.}),
Dave Love <fx@gnu.org>
parents:
diff changeset
644 then put
Dave Love <fx@gnu.org>
parents:
diff changeset
645
Dave Love <fx@gnu.org>
parents:
diff changeset
646 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
647 (setq dired-omit-files
Dave Love <fx@gnu.org>
parents:
diff changeset
648 (concat dired-omit-files "\\|^\\..+$"))
Dave Love <fx@gnu.org>
parents:
diff changeset
649 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
650
Dave Love <fx@gnu.org>
parents:
diff changeset
651 @noindent
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
652 in the @code{dired-load-hook} (@pxref{Installation}).
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
653
Dave Love <fx@gnu.org>
parents:
diff changeset
654 @end itemize
Dave Love <fx@gnu.org>
parents:
diff changeset
655
Dave Love <fx@gnu.org>
parents:
diff changeset
656 @node Omitting Technical, Local Variables, Omitting Examples, Omitting Files in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
657 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
658 @section Some Technical Details of Omitting
Dave Love <fx@gnu.org>
parents:
diff changeset
659
Dave Love <fx@gnu.org>
parents:
diff changeset
660 Loading @file{dired-x.el} will install Dired Omit by putting
Dave Love <fx@gnu.org>
parents:
diff changeset
661 @code{dired-omit-expunge} on your @code{dired-after-readin-hook}, and will
Dave Love <fx@gnu.org>
parents:
diff changeset
662 call @code{dired-extra-startup}, which in turn calls @code{dired-omit-startup}
Dave Love <fx@gnu.org>
parents:
diff changeset
663 in your @code{dired-mode-hook}.
Dave Love <fx@gnu.org>
parents:
diff changeset
664
Dave Love <fx@gnu.org>
parents:
diff changeset
665 @node Local Variables, Shell Command Guessing, Omitting Technical, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
666 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
667 @chapter Local Variables for Dired Directories
Dave Love <fx@gnu.org>
parents:
diff changeset
668
Dave Love <fx@gnu.org>
parents:
diff changeset
669 @cindex Local Variables for Dired Directories
Dave Love <fx@gnu.org>
parents:
diff changeset
670 @vindex dired-local-variables-file
Dave Love <fx@gnu.org>
parents:
diff changeset
671 @vindex dired-enable-local-variables
Dave Love <fx@gnu.org>
parents:
diff changeset
672 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
673 When Dired visits a directory, it looks for a file whose name is the value of
Dave Love <fx@gnu.org>
parents:
diff changeset
674 variable @code{dired-local-variables-file} (default: @file{.dired}). If such
Dave Love <fx@gnu.org>
parents:
diff changeset
675 a file is found, Dired will temporarily insert it into the Dired buffer and
Dave Love <fx@gnu.org>
parents:
diff changeset
676 run @code{hack-local-variables}.
Dave Love <fx@gnu.org>
parents:
diff changeset
677
Dave Love <fx@gnu.org>
parents:
diff changeset
678 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
679 For example, if the user puts
Dave Love <fx@gnu.org>
parents:
diff changeset
680
Dave Love <fx@gnu.org>
parents:
diff changeset
681 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
682 Local Variables:
Dave Love <fx@gnu.org>
parents:
diff changeset
683 dired-actual-switches: "-lat"
Dave Love <fx@gnu.org>
parents:
diff changeset
684 dired-omit-files-p: t
Dave Love <fx@gnu.org>
parents:
diff changeset
685 End:
Dave Love <fx@gnu.org>
parents:
diff changeset
686 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
687
Dave Love <fx@gnu.org>
parents:
diff changeset
688 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
689 into a file called @file{.dired} in a directory then when that directory is
Dave Love <fx@gnu.org>
parents:
diff changeset
690 viewed it will be
Dave Love <fx@gnu.org>
parents:
diff changeset
691
Dave Love <fx@gnu.org>
parents:
diff changeset
692 @enumerate
Dave Love <fx@gnu.org>
parents:
diff changeset
693 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
694 sorted by date
Dave Love <fx@gnu.org>
parents:
diff changeset
695 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
696 omitted automatically
Dave Love <fx@gnu.org>
parents:
diff changeset
697 @end enumerate
Dave Love <fx@gnu.org>
parents:
diff changeset
698
Dave Love <fx@gnu.org>
parents:
diff changeset
699 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
700 You can set @code{dired-local-variables-file} to @code{nil} to suppress this.
Dave Love <fx@gnu.org>
parents:
diff changeset
701 The value of @code{dired-enable-local-variables} controls if and how these
Dave Love <fx@gnu.org>
parents:
diff changeset
702 local variables are read. This variable exists so that if may override the
Dave Love <fx@gnu.org>
parents:
diff changeset
703 default value of @code{enable-local-variables}.
Dave Love <fx@gnu.org>
parents:
diff changeset
704
Dave Love <fx@gnu.org>
parents:
diff changeset
705 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
706 Please see the GNU Emacs Manual to learn more about local variables.
Dave Love <fx@gnu.org>
parents:
diff changeset
707 @xref{File Variables,Local Variables in Files,Local Variables in
Dave Love <fx@gnu.org>
parents:
diff changeset
708 Files,emacs,The GNU Emacs Manual}.
Dave Love <fx@gnu.org>
parents:
diff changeset
709
Dave Love <fx@gnu.org>
parents:
diff changeset
710 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
711 The following variables affect Dired Local Variables
Dave Love <fx@gnu.org>
parents:
diff changeset
712
Dave Love <fx@gnu.org>
parents:
diff changeset
713 @table @code
Dave Love <fx@gnu.org>
parents:
diff changeset
714 @vindex dired-local-variables-file
Dave Love <fx@gnu.org>
parents:
diff changeset
715 @item dired-local-variables-file
Dave Love <fx@gnu.org>
parents:
diff changeset
716 Default: @code{".dired"}
Dave Love <fx@gnu.org>
parents:
diff changeset
717
Dave Love <fx@gnu.org>
parents:
diff changeset
718 If non-@code{nil}, filename for local variables for Dired. If Dired finds a
Dave Love <fx@gnu.org>
parents:
diff changeset
719 file with that name in the current directory, it will temporarily insert it
Dave Love <fx@gnu.org>
parents:
diff changeset
720 into the dired buffer and run `hack-local-variables'.
Dave Love <fx@gnu.org>
parents:
diff changeset
721
Dave Love <fx@gnu.org>
parents:
diff changeset
722 @vindex dired-enable-local-variables
Dave Love <fx@gnu.org>
parents:
diff changeset
723 @item dired-enable-local-variables
Dave Love <fx@gnu.org>
parents:
diff changeset
724 Default: @code{t}
Dave Love <fx@gnu.org>
parents:
diff changeset
725
Dave Love <fx@gnu.org>
parents:
diff changeset
726 Controls use of local-variables lists in dired. The value can be @code{t},
Dave Love <fx@gnu.org>
parents:
diff changeset
727 @code{nil}, or something else. A value of @code{t} means local-variables
Dave Love <fx@gnu.org>
parents:
diff changeset
728 lists are obeyed in the @code{dired-local-variables-file}; @code{nil} means
Dave Love <fx@gnu.org>
parents:
diff changeset
729 they are ignored; anything else means query. This variable temporarily
Dave Love <fx@gnu.org>
parents:
diff changeset
730 overrides the value of @code{enable-local-variables} when the Dired Local
Dave Love <fx@gnu.org>
parents:
diff changeset
731 Variables are hacked.
Dave Love <fx@gnu.org>
parents:
diff changeset
732 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
733
Dave Love <fx@gnu.org>
parents:
diff changeset
734 @node Shell Command Guessing, Virtual Dired, Local Variables, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
735 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
736 @chapter Shell Command Guessing
Dave Love <fx@gnu.org>
parents:
diff changeset
737 @cindex Guessing shell commands for files.
Dave Love <fx@gnu.org>
parents:
diff changeset
738
Dave Love <fx@gnu.org>
parents:
diff changeset
739 Based upon the name of a filename, Dired tries to guess what shell
Dave Love <fx@gnu.org>
parents:
diff changeset
740 command you might want to apply to it. For example, if you have point
Dave Love <fx@gnu.org>
parents:
diff changeset
741 on a file named @file{foo.tar} and you press @kbd{!}, Dired will guess
Dave Love <fx@gnu.org>
parents:
diff changeset
742 you want to @samp{tar xvf} it and suggest that as the default shell
Dave Love <fx@gnu.org>
parents:
diff changeset
743 command.
Dave Love <fx@gnu.org>
parents:
diff changeset
744
Dave Love <fx@gnu.org>
parents:
diff changeset
745 The default will be mentioned in brackets and you can type @kbd{M-p} to get
Dave Love <fx@gnu.org>
parents:
diff changeset
746 the default into the minibuffer so that you can edit it, e.g., changing
Dave Love <fx@gnu.org>
parents:
diff changeset
747 @samp{tar xvf} to @samp{tar tvf}. If there are several commands for a given
Dave Love <fx@gnu.org>
parents:
diff changeset
748 file, e.g., @samp{xtex} and @samp{dvips} for a @file{.dvi} file, you can type
Dave Love <fx@gnu.org>
parents:
diff changeset
749 @kbd{M-p} several times to see each of the matching commands.
Dave Love <fx@gnu.org>
parents:
diff changeset
750
Dave Love <fx@gnu.org>
parents:
diff changeset
751 Dired only tries to guess a command for a single file, never for a list
Dave Love <fx@gnu.org>
parents:
diff changeset
752 of marked files.
Dave Love <fx@gnu.org>
parents:
diff changeset
753
Dave Love <fx@gnu.org>
parents:
diff changeset
754 @table @code
Dave Love <fx@gnu.org>
parents:
diff changeset
755 @item dired-guess-shell-alist-default
Dave Love <fx@gnu.org>
parents:
diff changeset
756 @vindex dired-guess-shell-alist-default
Dave Love <fx@gnu.org>
parents:
diff changeset
757 Predefined rules for shell commands. Set this to @code{nil} to turn guessing off.
Dave Love <fx@gnu.org>
parents:
diff changeset
758 The elements of @code{dired-guess-shell-alist-user} (defined by the
Dave Love <fx@gnu.org>
parents:
diff changeset
759 user) will override these rules.@refill
Dave Love <fx@gnu.org>
parents:
diff changeset
760
Dave Love <fx@gnu.org>
parents:
diff changeset
761 @item dired-guess-shell-alist-user
Dave Love <fx@gnu.org>
parents:
diff changeset
762 @vindex dired-guess-shell-alist-user
Dave Love <fx@gnu.org>
parents:
diff changeset
763 If non-@code{nil}, a user-defined alist of file regexps and their suggested
Dave Love <fx@gnu.org>
parents:
diff changeset
764 commands. These rules take precedence over the predefined rules in the
Dave Love <fx@gnu.org>
parents:
diff changeset
765 variable @code{dired-guess-shell-alist-default} (to which they are prepended)
Dave Love <fx@gnu.org>
parents:
diff changeset
766 when @code{dired-do-shell-command} is run).
Dave Love <fx@gnu.org>
parents:
diff changeset
767 @refill
Dave Love <fx@gnu.org>
parents:
diff changeset
768
Dave Love <fx@gnu.org>
parents:
diff changeset
769 Each element of the alist looks like
Dave Love <fx@gnu.org>
parents:
diff changeset
770
Dave Love <fx@gnu.org>
parents:
diff changeset
771 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
772 (@var{regexp} @var{command}@dots{})
Dave Love <fx@gnu.org>
parents:
diff changeset
773 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
774
Dave Love <fx@gnu.org>
parents:
diff changeset
775 where each @var{command} can either be a string or a lisp expression
Dave Love <fx@gnu.org>
parents:
diff changeset
776 that evaluates to a string. If several @var{COMMAND}s are given, all
Dave Love <fx@gnu.org>
parents:
diff changeset
777 will temporarily be pushed on the history.
Dave Love <fx@gnu.org>
parents:
diff changeset
778
Dave Love <fx@gnu.org>
parents:
diff changeset
779 You can set this variable in your @file{~/.emacs}. For example,
Dave Love <fx@gnu.org>
parents:
diff changeset
780 to add rules for @samp{.foo} and @samp{.bar} file extensions, write
Dave Love <fx@gnu.org>
parents:
diff changeset
781
Dave Love <fx@gnu.org>
parents:
diff changeset
782 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
783 (setq dired-guess-shell-alist-user
Dave Love <fx@gnu.org>
parents:
diff changeset
784 (list
Dave Love <fx@gnu.org>
parents:
diff changeset
785 (list "\\.foo$" "@var{foo-command}");; fixed rule
Dave Love <fx@gnu.org>
parents:
diff changeset
786 ;; possibly more rules...
Dave Love <fx@gnu.org>
parents:
diff changeset
787 (list "\\.bar$";; rule with condition test
Dave Love <fx@gnu.org>
parents:
diff changeset
788 '(if @var{condition}
Dave Love <fx@gnu.org>
parents:
diff changeset
789 "@var{bar-command-1}"
Dave Love <fx@gnu.org>
parents:
diff changeset
790 "@var{bar-command-2}"))))
Dave Love <fx@gnu.org>
parents:
diff changeset
791 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
792
Dave Love <fx@gnu.org>
parents:
diff changeset
793 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
794 This will override any predefined rules for the same extensions.
Dave Love <fx@gnu.org>
parents:
diff changeset
795
Dave Love <fx@gnu.org>
parents:
diff changeset
796 @item dired-guess-shell-gnutar
Dave Love <fx@gnu.org>
parents:
diff changeset
797 @vindex dired-guess-shell-gnutar
Dave Love <fx@gnu.org>
parents:
diff changeset
798 @cindex Passing GNU tar its `z' switch.
Dave Love <fx@gnu.org>
parents:
diff changeset
799 Default: @code{nil}
Dave Love <fx@gnu.org>
parents:
diff changeset
800
Dave Love <fx@gnu.org>
parents:
diff changeset
801 If non-@code{nil}, name of the GNU tar executable (e.g., @samp{"tar"} or
Dave Love <fx@gnu.org>
parents:
diff changeset
802 @samp{"gnutar"}). GNU tar's @samp{z} switch is used for compressed tar files.
Dave Love <fx@gnu.org>
parents:
diff changeset
803 If you don't have GNU tar, set this to @code{nil}: a pipe using @samp{zcat} is
Dave Love <fx@gnu.org>
parents:
diff changeset
804 then used.
Dave Love <fx@gnu.org>
parents:
diff changeset
805
Dave Love <fx@gnu.org>
parents:
diff changeset
806 @item dired-guess-shell-gzip-quiet
Dave Love <fx@gnu.org>
parents:
diff changeset
807 @vindex dired-guess-shell-gzip-quiet
Dave Love <fx@gnu.org>
parents:
diff changeset
808 @cindex GNU zip.
Dave Love <fx@gnu.org>
parents:
diff changeset
809 Default: @code{t}
Dave Love <fx@gnu.org>
parents:
diff changeset
810
Dave Love <fx@gnu.org>
parents:
diff changeset
811 A non-@code{nil} value means that @code{-q} is passed to gzip overriding a
Dave Love <fx@gnu.org>
parents:
diff changeset
812 verbose GNU zip's @samp{GZIP} environment variable.
Dave Love <fx@gnu.org>
parents:
diff changeset
813
Dave Love <fx@gnu.org>
parents:
diff changeset
814 @item dired-guess-shell-znew-switches nil
Dave Love <fx@gnu.org>
parents:
diff changeset
815 @vindex dired-guess-shell-znew-switches nil
Dave Love <fx@gnu.org>
parents:
diff changeset
816 @cindex GNU zip.
Dave Love <fx@gnu.org>
parents:
diff changeset
817 Default: @code{nil}
Dave Love <fx@gnu.org>
parents:
diff changeset
818
Dave Love <fx@gnu.org>
parents:
diff changeset
819 A string of switches passed to GNU zip's @file{znew}. An example is
Dave Love <fx@gnu.org>
parents:
diff changeset
820 @samp{"-K"} which will make @file{znew} keep a .Z file when it is smaller than
Dave Love <fx@gnu.org>
parents:
diff changeset
821 the .gz file.
Dave Love <fx@gnu.org>
parents:
diff changeset
822
Dave Love <fx@gnu.org>
parents:
diff changeset
823 @item dired-shell-command-history nil
Dave Love <fx@gnu.org>
parents:
diff changeset
824 @vindex dired-shell-command-history nil
Dave Love <fx@gnu.org>
parents:
diff changeset
825
Dave Love <fx@gnu.org>
parents:
diff changeset
826 History list for commands that read dired-shell commands.
Dave Love <fx@gnu.org>
parents:
diff changeset
827 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
828
Dave Love <fx@gnu.org>
parents:
diff changeset
829 @node Virtual Dired, Advanced Mark Commands, Shell Command Guessing, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
830 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
831 @chapter Virtual Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
832
Dave Love <fx@gnu.org>
parents:
diff changeset
833 @cindex Virtual Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
834 @cindex Perusing ls listings
Dave Love <fx@gnu.org>
parents:
diff changeset
835 @cindex ls listings, how to peruse them in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
836 Using @dfn{Virtual Dired} means putting a buffer with Dired-like
Dave Love <fx@gnu.org>
parents:
diff changeset
837 contents in Dired mode. The files described by the buffer contents need
Dave Love <fx@gnu.org>
parents:
diff changeset
838 not actually exist. This is useful if you want to peruse an @samp{ls -lR}
Dave Love <fx@gnu.org>
parents:
diff changeset
839 output file, for example one you got from an FTP server. You can use
Dave Love <fx@gnu.org>
parents:
diff changeset
840 all motion commands usually available in Dired. You can also use
Dave Love <fx@gnu.org>
parents:
diff changeset
841 it to save a Dired buffer in a file and resume it in a later session.
Dave Love <fx@gnu.org>
parents:
diff changeset
842
Dave Love <fx@gnu.org>
parents:
diff changeset
843 @findex dired-virtual
Dave Love <fx@gnu.org>
parents:
diff changeset
844 @kindex g
Dave Love <fx@gnu.org>
parents:
diff changeset
845 @findex dired-virtual-revert
Dave Love <fx@gnu.org>
parents:
diff changeset
846 Type @kbd{M-x dired-virtual} to put the current buffer into virtual
Dave Love <fx@gnu.org>
parents:
diff changeset
847 Dired mode. You will be prompted for the top level directory of this
Dave Love <fx@gnu.org>
parents:
diff changeset
848 buffer, with a default value guessed from the buffer contents. To
Dave Love <fx@gnu.org>
parents:
diff changeset
849 convert the virtual to a real Dired buffer again, type @kbd{g} (which
Dave Love <fx@gnu.org>
parents:
diff changeset
850 calls @code{dired-virtual-revert}) in the virtual Dired buffer and
Dave Love <fx@gnu.org>
parents:
diff changeset
851 answer @samp{y}. You don't have to do this, though: you can relist
Dave Love <fx@gnu.org>
parents:
diff changeset
852 single subdirectories using @kbd{l} (@code{dired-do-redisplay}) on the subdirectory
Dave Love <fx@gnu.org>
parents:
diff changeset
853 headerline, leaving the buffer in virtual Dired mode all the time.
Dave Love <fx@gnu.org>
parents:
diff changeset
854
Dave Love <fx@gnu.org>
parents:
diff changeset
855 @findex dired-virtual-mode
Dave Love <fx@gnu.org>
parents:
diff changeset
856 @vindex auto-mode-alist
Dave Love <fx@gnu.org>
parents:
diff changeset
857 The function @samp{dired-virtual-mode} is specially designed to turn on
Dave Love <fx@gnu.org>
parents:
diff changeset
858 virtual Dired mode from the @code{auto-mode-alist}. To edit all
Dave Love <fx@gnu.org>
parents:
diff changeset
859 @file{*.dired} files automatically in virtual Dired mode, put this into your
Dave Love <fx@gnu.org>
parents:
diff changeset
860 @file{~/.emacs}:
Dave Love <fx@gnu.org>
parents:
diff changeset
861
Dave Love <fx@gnu.org>
parents:
diff changeset
862 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
863 (setq auto-mode-alist (cons '("[^/]\\.dired$" . dired-virtual-mode)
Dave Love <fx@gnu.org>
parents:
diff changeset
864 auto-mode-alist))
Dave Love <fx@gnu.org>
parents:
diff changeset
865 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
866
Dave Love <fx@gnu.org>
parents:
diff changeset
867 The regexp is a bit more complicated than usual to exclude ".dired"
Dave Love <fx@gnu.org>
parents:
diff changeset
868 local variable files.
Dave Love <fx@gnu.org>
parents:
diff changeset
869
Dave Love <fx@gnu.org>
parents:
diff changeset
870 @node Advanced Mark Commands, Advanced Cleaning Functions, Virtual Dired, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
871 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
872 @chapter Advanced Mark Commands
Dave Love <fx@gnu.org>
parents:
diff changeset
873
Dave Love <fx@gnu.org>
parents:
diff changeset
874 @table @kbd
Dave Love <fx@gnu.org>
parents:
diff changeset
875 @item F
Dave Love <fx@gnu.org>
parents:
diff changeset
876 @kindex F
Dave Love <fx@gnu.org>
parents:
diff changeset
877 @cindex Visiting several files at once
Dave Love <fx@gnu.org>
parents:
diff changeset
878 @cindex Simultaneous visiting of several files
Dave Love <fx@gnu.org>
parents:
diff changeset
879 @findex dired-do-find-marked-files
Dave Love <fx@gnu.org>
parents:
diff changeset
880 (@code{dired-do-find-marked-files}) Find all marked files at once displaying
Dave Love <fx@gnu.org>
parents:
diff changeset
881 simultaneously. If optional NOSELECT is non-@code{nil} then just find the
Dave Love <fx@gnu.org>
parents:
diff changeset
882 files but do not select. If you want to keep the dired buffer displayed, type
Dave Love <fx@gnu.org>
parents:
diff changeset
883 @kbd{C-x 2} first. If you want just the marked files displayed and nothing
Dave Love <fx@gnu.org>
parents:
diff changeset
884 else, type @kbd{C-x 1} first.
Dave Love <fx@gnu.org>
parents:
diff changeset
885
Dave Love <fx@gnu.org>
parents:
diff changeset
886 The current window is split across all files marked, as evenly as possible.
Dave Love <fx@gnu.org>
parents:
diff changeset
887 Remaining lines go to the bottom-most window. The number of files that can be
Dave Love <fx@gnu.org>
parents:
diff changeset
888 displayed this way is restricted by the height of the current window and the
Dave Love <fx@gnu.org>
parents:
diff changeset
889 variable @code{window-min-height}.
Dave Love <fx@gnu.org>
parents:
diff changeset
890 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
891
Dave Love <fx@gnu.org>
parents:
diff changeset
892 @table @code
Dave Love <fx@gnu.org>
parents:
diff changeset
893 @item dired-mark-extension
Dave Love <fx@gnu.org>
parents:
diff changeset
894 @findex dired-mark-extension
Dave Love <fx@gnu.org>
parents:
diff changeset
895 Mark all files with a certain extension for use in later commands. A @samp{.}
Dave Love <fx@gnu.org>
parents:
diff changeset
896 is not automatically prepended to the string entered.
Dave Love <fx@gnu.org>
parents:
diff changeset
897
Dave Love <fx@gnu.org>
parents:
diff changeset
898 When called from lisp, @var{extension} may also be a list of extensions
Dave Love <fx@gnu.org>
parents:
diff changeset
899 and an optional argument @var{marker-char} specifies the marker used.
Dave Love <fx@gnu.org>
parents:
diff changeset
900
Dave Love <fx@gnu.org>
parents:
diff changeset
901 @item dired-flag-extension
Dave Love <fx@gnu.org>
parents:
diff changeset
902 @findex dired-flag-extension
Dave Love <fx@gnu.org>
parents:
diff changeset
903 Flag all files with a certain extension for deletion. A @samp{.} is
Dave Love <fx@gnu.org>
parents:
diff changeset
904 @emph{not} automatically prepended to the string entered.
Dave Love <fx@gnu.org>
parents:
diff changeset
905 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
906
Dave Love <fx@gnu.org>
parents:
diff changeset
907 @ifinfo
Dave Love <fx@gnu.org>
parents:
diff changeset
908 @menu
Dave Love <fx@gnu.org>
parents:
diff changeset
909 * Advanced Cleaning Functions::
Dave Love <fx@gnu.org>
parents:
diff changeset
910 * Advanced Cleaning Variables::
Dave Love <fx@gnu.org>
parents:
diff changeset
911 * Special Marking Function::
Dave Love <fx@gnu.org>
parents:
diff changeset
912 @end menu
Dave Love <fx@gnu.org>
parents:
diff changeset
913 @end ifinfo
Dave Love <fx@gnu.org>
parents:
diff changeset
914
Dave Love <fx@gnu.org>
parents:
diff changeset
915 @node Advanced Cleaning Functions, Advanced Cleaning Variables, Advanced Mark Commands, Advanced Mark Commands
Dave Love <fx@gnu.org>
parents:
diff changeset
916 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
917
Dave Love <fx@gnu.org>
parents:
diff changeset
918 @section Advanced Cleaning Functions
Dave Love <fx@gnu.org>
parents:
diff changeset
919
Dave Love <fx@gnu.org>
parents:
diff changeset
920 @table @code
Dave Love <fx@gnu.org>
parents:
diff changeset
921 @item dired-clean-patch
Dave Love <fx@gnu.org>
parents:
diff changeset
922 @findex dired-clean-patch
Dave Love <fx@gnu.org>
parents:
diff changeset
923 Flag dispensable files created by the @samp{patch} program for deletion. See
Dave Love <fx@gnu.org>
parents:
diff changeset
924 variable @code{dired-patch-unclean-extensions}.
Dave Love <fx@gnu.org>
parents:
diff changeset
925
Dave Love <fx@gnu.org>
parents:
diff changeset
926 @item dired-clean-tex
Dave Love <fx@gnu.org>
parents:
diff changeset
927 @findex dired-clean-tex
Dave Love <fx@gnu.org>
parents:
diff changeset
928 Flag dispensable files created by @TeX{}, La@TeX{}, and @samp{texinfo} for
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
929 deletion. See the following variables (@pxref{Advanced Cleaning Variables}):
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
930
Dave Love <fx@gnu.org>
parents:
diff changeset
931 @itemize @bullet
Dave Love <fx@gnu.org>
parents:
diff changeset
932 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
933 @code{dired-tex-unclean-extensions}
Dave Love <fx@gnu.org>
parents:
diff changeset
934 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
935 @code{dired-texinfo-unclean-extensions}
Dave Love <fx@gnu.org>
parents:
diff changeset
936 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
937 @code{dired-latex-unclean-extensions}
Dave Love <fx@gnu.org>
parents:
diff changeset
938 @item
Dave Love <fx@gnu.org>
parents:
diff changeset
939 @code{dired-bibtex-unclean-extensions}
Dave Love <fx@gnu.org>
parents:
diff changeset
940 @end itemize
Dave Love <fx@gnu.org>
parents:
diff changeset
941
Dave Love <fx@gnu.org>
parents:
diff changeset
942 @item dired-very-clean-tex
Dave Love <fx@gnu.org>
parents:
diff changeset
943 @findex dired-very-clean-tex
Dave Love <fx@gnu.org>
parents:
diff changeset
944 Flag dispensable files created by @TeX{}, La@TeX{}, @samp{texinfo}, and ".dvi"
Dave Love <fx@gnu.org>
parents:
diff changeset
945 files for deletion.
Dave Love <fx@gnu.org>
parents:
diff changeset
946 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
947
Dave Love <fx@gnu.org>
parents:
diff changeset
948 @node Advanced Cleaning Variables, Special Marking Function, Advanced Cleaning Functions, Advanced Mark Commands
Dave Love <fx@gnu.org>
parents:
diff changeset
949 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
950
Dave Love <fx@gnu.org>
parents:
diff changeset
951 @section Advanced Cleaning Variables
Dave Love <fx@gnu.org>
parents:
diff changeset
952
Dave Love <fx@gnu.org>
parents:
diff changeset
953 @noindent Variables used by the above cleaning commands (and in the default value for
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
954 variable @code{dired-omit-extensions}, @pxref{Omitting Variables})
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
955
Dave Love <fx@gnu.org>
parents:
diff changeset
956 @table @code
Dave Love <fx@gnu.org>
parents:
diff changeset
957 @item dired-patch-unclean-extensions
Dave Love <fx@gnu.org>
parents:
diff changeset
958 @vindex dired-patch-unclean-extensions
Dave Love <fx@gnu.org>
parents:
diff changeset
959 Default: @code{'(".rej" ".orig")}
Dave Love <fx@gnu.org>
parents:
diff changeset
960
Dave Love <fx@gnu.org>
parents:
diff changeset
961 List of extensions of dispensable files created by the @samp{patch} program.
Dave Love <fx@gnu.org>
parents:
diff changeset
962
Dave Love <fx@gnu.org>
parents:
diff changeset
963 @item dired-tex-unclean-extensions
Dave Love <fx@gnu.org>
parents:
diff changeset
964 @vindex dired-tex-unclean-extensions
Dave Love <fx@gnu.org>
parents:
diff changeset
965 Default: @code{'(".toc" ".log" ".aux")}
Dave Love <fx@gnu.org>
parents:
diff changeset
966
Dave Love <fx@gnu.org>
parents:
diff changeset
967 List of extensions of dispensable files created by @TeX{}.
Dave Love <fx@gnu.org>
parents:
diff changeset
968
Dave Love <fx@gnu.org>
parents:
diff changeset
969 @item dired-texinfo-unclean-extensions
Dave Love <fx@gnu.org>
parents:
diff changeset
970 @vindex dired-texinfo-unclean-extensions
Dave Love <fx@gnu.org>
parents:
diff changeset
971 Default: @code{'(".cp" ".cps" ".fn" ".fns" ".ky" ".kys"}
Dave Love <fx@gnu.org>
parents:
diff changeset
972 @code{".pg" ".pgs" ".tp" ".tps" ".vr" ".vrs")}
Dave Love <fx@gnu.org>
parents:
diff changeset
973
Dave Love <fx@gnu.org>
parents:
diff changeset
974 List of extensions of dispensable files created by @samp{texinfo}.
Dave Love <fx@gnu.org>
parents:
diff changeset
975
Dave Love <fx@gnu.org>
parents:
diff changeset
976 @item dired-latex-unclean-extensions
Dave Love <fx@gnu.org>
parents:
diff changeset
977 @vindex dired-latex-unclean-extensions
Dave Love <fx@gnu.org>
parents:
diff changeset
978 Default: @code{'(".idx" ".lof" ".lot" ".glo")}
Dave Love <fx@gnu.org>
parents:
diff changeset
979
Dave Love <fx@gnu.org>
parents:
diff changeset
980 List of extensions of dispensable files created by La@TeX{}.
Dave Love <fx@gnu.org>
parents:
diff changeset
981
Dave Love <fx@gnu.org>
parents:
diff changeset
982 @item dired-bibtex-unclean-extensions
Dave Love <fx@gnu.org>
parents:
diff changeset
983 @vindex dired-bibtex-unclean-extensions
Dave Love <fx@gnu.org>
parents:
diff changeset
984 Default: @code{'(".blg" ".bbl")}
Dave Love <fx@gnu.org>
parents:
diff changeset
985
Dave Love <fx@gnu.org>
parents:
diff changeset
986 List of extensions of dispensable files created by Bib@TeX{}.
Dave Love <fx@gnu.org>
parents:
diff changeset
987 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
988
Dave Love <fx@gnu.org>
parents:
diff changeset
989 @node Special Marking Function, Multiple Dired Directories, Advanced Cleaning Variables, Advanced Mark Commands
Dave Love <fx@gnu.org>
parents:
diff changeset
990 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
991
Dave Love <fx@gnu.org>
parents:
diff changeset
992 @section Special Marking Function
Dave Love <fx@gnu.org>
parents:
diff changeset
993
Dave Love <fx@gnu.org>
parents:
diff changeset
994 @table @kbd
Dave Love <fx@gnu.org>
parents:
diff changeset
995 @item M-(
Dave Love <fx@gnu.org>
parents:
diff changeset
996 @kindex M-(
Dave Love <fx@gnu.org>
parents:
diff changeset
997 @findex dired-mark-sexp
Dave Love <fx@gnu.org>
parents:
diff changeset
998 @cindex Lisp expression, marking files with in Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
999 @cindex Mark file by lisp expression
Dave Love <fx@gnu.org>
parents:
diff changeset
1000 (@code{dired-mark-sexp}) Mark files for which @var{predicate} returns
Dave Love <fx@gnu.org>
parents:
diff changeset
1001 non-@code{nil}. With a prefix argument, unflag those files instead.
Dave Love <fx@gnu.org>
parents:
diff changeset
1002
Dave Love <fx@gnu.org>
parents:
diff changeset
1003 The @var{predicate} is a lisp expression that can refer to the following
Dave Love <fx@gnu.org>
parents:
diff changeset
1004 symbols:
Dave Love <fx@gnu.org>
parents:
diff changeset
1005 @table @code
Dave Love <fx@gnu.org>
parents:
diff changeset
1006 @item inode
Dave Love <fx@gnu.org>
parents:
diff changeset
1007 [@i{integer}] the inode of the file (only for @samp{ls -i} output)
Dave Love <fx@gnu.org>
parents:
diff changeset
1008 @item s
Dave Love <fx@gnu.org>
parents:
diff changeset
1009 [@i{integer}] the size of the file for @samp{ls -s} output (usually in blocks or,
Dave Love <fx@gnu.org>
parents:
diff changeset
1010 with @samp{-k}, in KBytes)
Dave Love <fx@gnu.org>
parents:
diff changeset
1011 @item mode
Dave Love <fx@gnu.org>
parents:
diff changeset
1012 [@i{string}] file permission bits, e.g., @samp{"-rw-r--r--"}
Dave Love <fx@gnu.org>
parents:
diff changeset
1013 @item nlink
Dave Love <fx@gnu.org>
parents:
diff changeset
1014 [@i{integer}] number of links to file
Dave Love <fx@gnu.org>
parents:
diff changeset
1015 @item uid
Dave Love <fx@gnu.org>
parents:
diff changeset
1016 [@i{string}] owner
Dave Love <fx@gnu.org>
parents:
diff changeset
1017 @item gid
Dave Love <fx@gnu.org>
parents:
diff changeset
1018 [@i{string}] group (If the gid is not displayed by @samp{ls}, this
Dave Love <fx@gnu.org>
parents:
diff changeset
1019 will still be set (to the same as uid))
Dave Love <fx@gnu.org>
parents:
diff changeset
1020 @item size
Dave Love <fx@gnu.org>
parents:
diff changeset
1021 [@i{integer}] file size in bytes
Dave Love <fx@gnu.org>
parents:
diff changeset
1022 @item time
Dave Love <fx@gnu.org>
parents:
diff changeset
1023 [@i{string}] the time that @samp{ls} displays, e.g., @samp{"Feb 12 14:17"}
Dave Love <fx@gnu.org>
parents:
diff changeset
1024 @item name
Dave Love <fx@gnu.org>
parents:
diff changeset
1025 [@i{string}] the name of the file
Dave Love <fx@gnu.org>
parents:
diff changeset
1026 @item sym
Dave Love <fx@gnu.org>
parents:
diff changeset
1027 [@i{string}] if file is a symbolic link, the linked-to name, else @samp{""}
Dave Love <fx@gnu.org>
parents:
diff changeset
1028 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
1029
Dave Love <fx@gnu.org>
parents:
diff changeset
1030 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
1031 For example, use
Dave Love <fx@gnu.org>
parents:
diff changeset
1032 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
1033 (equal 0 size)
Dave Love <fx@gnu.org>
parents:
diff changeset
1034 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
1035 to mark all zero length files.
Dave Love <fx@gnu.org>
parents:
diff changeset
1036
Dave Love <fx@gnu.org>
parents:
diff changeset
1037 To find out all not yet compiled Emacs lisp files in a directory, dired
Dave Love <fx@gnu.org>
parents:
diff changeset
1038 all @file{.el} files in the lisp directory using the wildcard
Dave Love <fx@gnu.org>
parents:
diff changeset
1039 @samp{*.el}. Then use @kbd{M-(} with
Dave Love <fx@gnu.org>
parents:
diff changeset
1040 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
1041 (not (file-exists-p (concat name "c")))
Dave Love <fx@gnu.org>
parents:
diff changeset
1042 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
1043 to mark all @file{.el} files without a corresponding @file{.elc} file.
Dave Love <fx@gnu.org>
parents:
diff changeset
1044
Dave Love <fx@gnu.org>
parents:
diff changeset
1045 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
1046
Dave Love <fx@gnu.org>
parents:
diff changeset
1047 @node Multiple Dired Directories, Find File At Point, Special Marking Function, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
1048 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
1049 @chapter Multiple Dired Directories and Non-Dired Commands
Dave Love <fx@gnu.org>
parents:
diff changeset
1050
Dave Love <fx@gnu.org>
parents:
diff changeset
1051 @cindex Multiple Dired directories
Dave Love <fx@gnu.org>
parents:
diff changeset
1052 @cindex Working directory
Dave Love <fx@gnu.org>
parents:
diff changeset
1053 An Emacs buffer can have but one working directory, stored in the
Dave Love <fx@gnu.org>
parents:
diff changeset
1054 buffer-local variable @code{default-directory}. A Dired buffer may have
Dave Love <fx@gnu.org>
parents:
diff changeset
1055 several subdirectories inserted, but still has but one working
Dave Love <fx@gnu.org>
parents:
diff changeset
1056 directory: that of the top level Dired directory in that buffer. For
Dave Love <fx@gnu.org>
parents:
diff changeset
1057 some commands it is appropriate that they use the current Dired
Dave Love <fx@gnu.org>
parents:
diff changeset
1058 directory instead of @code{default-directory}, e.g., @code{find-file} and
Dave Love <fx@gnu.org>
parents:
diff changeset
1059 @code{compile}.
Dave Love <fx@gnu.org>
parents:
diff changeset
1060
Dave Love <fx@gnu.org>
parents:
diff changeset
1061 A general mechanism is provided for special handling of the working
Dave Love <fx@gnu.org>
parents:
diff changeset
1062 directory in special major modes:
Dave Love <fx@gnu.org>
parents:
diff changeset
1063
Dave Love <fx@gnu.org>
parents:
diff changeset
1064 @table @code
Dave Love <fx@gnu.org>
parents:
diff changeset
1065 @item default-directory-alist
Dave Love <fx@gnu.org>
parents:
diff changeset
1066 @vindex default-directory-alist
Dave Love <fx@gnu.org>
parents:
diff changeset
1067 Default: @code{((dired-mode . (dired-current-directory)))}
Dave Love <fx@gnu.org>
parents:
diff changeset
1068
Dave Love <fx@gnu.org>
parents:
diff changeset
1069 Alist of major modes and their opinion on @code{default-directory}, as a
Dave Love <fx@gnu.org>
parents:
diff changeset
1070 lisp expression to evaluate. A resulting value of @code{nil} is ignored
Dave Love <fx@gnu.org>
parents:
diff changeset
1071 in favor of @code{default-directory}.
Dave Love <fx@gnu.org>
parents:
diff changeset
1072
Dave Love <fx@gnu.org>
parents:
diff changeset
1073 @item default-directory
Dave Love <fx@gnu.org>
parents:
diff changeset
1074 @findex default-directory
Dave Love <fx@gnu.org>
parents:
diff changeset
1075 Function with usage like variable @code{default-directory}, but knows about the
Dave Love <fx@gnu.org>
parents:
diff changeset
1076 special cases in variable @code{default-directory-alist}.
Dave Love <fx@gnu.org>
parents:
diff changeset
1077 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
1078
Dave Love <fx@gnu.org>
parents:
diff changeset
1079 @node Find File At Point, Miscellaneous Commands, Multiple Dired Directories, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
1080 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
1081
Dave Love <fx@gnu.org>
parents:
diff changeset
1082 @section Find File At Point
Dave Love <fx@gnu.org>
parents:
diff changeset
1083 @cindex Visiting a file mentioned in a buffer
Dave Love <fx@gnu.org>
parents:
diff changeset
1084 @cindex Finding a file at point
Dave Love <fx@gnu.org>
parents:
diff changeset
1085
Dave Love <fx@gnu.org>
parents:
diff changeset
1086 @file{dired-x} provides a method of visiting or editing a file mentioned in
Dave Love <fx@gnu.org>
parents:
diff changeset
1087 the buffer you are viewing (e.g., a mail buffer, a news article, a README
Dave Love <fx@gnu.org>
parents:
diff changeset
1088 file, etc.) or to test if that file exists. You can then modify this in the
Dave Love <fx@gnu.org>
parents:
diff changeset
1089 minibuffer after snatching the filename.
Dave Love <fx@gnu.org>
parents:
diff changeset
1090
Dave Love <fx@gnu.org>
parents:
diff changeset
1091 When installed @file{dired-x} will substitute @code{dired-x-find-file} for
Dave Love <fx@gnu.org>
parents:
diff changeset
1092 @code{find-file} (normally bound to @kbd{C-x C-f}) and
Dave Love <fx@gnu.org>
parents:
diff changeset
1093 @code{dired-x-find-file-other-window} for @code{find-file-other-window}
Dave Love <fx@gnu.org>
parents:
diff changeset
1094 (normally bound to @kbd{C-x 4 C-f}).
Dave Love <fx@gnu.org>
parents:
diff changeset
1095
Dave Love <fx@gnu.org>
parents:
diff changeset
1096 In order to use this feature, you will need to set
Dave Love <fx@gnu.org>
parents:
diff changeset
1097 @code{dired-x-hands-off-my-keys} to @code{nil} inside @code{dired-load-hook}
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
1098 (@pxref{Optional Installation File At Point}).
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
1099
Dave Love <fx@gnu.org>
parents:
diff changeset
1100 @table @code
Dave Love <fx@gnu.org>
parents:
diff changeset
1101 @item dired-x-find-file
Dave Love <fx@gnu.org>
parents:
diff changeset
1102 @findex dired-x-find-file
Dave Love <fx@gnu.org>
parents:
diff changeset
1103 @kindex C-x C-f
Dave Love <fx@gnu.org>
parents:
diff changeset
1104
Dave Love <fx@gnu.org>
parents:
diff changeset
1105 @code{dired-x-find-file} behaves exactly like @code{find-file} (normally bound
Dave Love <fx@gnu.org>
parents:
diff changeset
1106 to @kbd{C-x C-f}) unless a prefix argument is passed to the function in which
Dave Love <fx@gnu.org>
parents:
diff changeset
1107 case it will use the filename at point as a guess for the file to visit.
Dave Love <fx@gnu.org>
parents:
diff changeset
1108
Dave Love <fx@gnu.org>
parents:
diff changeset
1109 For example, if the buffer you were reading contained the words
Dave Love <fx@gnu.org>
parents:
diff changeset
1110
Dave Love <fx@gnu.org>
parents:
diff changeset
1111 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
1112 Available via anonymous ftp in
Dave Love <fx@gnu.org>
parents:
diff changeset
1113
Dave Love <fx@gnu.org>
parents:
diff changeset
1114 /roebling.poly.edu:/pub/lisp/crypt++.el.gz
Dave Love <fx@gnu.org>
parents:
diff changeset
1115 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
1116
Dave Love <fx@gnu.org>
parents:
diff changeset
1117 then you could move your cursor to the line containing the ftp address and
Dave Love <fx@gnu.org>
parents:
diff changeset
1118 type @kbd{C-u C-x C-f} (the @kbd{C-u} is a universal argument). The
Dave Love <fx@gnu.org>
parents:
diff changeset
1119 minibuffer would read
Dave Love <fx@gnu.org>
parents:
diff changeset
1120
Dave Love <fx@gnu.org>
parents:
diff changeset
1121 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
1122 Find file: /roebling.poly.edu:/pub/lisp/crypt++.el.gz
Dave Love <fx@gnu.org>
parents:
diff changeset
1123 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
1124
Dave Love <fx@gnu.org>
parents:
diff changeset
1125 with the point after the last @code{/}. If you hit return emacs will visit
Dave Love <fx@gnu.org>
parents:
diff changeset
1126 the file at that address. This also works with files on your own computer.
Dave Love <fx@gnu.org>
parents:
diff changeset
1127
Dave Love <fx@gnu.org>
parents:
diff changeset
1128 @item dired-x-find-file-other-window
Dave Love <fx@gnu.org>
parents:
diff changeset
1129 @findex dired-x-find-file-other-window
Dave Love <fx@gnu.org>
parents:
diff changeset
1130 @kindex C-x 4 C-f
Dave Love <fx@gnu.org>
parents:
diff changeset
1131
Dave Love <fx@gnu.org>
parents:
diff changeset
1132 @code{dired-x-find-file-other-window} behaves exactly like
Dave Love <fx@gnu.org>
parents:
diff changeset
1133 @code{find-file-other-window} (normally bound to @kbd{C-x 4 C-f}) unless a
Dave Love <fx@gnu.org>
parents:
diff changeset
1134 prefix argument is used. See @code{dired-x-find-file} for more information.
Dave Love <fx@gnu.org>
parents:
diff changeset
1135
Dave Love <fx@gnu.org>
parents:
diff changeset
1136 @item dired-x-hands-off-my-keys
Dave Love <fx@gnu.org>
parents:
diff changeset
1137 @vindex dired-x-hands-off-my-keys
Dave Love <fx@gnu.org>
parents:
diff changeset
1138 If set to @code{t}, then it means that @file{dired-x} should @emph{not} bind
Dave Love <fx@gnu.org>
parents:
diff changeset
1139 @code{dired-x-find-file} over @code{find-file} on keyboard. Similarly, it
Dave Love <fx@gnu.org>
parents:
diff changeset
1140 should not bind @code{dired-x-find-file-other-window} over
Dave Love <fx@gnu.org>
parents:
diff changeset
1141 @code{find-file-other-window}. If you change this variable after
Dave Love <fx@gnu.org>
parents:
diff changeset
1142 @file{dired-x.el} is loaded then do @kbd{M-x dired-x-bind-find-file}. The
Dave Love <fx@gnu.org>
parents:
diff changeset
1143 default value of this variable is @kbd{t}; by default, the binding is not
Dave Love <fx@gnu.org>
parents:
diff changeset
1144 done. See @xref{Optional Installation File At Point}.
Dave Love <fx@gnu.org>
parents:
diff changeset
1145
Dave Love <fx@gnu.org>
parents:
diff changeset
1146 @item dired-x-bind-find-file
Dave Love <fx@gnu.org>
parents:
diff changeset
1147 @findex dired-x-bind-find-file
Dave Love <fx@gnu.org>
parents:
diff changeset
1148 A function, which can be called interactively or in your @file{~/.emacs} file,
Dave Love <fx@gnu.org>
parents:
diff changeset
1149 that uses the value of @code{dired-x-hands-off-my-keys} to determine if
Dave Love <fx@gnu.org>
parents:
diff changeset
1150 @code{dired-x-find-file} should be bound over @code{find-file} and
Dave Love <fx@gnu.org>
parents:
diff changeset
1151 @code{dired-x-find-file-other-window} bound over
Dave Love <fx@gnu.org>
parents:
diff changeset
1152 @code{find-file-other-window}. See @xref{Optional Installation File At Point}.
Dave Love <fx@gnu.org>
parents:
diff changeset
1153 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
1154
Dave Love <fx@gnu.org>
parents:
diff changeset
1155 @node Miscellaneous Commands, Bugs, Find File At Point, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
1156 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
1157 @chapter Miscellaneous Commands
Dave Love <fx@gnu.org>
parents:
diff changeset
1158
Dave Love <fx@gnu.org>
parents:
diff changeset
1159 Miscellaneous features not fitting anywhere else:
Dave Love <fx@gnu.org>
parents:
diff changeset
1160
Dave Love <fx@gnu.org>
parents:
diff changeset
1161 @table @code
Dave Love <fx@gnu.org>
parents:
diff changeset
1162 @item dired-find-subdir
Dave Love <fx@gnu.org>
parents:
diff changeset
1163 @vindex dired-find-subdir
Dave Love <fx@gnu.org>
parents:
diff changeset
1164 Default: @code{nil}
Dave Love <fx@gnu.org>
parents:
diff changeset
1165
Dave Love <fx@gnu.org>
parents:
diff changeset
1166 If non-@code{nil}, Dired does not make a new buffer for a directory if it can
Dave Love <fx@gnu.org>
parents:
diff changeset
1167 be found (perhaps as subdirectory) in some existing Dired buffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
1168
Dave Love <fx@gnu.org>
parents:
diff changeset
1169 If there are several Dired buffers for a directory, the most recently
Dave Love <fx@gnu.org>
parents:
diff changeset
1170 used is chosen.
Dave Love <fx@gnu.org>
parents:
diff changeset
1171
Dave Love <fx@gnu.org>
parents:
diff changeset
1172 Dired avoids switching to the current buffer, so that if you have a
Dave Love <fx@gnu.org>
parents:
diff changeset
1173 normal and a wildcard buffer for the same directory, @kbd{C-x d RET}
Dave Love <fx@gnu.org>
parents:
diff changeset
1174 will toggle between those two.
Dave Love <fx@gnu.org>
parents:
diff changeset
1175 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
1176
Dave Love <fx@gnu.org>
parents:
diff changeset
1177 @table @kbd
Dave Love <fx@gnu.org>
parents:
diff changeset
1178 @findex dired-goto-file
Dave Love <fx@gnu.org>
parents:
diff changeset
1179 @kindex M-g
Dave Love <fx@gnu.org>
parents:
diff changeset
1180 @item M-g
Dave Love <fx@gnu.org>
parents:
diff changeset
1181 (@code{dired-goto-file}) Goto file line of a file (or directory).
Dave Love <fx@gnu.org>
parents:
diff changeset
1182
Dave Love <fx@gnu.org>
parents:
diff changeset
1183 @findex dired-goto-subdir
Dave Love <fx@gnu.org>
parents:
diff changeset
1184 @kindex M-G
Dave Love <fx@gnu.org>
parents:
diff changeset
1185 @item M-G
Dave Love <fx@gnu.org>
parents:
diff changeset
1186 (@code{dired-goto-subdir}) Goto headerline of an inserted directory.
Dave Love <fx@gnu.org>
parents:
diff changeset
1187 This commands reads its argument with completion over the names of the
Dave Love <fx@gnu.org>
parents:
diff changeset
1188 inserted subdirectories.
Dave Love <fx@gnu.org>
parents:
diff changeset
1189 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
1190
Dave Love <fx@gnu.org>
parents:
diff changeset
1191 @table @kbd
Dave Love <fx@gnu.org>
parents:
diff changeset
1192 @item w
Dave Love <fx@gnu.org>
parents:
diff changeset
1193 @cindex Adding to the kill ring in dired.
Dave Love <fx@gnu.org>
parents:
diff changeset
1194 @kindex w
Dave Love <fx@gnu.org>
parents:
diff changeset
1195 @findex dired-copy-filename-as-kill
Dave Love <fx@gnu.org>
parents:
diff changeset
1196 (@code{dired-copy-filename-as-kill}) The @kbd{w} command puts the names
Dave Love <fx@gnu.org>
parents:
diff changeset
1197 of the marked (or next @var{N}) files into the kill ring, as if you had
Dave Love <fx@gnu.org>
parents:
diff changeset
1198 killed them with @kbd{C-w}. With a zero prefix argument @var{N}=0, use the
Dave Love <fx@gnu.org>
parents:
diff changeset
1199 complete pathname of each file. With a raw (just @kbd{C-u}) prefix argument,
Dave Love <fx@gnu.org>
parents:
diff changeset
1200 use the relative pathname of each marked file. As a special case, if no
Dave Love <fx@gnu.org>
parents:
diff changeset
1201 prefix argument is given and point is on a directory headerline, it
Dave Love <fx@gnu.org>
parents:
diff changeset
1202 gives you the name of that directory, without looking for marked files.
Dave Love <fx@gnu.org>
parents:
diff changeset
1203
Dave Love <fx@gnu.org>
parents:
diff changeset
1204 @vindex dired-marked-files
Dave Love <fx@gnu.org>
parents:
diff changeset
1205 The list of names is also stored onto the variable @code{dired-marked-files}
Dave Love <fx@gnu.org>
parents:
diff changeset
1206 for use, e.g., in the @kbd{M-:} (@code{eval-expression}) command.
Dave Love <fx@gnu.org>
parents:
diff changeset
1207
Dave Love <fx@gnu.org>
parents:
diff changeset
1208 As this command also displays what was pushed onto the kill ring you can
Dave Love <fx@gnu.org>
parents:
diff changeset
1209 use it to display the list of currently marked files in the
Dave Love <fx@gnu.org>
parents:
diff changeset
1210 echo area (unless you happen to be on a subdirectory headerline).
Dave Love <fx@gnu.org>
parents:
diff changeset
1211
Dave Love <fx@gnu.org>
parents:
diff changeset
1212 You can then feed the file name to other Emacs commands with @kbd{C-y}.
Dave Love <fx@gnu.org>
parents:
diff changeset
1213 For example, say you want to rename a long filename to a slightly
Dave Love <fx@gnu.org>
parents:
diff changeset
1214 different name. First type @kbd{w} to push the old name onto the kill
Dave Love <fx@gnu.org>
parents:
diff changeset
1215 ring. Then type @kbd{R} to rename it and use @kbd{C-y} inside @kbd{R}'s
Dave Love <fx@gnu.org>
parents:
diff changeset
1216 minibuffer prompt to insert the old name at a convenient place.
Dave Love <fx@gnu.org>
parents:
diff changeset
1217
Dave Love <fx@gnu.org>
parents:
diff changeset
1218 @item T
Dave Love <fx@gnu.org>
parents:
diff changeset
1219 @kindex T
Dave Love <fx@gnu.org>
parents:
diff changeset
1220 @cindex Toggling marks.
Dave Love <fx@gnu.org>
parents:
diff changeset
1221 @findex dired-do-toggle
Dave Love <fx@gnu.org>
parents:
diff changeset
1222 (@code{dired-do-toggle}) Toggle marks. That is, currently marked
Dave Love <fx@gnu.org>
parents:
diff changeset
1223 files become unmarked and vice versa. Files marked with other flags
Dave Love <fx@gnu.org>
parents:
diff changeset
1224 (such as `D') are not affected. The special directories `.' and `..'
Dave Love <fx@gnu.org>
parents:
diff changeset
1225 are never toggled.
Dave Love <fx@gnu.org>
parents:
diff changeset
1226 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
1227
Dave Love <fx@gnu.org>
parents:
diff changeset
1228 @table @code
Dave Love <fx@gnu.org>
parents:
diff changeset
1229 @item dired-smart-shell-command
Dave Love <fx@gnu.org>
parents:
diff changeset
1230 @findex dired-smart-shell-command
Dave Love <fx@gnu.org>
parents:
diff changeset
1231 @findex shell-command
Dave Love <fx@gnu.org>
parents:
diff changeset
1232 @kindex M-!
Dave Love <fx@gnu.org>
parents:
diff changeset
1233 Like function @code{shell-command}, but in the current Dired directory.
Dave Love <fx@gnu.org>
parents:
diff changeset
1234 Bound to @kbd{M-!} in Dired buffers.
Dave Love <fx@gnu.org>
parents:
diff changeset
1235
Dave Love <fx@gnu.org>
parents:
diff changeset
1236 @item dired-jump
Dave Love <fx@gnu.org>
parents:
diff changeset
1237 @findex dired-jump
Dave Love <fx@gnu.org>
parents:
diff changeset
1238 @kindex C-x C-j
Dave Love <fx@gnu.org>
parents:
diff changeset
1239 @cindex Jumping to dired listing containing file.
Dave Love <fx@gnu.org>
parents:
diff changeset
1240 Bound to @kbd{C-x C-j}. Jump back to dired: If in a file, dired the current
Dave Love <fx@gnu.org>
parents:
diff changeset
1241 directory and move to file's line. If in Dired already, pop up a level and
Dave Love <fx@gnu.org>
parents:
diff changeset
1242 goto old directory's line. In case the proper Dired file line cannot be
Dave Love <fx@gnu.org>
parents:
diff changeset
1243 found, refresh the Dired buffer and try again.
Dave Love <fx@gnu.org>
parents:
diff changeset
1244
Dave Love <fx@gnu.org>
parents:
diff changeset
1245 @item dired-jump-other-window
Dave Love <fx@gnu.org>
parents:
diff changeset
1246 @findex dired-jump-other-window
Dave Love <fx@gnu.org>
parents:
diff changeset
1247 @kindex C-x 4 C-j
Dave Love <fx@gnu.org>
parents:
diff changeset
1248 Bound to @kbd{C-x 4 C-j}. Like @code{dired-jump}, but to other window.
Dave Love <fx@gnu.org>
parents:
diff changeset
1249
Dave Love <fx@gnu.org>
parents:
diff changeset
1250 These functions can be autoloaded so they work even though @file{dired-x.el}
26468
1c8b8c87db6f Fix makeinfo errors.
Dave Love <fx@gnu.org>
parents: 25829
diff changeset
1251 has not been loaded yet (@pxref{Optional Installation Dired Jump}).
25829
Dave Love <fx@gnu.org>
parents:
diff changeset
1252
Dave Love <fx@gnu.org>
parents:
diff changeset
1253 @vindex dired-bind-jump
Dave Love <fx@gnu.org>
parents:
diff changeset
1254 If the variable @code{dired-bind-jump} is @code{nil}, @code{dired-jump} will not be
Dave Love <fx@gnu.org>
parents:
diff changeset
1255 bound to @kbd{C-x C-j} and @code{dired-jump-other-window} will not be bound to
Dave Love <fx@gnu.org>
parents:
diff changeset
1256 @kbd{C-x 4 C-j}.
Dave Love <fx@gnu.org>
parents:
diff changeset
1257
Dave Love <fx@gnu.org>
parents:
diff changeset
1258 @item dired-vm
Dave Love <fx@gnu.org>
parents:
diff changeset
1259 @cindex Reading mail.
Dave Love <fx@gnu.org>
parents:
diff changeset
1260 @kindex V
Dave Love <fx@gnu.org>
parents:
diff changeset
1261 @findex dired-vm
Dave Love <fx@gnu.org>
parents:
diff changeset
1262 Bound to @kbd{V} if @code{dired-bind-vm} is t. Run VM on this file (assumed
Dave Love <fx@gnu.org>
parents:
diff changeset
1263 to be a UNIX mail folder).
Dave Love <fx@gnu.org>
parents:
diff changeset
1264
Dave Love <fx@gnu.org>
parents:
diff changeset
1265 @vindex dired-vm-read-only-folders
Dave Love <fx@gnu.org>
parents:
diff changeset
1266 If you give this command a prefix argument, it will visit the folder
Dave Love <fx@gnu.org>
parents:
diff changeset
1267 read-only. This only works in VM~5, not VM~4.
Dave Love <fx@gnu.org>
parents:
diff changeset
1268
Dave Love <fx@gnu.org>
parents:
diff changeset
1269 If the variable @code{dired-vm-read-only-folders} is t, @code{dired-vm} will
Dave Love <fx@gnu.org>
parents:
diff changeset
1270 visit all folders read-only. If it is neither @code{nil} nor @code{t}, e.g.,
Dave Love <fx@gnu.org>
parents:
diff changeset
1271 the symbol @code{'if-file-read-only}, only files not writable by you are
Dave Love <fx@gnu.org>
parents:
diff changeset
1272 visited read-only. This is the recommended value if you run VM 5.
Dave Love <fx@gnu.org>
parents:
diff changeset
1273
Dave Love <fx@gnu.org>
parents:
diff changeset
1274 @vindex dired-bind-vm
Dave Love <fx@gnu.org>
parents:
diff changeset
1275 If the variable @code{dired-bind-vm} is t, @code{dired-vm} will be bound to
Dave Love <fx@gnu.org>
parents:
diff changeset
1276 @kbd{V}. Otherwise, @code{dired-bind-rmail} will be bound.
Dave Love <fx@gnu.org>
parents:
diff changeset
1277
Dave Love <fx@gnu.org>
parents:
diff changeset
1278 @item dired-rmail
Dave Love <fx@gnu.org>
parents:
diff changeset
1279 @cindex Reading mail.
Dave Love <fx@gnu.org>
parents:
diff changeset
1280 @findex dired-rmail
Dave Love <fx@gnu.org>
parents:
diff changeset
1281 Bound to @kbd{V} if @code{dired-bind-vm} is @code{nil}. Run Rmail on this
Dave Love <fx@gnu.org>
parents:
diff changeset
1282 file (assumed to be mail folder in Rmail/BABYL format).
Dave Love <fx@gnu.org>
parents:
diff changeset
1283
Dave Love <fx@gnu.org>
parents:
diff changeset
1284 @item dired-info
Dave Love <fx@gnu.org>
parents:
diff changeset
1285 @kindex I
Dave Love <fx@gnu.org>
parents:
diff changeset
1286 @cindex Running info.
Dave Love <fx@gnu.org>
parents:
diff changeset
1287 @findex dired-info
Dave Love <fx@gnu.org>
parents:
diff changeset
1288 Bound to @kbd{I}. Run Info on this file (assumed to be a file in Info
Dave Love <fx@gnu.org>
parents:
diff changeset
1289 format).
Dave Love <fx@gnu.org>
parents:
diff changeset
1290
Dave Love <fx@gnu.org>
parents:
diff changeset
1291 @vindex dired-bind-info
Dave Love <fx@gnu.org>
parents:
diff changeset
1292 If the variable @code{dired-bind-info} is @code{nil}, @code{dired-info} will
Dave Love <fx@gnu.org>
parents:
diff changeset
1293 not be bound to I.
Dave Love <fx@gnu.org>
parents:
diff changeset
1294
Dave Love <fx@gnu.org>
parents:
diff changeset
1295 @item dired-man
Dave Love <fx@gnu.org>
parents:
diff changeset
1296 @cindex Running man.
Dave Love <fx@gnu.org>
parents:
diff changeset
1297 @kindex N
Dave Love <fx@gnu.org>
parents:
diff changeset
1298 @findex dired-man
Dave Love <fx@gnu.org>
parents:
diff changeset
1299 Bound to @kbd{N}. Run man on this file (assumed to be a file in nroff
Dave Love <fx@gnu.org>
parents:
diff changeset
1300 format).
Dave Love <fx@gnu.org>
parents:
diff changeset
1301
Dave Love <fx@gnu.org>
parents:
diff changeset
1302 @vindex dired-bind-man
Dave Love <fx@gnu.org>
parents:
diff changeset
1303 If the variable @code{dired-bind-man} is @code{nil}, @code{dired-man} will not
Dave Love <fx@gnu.org>
parents:
diff changeset
1304 be bound to N.
Dave Love <fx@gnu.org>
parents:
diff changeset
1305
Dave Love <fx@gnu.org>
parents:
diff changeset
1306 @item dired-do-relative-symlink
Dave Love <fx@gnu.org>
parents:
diff changeset
1307 @cindex Relative symbolic links.
Dave Love <fx@gnu.org>
parents:
diff changeset
1308 @kindex Y
Dave Love <fx@gnu.org>
parents:
diff changeset
1309 @findex dired-do-relative-symlink
Dave Love <fx@gnu.org>
parents:
diff changeset
1310 Bound to @kbd{Y}. Relative symlink all marked (or next ARG) files into a
Dave Love <fx@gnu.org>
parents:
diff changeset
1311 directory, or make a relative symbolic link to the current file. This creates
Dave Love <fx@gnu.org>
parents:
diff changeset
1312 relative symbolic links like
Dave Love <fx@gnu.org>
parents:
diff changeset
1313
Dave Love <fx@gnu.org>
parents:
diff changeset
1314 foo -> ../bar/foo
Dave Love <fx@gnu.org>
parents:
diff changeset
1315
Dave Love <fx@gnu.org>
parents:
diff changeset
1316 not absolute ones like
Dave Love <fx@gnu.org>
parents:
diff changeset
1317
Dave Love <fx@gnu.org>
parents:
diff changeset
1318 foo -> /ugly/path/that/may/change/any/day/bar/foo
Dave Love <fx@gnu.org>
parents:
diff changeset
1319
Dave Love <fx@gnu.org>
parents:
diff changeset
1320 @item dired-do-relative-symlink-regexp
Dave Love <fx@gnu.org>
parents:
diff changeset
1321 @kindex %Y
Dave Love <fx@gnu.org>
parents:
diff changeset
1322 @findex dired-do-relative-symlink-regexp
Dave Love <fx@gnu.org>
parents:
diff changeset
1323 Bound to @kbd{%Y}. Relative symlink all marked files containing REGEXP to
Dave Love <fx@gnu.org>
parents:
diff changeset
1324 NEWNAME. See functions `dired-do-rename-regexp' and `dired-do-relsymlink' for
Dave Love <fx@gnu.org>
parents:
diff changeset
1325 more info.
Dave Love <fx@gnu.org>
parents:
diff changeset
1326 @end table
Dave Love <fx@gnu.org>
parents:
diff changeset
1327
Dave Love <fx@gnu.org>
parents:
diff changeset
1328 @node Bugs, Concept Index, Miscellaneous Commands, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
1329 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
1330 @chapter Bugs
Dave Love <fx@gnu.org>
parents:
diff changeset
1331 @cindex Bugs
Dave Love <fx@gnu.org>
parents:
diff changeset
1332 @findex dired-x-submit-report
Dave Love <fx@gnu.org>
parents:
diff changeset
1333
Dave Love <fx@gnu.org>
parents:
diff changeset
1334 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
1335 If you encounter a bug in this package, wish to suggest an
Dave Love <fx@gnu.org>
parents:
diff changeset
1336 enhancement, or want to make a smart remark, then type
Dave Love <fx@gnu.org>
parents:
diff changeset
1337
Dave Love <fx@gnu.org>
parents:
diff changeset
1338 @example
Dave Love <fx@gnu.org>
parents:
diff changeset
1339 @kbd{M-x dired-x-submit-report}
Dave Love <fx@gnu.org>
parents:
diff changeset
1340 @end example
Dave Love <fx@gnu.org>
parents:
diff changeset
1341
Dave Love <fx@gnu.org>
parents:
diff changeset
1342 @noindent
Dave Love <fx@gnu.org>
parents:
diff changeset
1343 to set up an outgoing mail buffer, with the proper address to the
Dave Love <fx@gnu.org>
parents:
diff changeset
1344 @file{dired-x.el} maintainer automatically inserted in the @samp{To:@:} field.
Dave Love <fx@gnu.org>
parents:
diff changeset
1345 This command also inserts information that the Dired X maintainer can use to
Dave Love <fx@gnu.org>
parents:
diff changeset
1346 recreate your exact setup, making it easier to verify your bug or social
Dave Love <fx@gnu.org>
parents:
diff changeset
1347 maladjustment.
Dave Love <fx@gnu.org>
parents:
diff changeset
1348
Dave Love <fx@gnu.org>
parents:
diff changeset
1349 Lawrence R. Dodd <dodd@@roebling.poly.edu>
Dave Love <fx@gnu.org>
parents:
diff changeset
1350
Dave Love <fx@gnu.org>
parents:
diff changeset
1351 @node Concept Index, Command Index, Bugs, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
1352 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
1353 @unnumbered Concept Index
Dave Love <fx@gnu.org>
parents:
diff changeset
1354 @printindex cp
Dave Love <fx@gnu.org>
parents:
diff changeset
1355
Dave Love <fx@gnu.org>
parents:
diff changeset
1356 @node Command Index, Key Index, Concept Index, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
1357 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
1358 @unnumbered Function Index
Dave Love <fx@gnu.org>
parents:
diff changeset
1359 @printindex fn
Dave Love <fx@gnu.org>
parents:
diff changeset
1360
Dave Love <fx@gnu.org>
parents:
diff changeset
1361 @node Key Index, Variable Index, Command Index, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
1362 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
1363 @unnumbered Key Index
Dave Love <fx@gnu.org>
parents:
diff changeset
1364 @printindex ky
Dave Love <fx@gnu.org>
parents:
diff changeset
1365
Dave Love <fx@gnu.org>
parents:
diff changeset
1366 @node Variable Index, , Key Index, Top
Dave Love <fx@gnu.org>
parents:
diff changeset
1367 @comment node-name, next, previous, up
Dave Love <fx@gnu.org>
parents:
diff changeset
1368 @unnumbered Variable Index
Dave Love <fx@gnu.org>
parents:
diff changeset
1369 @printindex vr
Dave Love <fx@gnu.org>
parents:
diff changeset
1370
Dave Love <fx@gnu.org>
parents:
diff changeset
1371 @c @summarycontents
Dave Love <fx@gnu.org>
parents:
diff changeset
1372 @contents
Dave Love <fx@gnu.org>
parents:
diff changeset
1373
Dave Love <fx@gnu.org>
parents:
diff changeset
1374 @bye
Dave Love <fx@gnu.org>
parents:
diff changeset
1375 @c dired-x.texi ends here.