From: Glenn Morris Date: Wed, 2 Mar 2011 04:13:57 +0000 (-0800) Subject: Make dired-omit-here-always obsolete, in favor of standard function. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~678 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8889f4e2c332b0ecedc9e6088252f4cbae301236;p=emacs.git Make dired-omit-here-always obsolete, in favor of standard function. * lisp/dired-x.el (dired-omit-here-always): Make it obsolete. * doc/misc/dired-x.texi (Omitting Variables): Refer to add-dir-local-variable instead of the obsoleted dired-omit-here-always. --- diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 2ce67bad6cb..47ae7ee3842 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog @@ -1,3 +1,8 @@ +2011-03-02 Glenn Morris + + * dired-x.texi (Omitting Variables): Refer to add-dir-local-variable + instead of the obsoleted dired-omit-here-always. + 2011-02-28 Michael Albinus * tramp.texi (Frequently Asked Questions): Add Emacs 24 to diff --git a/doc/misc/dired-x.texi b/doc/misc/dired-x.texi index cde39ff6a62..dba99d9c6c7 100644 --- a/doc/misc/dired-x.texi +++ b/doc/misc/dired-x.texi @@ -345,17 +345,8 @@ a directory local setting @end example @noindent -to a @file{.dir-locals.el} file in that directory. - -@table @code -@findex dired-omit-here-always -@item dired-omit-here-always - -This is an interactive function that creates a local variables file exactly -like the example above (if it does not already exist) in the -@code{dir-locals-file} file in the current directory and then refreshes -the directory listing. -@end table +to a @file{.dir-locals.el} file in that directory. You can use the +command @code{add-dir-local-variable} to do this. @vindex dired-omit-files @item dired-omit-files diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a75520f08b7..1f1dbf69fe5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2011-03-02 Glenn Morris + + * dired-x.el (dired-omit-here-always): Make it obsolete. + 2011-03-02 Chong Yidong * textmodes/artist.el (artist-curr-go): Default to pen-line. diff --git a/lisp/dired-x.el b/lisp/dired-x.el index 9941c7a0db5..81f77b48289 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el @@ -785,7 +785,7 @@ See also `dired-enable-local-variables'." (make-obsolete 'dired-hack-local-variables 'hack-dir-local-variables-non-file-buffer "24.1") -;; Not sure this is worth having a dedicated command for... +;; Does not seem worth a dedicated command. ;; See the more general features in files-x.el. (defun dired-omit-here-always () "Create `dir-locals-file' setting `dired-omit-mode' to t in `dired-mode'. @@ -809,6 +809,8 @@ replace it with a dir-locals-file `./%s'" (dired-extra-startup) (dired-revert)))) +(make-obsolete 'dired-omit-here-always 'add-dir-local-variable "24.1") + ;;; GUESS SHELL COMMAND.