diff options
author | Glenn Morris <rgm@gnu.org> | 2011-02-19 11:20:38 -0800 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2011-02-19 11:20:38 -0800 |
commit | d6e96966e86d8eadec446788d19144bd69b1e798 (patch) | |
tree | 8f851cbe7a3d1a3a1eb9df47b0a2acc2a8422ee6 /lisp/dired-x.el | |
parent | 429242317e3abaa40dad9f3d2a9eb537cd0fd9b3 (diff) | |
download | emacs-d6e96966e86d8eadec446788d19144bd69b1e798.tar.gz |
Merge dired-x's dired-read-shell-command into dired-aux's version.
* lisp/dired-x.el (dired-read-shell-command): Merge into dired-aux's version.
* lisp/dired-aux.el (dired-read-shell-command): Merge dired-x's version.
* doc/misc/dired-x.texi (Technical Details):
No longer redefines dired-read-shell-command.
Diffstat (limited to 'lisp/dired-x.el')
-rw-r--r-- | lisp/dired-x.el | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index 1810d59712d..042fbe0b085 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el @@ -47,9 +47,7 @@ ;; User customization: M-x customize-group RET dired-x RET. -;; When loaded this code redefines the following functions of GNU Emacs: -;; From dired.el: dired-find-buffer-nocreate. -;; From dired-aux.el: dired-read-shell-command. +;; When loaded this code redefines dired.el's dired-find-buffer-nocreate. ;; *Please* see the `dired-x' info pages for more details. @@ -804,10 +802,10 @@ dired." ;; Brief Description: ;;; -;; `dired-do-shell-command' is bound to `!' by dired.el. +;; * `dired-do-shell-command' is bound to `!' by dired.el. ;;; -;; * Redefine `dired-read-shell-command' so it calls -;;; `dired-guess-shell-command'. +;; * `dired-guess-shell-command' provides smarter defaults for +;;; dired-aux.el's `dired-read-shell-command'. ;;; ;; * `dired-guess-shell-command' calls `dired-guess-default' with list of ;;; marked files. @@ -1094,23 +1092,6 @@ See `dired-guess-shell-alist-user'." ;; If we got a return, then return default. (if (equal val "") default val)))) -;; REDEFINE. -;; Redefine dired-aux.el's version: -(defun dired-read-shell-command (prompt arg files) - "Read a dired shell command prompting with PROMPT (using `read-shell-command'). -ARG is the prefix arg and may be used to indicate in the prompt which -FILES are affected. -This is an extra function so that you can redefine it." - (minibuffer-with-setup-hook - (lambda () - (set (make-local-variable 'minibuffer-default-add-function) - 'minibuffer-default-add-dired-shell-commands)) - (dired-mark-pop-up - nil 'shell files - 'dired-guess-shell-command - (format prompt (dired-mark-prompt arg files)) ; PROMPT - files))) ; FILES - ;;; RELATIVE SYMBOLIC LINKS. |