aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorGlenn Morris2011-02-22 19:44:13 -0800
committerGlenn Morris2011-02-22 19:44:13 -0800
commit817b48a7bccb820203ae424aa14c559259a4f355 (patch)
tree62ab20c2bee40ed1e67bea7f5c6ac1aa5ad34a64 /doc/misc
parent5582c6706a68bca9cc9a1215f257cc3fbe573c9a (diff)
downloademacs-817b48a7bccb820203ae424aa14c559259a4f355.tar.gz
emacs-817b48a7bccb820203ae424aa14c559259a4f355.zip
Obsolete dired-x's directory local variables in favor of standard ones.
* lisp/dired.el (dired-mode): Call hack-dir-local-variables-non-file-buffer. * lisp/dired-x.el (dired-omit-mode): Safe if boolean. (dired-enable-local-variables): Fix doc and custom type. Mark risky. (dired-enable-local-variables, dired-local-variables-file) (dired-hack-local-variables): Make obsolete. (dired-omit-here-always): Use dir-locals.el instead. * doc/misc/dired-x.texi (Features): Don't advertise obsolete local variables. Simplify layout. (Omitting Variables): Update local variables example. (Local Variables): Say this is obsolete. Fix description of dired-enable-local-variables possible values. * etc/NEWS: Relocate the existing entry about directory local variables in file-les buffers, and make it clearer. Mention above dired changes.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/ChangeLog8
-rw-r--r--doc/misc/dired-x.texi77
2 files changed, 39 insertions, 46 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 217702b7c0f..67197450a5b 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,11 @@
12011-02-23 Glenn Morris <rgm@gnu.org>
2
3 * dired-x.texi (Features): Don't advertise obsolete local variables.
4 Simplify layout.
5 (Omitting Variables): Update local variables example.
6 (Local Variables): Say this is obsolete. Fix description of
7 dired-enable-local-variables possible values.
8
12011-02-21 Lars Ingebrigtsen <larsi@gnus.org> 92011-02-21 Lars Ingebrigtsen <larsi@gnus.org>
2 10
3 * gnus.texi (Article Date): Clarify gnus-article-update-date-headers. 11 * gnus.texi (Article Date): Clarify gnus-article-update-date-headers.
diff --git a/doc/misc/dired-x.texi b/doc/misc/dired-x.texi
index 003046d5a7c..f7c73237249 100644
--- a/doc/misc/dired-x.texi
+++ b/doc/misc/dired-x.texi
@@ -129,39 +129,24 @@ original @file{dired-x.el}).
129@section Features 129@section Features
130@cindex Features 130@cindex Features
131 131
132Some features provided by Dired Extra 132Some features provided by Dired Extra:
133 133
134@enumerate 134@enumerate
135@item 135@item
136Omitting uninteresting files from Dired listing. 136Omitting uninteresting files from Dired listing
137@itemize @bullet 137(@pxref{Omitting Files in Dired}).
138@xref{Omitting Files in Dired}.
139@end itemize
140@item 138@item
141Local variables for Dired directories. 139Guessing shell commands in Dired buffers
142@itemize @bullet 140(@pxref{Shell Command Guessing}).
143@xref{Local Variables}.
144@end itemize
145@item 141@item
146Guessing shell commands in Dired buffers. 142Running Dired command in non-Dired buffers
147@itemize @bullet 143(@pxref{Virtual Dired}).
148@xref{Shell Command Guessing}.
149@end itemize
150@item
151Running Dired command in non-Dired buffers.
152@itemize @bullet
153@xref{Virtual Dired}.
154@end itemize
155@item 144@item
156Finding a file mentioned in a buffer 145Finding a file mentioned in a buffer
157@itemize @bullet 146(@pxref{Find File At Point}).
158@xref{Find File At Point}.
159@end itemize
160@item 147@item
161Commands using file marking. 148Commands using file marking
162@itemize @bullet 149(@pxref{Advanced Mark Commands}).
163@xref{Advanced Mark Commands}.
164@end itemize
165@end enumerate 150@end enumerate
166 151
167@noindent 152@noindent
@@ -351,27 +336,25 @@ inside your @code{dired-mode-hook} to have omitting initially turned on in
351@emph{every} Dired buffer (@pxref{Installation}). You can then use @kbd{M-o} to 336@emph{every} Dired buffer (@pxref{Installation}). You can then use @kbd{M-o} to
352unomit in that buffer. 337unomit in that buffer.
353 338
354To enable omitting automatically only in certain directories one can use Dired 339To enable omitting automatically only in certain directories you can add
355Local Variables and put 340a directory local setting
341(@pxref{Directory Variables,,,emacs,The Gnu Emacs manual}) for Dired mode
356 342
357@example 343@example
358Local Variables: 344((dired-mode . ((dired-omit-mode . t))))
359dired-omit-mode: t
360End:
361@end example 345@end example
362 346
363@noindent 347@noindent
364into a file @file{.dired} (the default value of 348to a @file{.dir-locals.el} file in that directory.
365@code{dired-local-variables-file}) in that directory (@pxref{Local Variables}).
366 349
367@table @code 350@table @code
368@findex dired-omit-here-always 351@findex dired-omit-here-always
369@item dired-omit-here-always 352@item dired-omit-here-always
370 353
371This is an interactive function that creates a local variables file exactly 354This is an interactive function that creates a local variables file exactly
372like the example above (if it does not already exist) in the file 355like the example above (if it does not already exist) in the
373@code{dired-local-variables-file} in the current directory and then refreshes 356@code{dir-locals-file} file in the current directory and then refreshes
374the directory listing (@pxref{Local Variables}). 357the directory listing.
375@end table 358@end table
376 359
377@vindex dired-omit-files 360@vindex dired-omit-files
@@ -490,7 +473,6 @@ Loading @file{dired-x.el} will install Dired Omit by putting
490call @code{dired-extra-startup}, which in turn calls @code{dired-omit-startup} 473call @code{dired-extra-startup}, which in turn calls @code{dired-omit-startup}
491in your @code{dired-mode-hook}. 474in your @code{dired-mode-hook}.
492 475
493@c FIXME does the standard dir-locals mechanism obsolete this?
494@node Local Variables, Shell Command Guessing, Omitting Files in Dired, Top 476@node Local Variables, Shell Command Guessing, Omitting Files in Dired, Top
495@chapter Local Variables for Dired Directories 477@chapter Local Variables for Dired Directories
496 478
@@ -498,10 +480,15 @@ in your @code{dired-mode-hook}.
498@vindex dired-local-variables-file 480@vindex dired-local-variables-file
499@vindex dired-enable-local-variables 481@vindex dired-enable-local-variables
500@noindent 482@noindent
501When Dired visits a directory, it looks for a file whose name is the value of 483This Dired-X feature is obsolete as of Emacs 24.1. The standard Emacs
502variable @code{dired-local-variables-file} (default: @file{.dired}). If such 484directory local variables mechanism (@pxref{Directory
503a file is found, Dired will temporarily insert it into the Dired buffer and 485Variables,,,emacs,The Gnu Emacs manual}) replaces it. For an example of
504run @code{hack-local-variables}. 486the new mechanims, @pxref{Omitting Variables}.
487
488When Dired visits a directory, it looks for a file whose name is the
489value of variable @code{dired-local-variables-file} (default: @file{.dired}).
490If such a file is found, Dired will temporarily insert it into the Dired
491buffer and run @code{hack-local-variables}.
505 492
506@noindent 493@noindent
507For example, if the user puts 494For example, if the user puts
@@ -551,12 +538,10 @@ into the Dired buffer and run @code{hack-local-variables}.
551@item dired-enable-local-variables 538@item dired-enable-local-variables
552Default: @code{t} 539Default: @code{t}
553 540
554Controls the use of local-variables lists in Dired. The value can be @code{t}, 541Controls the use of local-variables lists in Dired. This variable
555@code{nil}, or something else. A value of @code{t} means local-variables 542temporarily overrides the value of @code{enable-local-variables} when
556lists are obeyed in the @code{dired-local-variables-file}; @code{nil} means 543the Dired Local Variables are hacked. It takes the same values as that
557they are ignored; anything else means query. This variable temporarily 544variable. A value of @code{nil} means to ignore any Dired Local Variables.
558overrides the value of @code{enable-local-variables} when the Dired Local
559Variables are hacked.
560@end table 545@end table
561 546
562@node Shell Command Guessing, Virtual Dired, Local Variables, Top 547@node Shell Command Guessing, Virtual Dired, Local Variables, Top