diff options
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/dired-x.el | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fb2f1a7a6e9..9fc26f61181 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-07-11 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2011-07-11 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * dired-x.el (dired-guess-default): Remove duplicate shell command | ||
| 4 | entries (bug#2028). | ||
| 5 | |||
| 3 | * subr.el (remove-duplicates): New conveniency function. | 6 | * subr.el (remove-duplicates): New conveniency function. |
| 4 | 7 | ||
| 5 | 2011-07-10 Lars Magne Ingebrigtsen <larsi@gnus.org> | 8 | 2011-07-10 Lars Magne Ingebrigtsen <larsi@gnus.org> |
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index 8395a8b905f..580217d3fbd 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -1103,9 +1103,10 @@ See `dired-guess-shell-alist-user'." | |||
| 1103 | 1103 | ||
| 1104 | ;; Return commands or nil if flist is still non-nil. | 1104 | ;; Return commands or nil if flist is still non-nil. |
| 1105 | ;; Evaluate the commands in order that any logical testing will be done. | 1105 | ;; Evaluate the commands in order that any logical testing will be done. |
| 1106 | (if (cdr cmds) | 1106 | (remove-duplicates |
| 1107 | (mapcar #'eval cmds) | 1107 | (if (cdr cmds) |
| 1108 | (eval (car cmds))))) ; single command | 1108 | (mapcar #'eval cmds) |
| 1109 | (eval (car cmds)))))) ; single command | ||
| 1109 | 1110 | ||
| 1110 | (defun dired-guess-shell-command (prompt files) | 1111 | (defun dired-guess-shell-command (prompt files) |
| 1111 | "Ask user with PROMPT for a shell command, guessing a default from FILES." | 1112 | "Ask user with PROMPT for a shell command, guessing a default from FILES." |