aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-01-10 21:24:02 -0500
committerGlenn Morris2012-01-10 21:24:02 -0500
commite52c37fad057b29d68c51cf3a70b2e0d94f656cb (patch)
treef90ec4a353978c7c0636c6499ec91e8f1a97aa01
parentce316182baa016f42348a69da69cab3f319ad2fa (diff)
downloademacs-e52c37fad057b29d68c51cf3a70b2e0d94f656cb.tar.gz
emacs-e52c37fad057b29d68c51cf3a70b2e0d94f656cb.zip
* lisp/dired-aux.el (dired-do-shell-command): Fix */? logic. (Bug#6561)
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/dired-aux.el12
2 files changed, 10 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2f28fe36d34..7cdb5217c14 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12012-01-11 Glenn Morris <rgm@gnu.org>
2
3 * dired-aux.el (dired-do-shell-command): Fix */? logic. (Bug#6561)
4
12012-01-10 Chong Yidong <cyd@gnu.org> 52012-01-10 Chong Yidong <cyd@gnu.org>
2 6
3 * net/network-stream.el (network-stream-open-starttls): Avoid 7 * net/network-stream.el (network-stream-open-starttls): Avoid
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index 31d8afc4fca..19ed74b2078 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -605,16 +605,16 @@ can be produced by `dired-get-marked-files', for example."
605 current-prefix-arg 605 current-prefix-arg
606 files))) 606 files)))
607 (let* ((on-each (not (string-match dired-star-subst-regexp command))) 607 (let* ((on-each (not (string-match dired-star-subst-regexp command)))
608 (subst (not (string-match dired-quark-subst-regexp command))) 608 (no-subst (not (string-match dired-quark-subst-regexp command)))
609 (star (not (string-match "\\*" command))) 609 (star (string-match "\\*" command))
610 (qmark (not (string-match "\\?" command)))) 610 (qmark (string-match "\\?" command)))
611 ;; Get confirmation for wildcards that may have been meant 611 ;; Get confirmation for wildcards that may have been meant
612 ;; to control substitution of a file name or the file name list. 612 ;; to control substitution of a file name or the file name list.
613 (if (cond ((not (or on-each subst)) 613 (if (cond ((not (or on-each no-subst))
614 (error "You can not combine `*' and `?' substitution marks")) 614 (error "You can not combine `*' and `?' substitution marks"))
615 ((and star (not on-each)) 615 ((and star on-each)
616 (y-or-n-p "Confirm--do you mean to use `*' as a wildcard? ")) 616 (y-or-n-p "Confirm--do you mean to use `*' as a wildcard? "))
617 ((and qmark (not subst)) 617 ((and qmark no-subst)
618 (y-or-n-p "Confirm--do you mean to use `?' as a wildcard? ")) 618 (y-or-n-p "Confirm--do you mean to use `?' as a wildcard? "))
619 (t)) 619 (t))
620 (if on-each 620 (if on-each