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