diff options
author | Glenn Morris <rgm@gnu.org> | 2011-03-01 23:59:02 -0800 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2011-03-01 23:59:02 -0800 |
commit | 2777ccbfdea689327c54278ff6b5303c1fe8bac0 (patch) | |
tree | edef7c297d22c91070aa9fb8cdf07a22fa03c0fd /doc/misc/dired-x.texi | |
parent | 5dedeef28db7d08778cc90b78f53ef2df021b575 (diff) | |
download | emacs-2777ccbfdea689327c54278ff6b5303c1fe8bac0.tar.gz emacs-2777ccbfdea689327c54278ff6b5303c1fe8bac0.tar.bz2 emacs-2777ccbfdea689327c54278ff6b5303c1fe8bac0.zip |
Make dired-default-directory obsolete.
As far as I can tell, it was never used outside of dired-smart-shell-command.
It doesn't seem worth keeping around as a separate function.
* lisp/dired-x.el (dired-default-directory-alist, dired-default-directory):
Mark as obsolete.
(dired-smart-shell-command): Just call dired-current-directory.
* doc/misc/dired-x.texi (Multiple Dired Directories): Remove mentions
of dired-default-directory-alist and dired-default-directory.
Move dired-smart-shell-command here...
(Miscellaneous Commands): ... from here.
Diffstat (limited to 'doc/misc/dired-x.texi')
-rw-r--r-- | doc/misc/dired-x.texi | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/doc/misc/dired-x.texi b/doc/misc/dired-x.texi index dba99d9c6c7..eb797789922 100644 --- a/doc/misc/dired-x.texi +++ b/doc/misc/dired-x.texi @@ -867,24 +867,12 @@ some commands it is appropriate that they use the current Dired directory instead of @code{default-directory}, e.g., @code{find-file} and @code{compile}. -A general mechanism is provided for special handling of the working -directory in special major modes: - -@table @code -@item dired-default-directory-alist -@vindex dired-default-directory-alist -Default: @code{((dired-mode . (dired-current-directory)))} - -Alist of major modes and their notion of @code{default-directory}, as a -Lisp expression to evaluate. A resulting value of @code{nil} is ignored -in favor of @code{default-directory}. - -@item dired-default-directory -@findex dired-default-directory -Use this function like you would use the variable -@code{default-directory}, except that @code{dired-default-directory} -also consults the variable @code{dired-default-directory-alist}. -@end table +@findex dired-smart-shell-command +@findex shell-command +@kindex M-! +The command @code{dired-smart-shell-command}, bound to @kbd{M-!} in +Dired buffers, is like @code{shell-command}, but it runs with +@code{default-directory} bound to the current Dired directory. @node Find File At Point, Miscellaneous Commands, Multiple Dired Directories, Top @section Find File At Point @@ -993,12 +981,6 @@ inserted subdirectories. @end table @table @code -@item dired-smart-shell-command -@findex dired-smart-shell-command -@findex shell-command -@kindex M-! -Like function @code{shell-command}, but in the current Dired directory. -Bound to @kbd{M-!} in Dired buffers. @item dired-jump @findex dired-jump |