* lisp/dired-aux.el (dired-do-chmod): Use `eq' to detect empty input.
Fixes: debbugs:12399
This commit is contained in:
parent
2af0342954
commit
cb26b7f572
2 changed files with 9 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Add table
Reference in a new issue