diff options
| author | Juri Linkov <juri@jurta.org> | 2012-09-15 01:58:43 +0300 |
|---|---|---|
| committer | Juri Linkov <juri@jurta.org> | 2012-09-15 01:58:43 +0300 |
| commit | cb26b7f5728f68d118c2f1a6694f6cedbf28a0d9 (patch) | |
| tree | e2b170ad6bdc31bf1c5a5e81c700fbd9d16f545b /lisp | |
| parent | 2af0342954599918f739d981e8151f7e8a46c3c6 (diff) | |
| download | emacs-cb26b7f5728f68d118c2f1a6694f6cedbf28a0d9.tar.gz | |
* lisp/dired-aux.el (dired-do-chmod): Use `eq' to detect empty input.
Fixes: debbugs:12399
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/dired-aux.el | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2b5b5f49b58..e27fa53e7b5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-09-14 Juri Linkov <juri@jurta.org> + + * dired-aux.el (dired-do-chmod): Use `eq' to detect empty input. + (Bug#12399) + 2012-09-14 Stefan Monnier <monnier@iro.umontreal.ca> * emacs-lisp/advice.el (ad-prognify): Remove, use macroexp-progn. diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index b42df954fe5..e5ca463e8d4 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -281,7 +281,10 @@ Symbolic modes like `g+w' are allowed." "Change mode of %s to: " nil 'chmod arg files default)) num-modes) - (cond ((equal modes "") + (cond ((or (equal modes "") + ;; Use `eq' instead of `equal' + ;; to detect empty input (bug#12399). + (eq modes default)) ;; We used to treat empty input as DEFAULT, but that is not ;; such a good idea (Bug#9361). (error "No file mode specified")) |
