aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-04-07 18:57:28 +0000
committerStefan Monnier2008-04-07 18:57:28 +0000
commit1906dec48aefa1d94eacd5a5c7da836e760aeed5 (patch)
treec49a0ac52b4db5221cf598189e1fd1085a32060f
parent65f81a0b2b74101ec8d2bee4a342bde6d00cedd4 (diff)
downloademacs-1906dec48aefa1d94eacd5a5c7da836e760aeed5.tar.gz
emacs-1906dec48aefa1d94eacd5a5c7da836e760aeed5.zip
(dired-read-shell-command): Use read-shell-command.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/dired-aux.el12
2 files changed, 11 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7518a3a71d3..cac2cd6aa7a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,8 +1,12 @@
12008-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * dired-aux.el (dired-read-shell-command): Use read-shell-command.
4
12008-04-07 Sam Steingold <sds@gnu.org> 52008-04-07 Sam Steingold <sds@gnu.org>
2 6
3 * progmodes/inf-lisp.el (lisp-compile-string, lisp-eval-string): 7 * progmodes/inf-lisp.el (lisp-compile-string, lisp-eval-string):
4 Add helper functions. 8 Add helper functions.
5 (lisp-do-defun): Extracted the common part of lisp-eval-defun and 9 (lisp-do-defun): Extract the common part of lisp-eval-defun and
6 lisp-compile-defun; DEFVAR forms reset the variables to the init 10 lisp-compile-defun; DEFVAR forms reset the variables to the init
7 values, just like in emacs-lisp mode eval-defun. 11 values, just like in emacs-lisp mode eval-defun.
8 (lisp-eval-defun, lisp-compile-defun): Use lisp-do-defun. 12 (lisp-eval-defun, lisp-compile-defun): Use lisp-do-defun.
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index b8c49ff0b1d..49e939fb144 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -514,16 +514,16 @@ with a prefix argument."
514 common-mime-info)))) 514 common-mime-info))))
515 commands)) 515 commands))
516 516
517;; This is an extra function so that you can redefine it, e.g., to use gmhist.
517(defun dired-read-shell-command (prompt arg files) 518(defun dired-read-shell-command (prompt arg files)
518;; "Read a dired shell command prompting with PROMPT (using read-string). 519 "Read a dired shell command prompting with PROMPT (using read-string).
519;;ARG is the prefix arg and may be used to indicate in the prompt which 520ARG is the prefix arg and may be used to indicate in the prompt which
520;; files are affected. 521FILES are affected."
521;;This is an extra function so that you can redefine it, e.g., to use gmhist."
522 (dired-mark-pop-up 522 (dired-mark-pop-up
523 nil 'shell files 523 nil 'shell files
524 (function read-string) 524 #'read-shell-command
525 (format prompt (dired-mark-prompt arg files)) 525 (format prompt (dired-mark-prompt arg files))
526 nil 'shell-command-history 526 nil nil
527 (dired-read-shell-command-default files))) 527 (dired-read-shell-command-default files)))
528 528
529;; The in-background argument is only needed in Emacs 18 where 529;; The in-background argument is only needed in Emacs 18 where