]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/dired-aux.el (dired-do-shell-command): Fix */? logic. (Bug#6561)
authorGlenn Morris <rgm@gnu.org>
Wed, 11 Jan 2012 02:24:02 +0000 (21:24 -0500)
committerGlenn Morris <rgm@gnu.org>
Wed, 11 Jan 2012 02:24:02 +0000 (21:24 -0500)
lisp/ChangeLog
lisp/dired-aux.el

index 2f28fe36d343d278a1447f643ff77a635d76bac6..7cdb5217c145472f993349e1892b5a778ce6fcde 100644 (file)
@@ -1,3 +1,7 @@
+2012-01-11  Glenn Morris  <rgm@gnu.org>
+
+       * dired-aux.el (dired-do-shell-command): Fix */? logic.  (Bug#6561)
+
 2012-01-10  Chong Yidong  <cyd@gnu.org>
 
        * net/network-stream.el (network-stream-open-starttls): Avoid
index 31d8afc4fcaac1ae8c8c10916bfa0fba1c8cccf5..19ed74b2078f2821f9e6bffad570b3dd124ad112 100644 (file)
@@ -605,16 +605,16 @@ can be produced by `dired-get-marked-files', for example."
       current-prefix-arg
       files)))
   (let* ((on-each (not (string-match dired-star-subst-regexp command)))
-        (subst (not (string-match dired-quark-subst-regexp command)))
-        (star (not (string-match "\\*" command)))
-        (qmark (not (string-match "\\?" command))))
+        (no-subst (not (string-match dired-quark-subst-regexp command)))
+        (star (string-match "\\*" command))
+        (qmark (string-match "\\?" command)))
     ;; Get confirmation for wildcards that may have been meant
     ;; to control substitution of a file name or the file name list.
-    (if (cond ((not (or on-each subst))
+    (if (cond ((not (or on-each no-subst))
               (error "You can not combine `*' and `?' substitution marks"))
-             ((and star (not on-each))
+             ((and star on-each)
               (y-or-n-p "Confirm--do you mean to use `*' as a wildcard? "))
-             ((and qmark (not subst))
+             ((and qmark no-subst)
               (y-or-n-p "Confirm--do you mean to use `?' as a wildcard? "))
              (t))
        (if on-each