diff options
| author | Glenn Morris | 2011-02-22 19:44:13 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-02-22 19:44:13 -0800 |
| commit | 817b48a7bccb820203ae424aa14c559259a4f355 (patch) | |
| tree | 62ab20c2bee40ed1e67bea7f5c6ac1aa5ad34a64 /doc/misc | |
| parent | 5582c6706a68bca9cc9a1215f257cc3fbe573c9a (diff) | |
| download | emacs-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/ChangeLog | 8 | ||||
| -rw-r--r-- | doc/misc/dired-x.texi | 77 |
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 @@ | |||
| 1 | 2011-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 | |||
| 1 | 2011-02-21 Lars Ingebrigtsen <larsi@gnus.org> | 9 | 2011-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 | ||
| 132 | Some features provided by Dired Extra | 132 | Some features provided by Dired Extra: |
| 133 | 133 | ||
| 134 | @enumerate | 134 | @enumerate |
| 135 | @item | 135 | @item |
| 136 | Omitting uninteresting files from Dired listing. | 136 | Omitting 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 |
| 141 | Local variables for Dired directories. | 139 | Guessing shell commands in Dired buffers |
| 142 | @itemize @bullet | 140 | (@pxref{Shell Command Guessing}). |
| 143 | @xref{Local Variables}. | ||
| 144 | @end itemize | ||
| 145 | @item | 141 | @item |
| 146 | Guessing shell commands in Dired buffers. | 142 | Running Dired command in non-Dired buffers |
| 147 | @itemize @bullet | 143 | (@pxref{Virtual Dired}). |
| 148 | @xref{Shell Command Guessing}. | ||
| 149 | @end itemize | ||
| 150 | @item | ||
| 151 | Running Dired command in non-Dired buffers. | ||
| 152 | @itemize @bullet | ||
| 153 | @xref{Virtual Dired}. | ||
| 154 | @end itemize | ||
| 155 | @item | 144 | @item |
| 156 | Finding a file mentioned in a buffer | 145 | Finding 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 |
| 161 | Commands using file marking. | 148 | Commands 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 |
| 352 | unomit in that buffer. | 337 | unomit in that buffer. |
| 353 | 338 | ||
| 354 | To enable omitting automatically only in certain directories one can use Dired | 339 | To enable omitting automatically only in certain directories you can add |
| 355 | Local Variables and put | 340 | a directory local setting |
| 341 | (@pxref{Directory Variables,,,emacs,The Gnu Emacs manual}) for Dired mode | ||
| 356 | 342 | ||
| 357 | @example | 343 | @example |
| 358 | Local Variables: | 344 | ((dired-mode . ((dired-omit-mode . t)))) |
| 359 | dired-omit-mode: t | ||
| 360 | End: | ||
| 361 | @end example | 345 | @end example |
| 362 | 346 | ||
| 363 | @noindent | 347 | @noindent |
| 364 | into a file @file{.dired} (the default value of | 348 | to 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 | ||
| 371 | This is an interactive function that creates a local variables file exactly | 354 | This is an interactive function that creates a local variables file exactly |
| 372 | like the example above (if it does not already exist) in the file | 355 | like 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 |
| 374 | the directory listing (@pxref{Local Variables}). | 357 | the 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 | |||
| 490 | call @code{dired-extra-startup}, which in turn calls @code{dired-omit-startup} | 473 | call @code{dired-extra-startup}, which in turn calls @code{dired-omit-startup} |
| 491 | in your @code{dired-mode-hook}. | 474 | in 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 |
| 501 | When Dired visits a directory, it looks for a file whose name is the value of | 483 | This Dired-X feature is obsolete as of Emacs 24.1. The standard Emacs |
| 502 | variable @code{dired-local-variables-file} (default: @file{.dired}). If such | 484 | directory local variables mechanism (@pxref{Directory |
| 503 | a file is found, Dired will temporarily insert it into the Dired buffer and | 485 | Variables,,,emacs,The Gnu Emacs manual}) replaces it. For an example of |
| 504 | run @code{hack-local-variables}. | 486 | the new mechanims, @pxref{Omitting Variables}. |
| 487 | |||
| 488 | When Dired visits a directory, it looks for a file whose name is the | ||
| 489 | value of variable @code{dired-local-variables-file} (default: @file{.dired}). | ||
| 490 | If such a file is found, Dired will temporarily insert it into the Dired | ||
| 491 | buffer and run @code{hack-local-variables}. | ||
| 505 | 492 | ||
| 506 | @noindent | 493 | @noindent |
| 507 | For example, if the user puts | 494 | For 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 |
| 552 | Default: @code{t} | 539 | Default: @code{t} |
| 553 | 540 | ||
| 554 | Controls the use of local-variables lists in Dired. The value can be @code{t}, | 541 | Controls the use of local-variables lists in Dired. This variable |
| 555 | @code{nil}, or something else. A value of @code{t} means local-variables | 542 | temporarily overrides the value of @code{enable-local-variables} when |
| 556 | lists are obeyed in the @code{dired-local-variables-file}; @code{nil} means | 543 | the Dired Local Variables are hacked. It takes the same values as that |
| 557 | they are ignored; anything else means query. This variable temporarily | 544 | variable. A value of @code{nil} means to ignore any Dired Local Variables. |
| 558 | overrides the value of @code{enable-local-variables} when the Dired Local | ||
| 559 | Variables 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 |