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