diff options
| author | Chong Yidong | 2011-09-14 11:06:28 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-09-14 11:06:28 -0400 |
| commit | a0bf2bcd9305d97dcfa1a06d0d7174e3061da8e8 (patch) | |
| tree | 657d7238595343d1bafe0847b2ea5de8c66c86f1 | |
| parent | f678e0b6a238554f8620aa98a1b12aebaa5fbd1a (diff) | |
| download | emacs-a0bf2bcd9305d97dcfa1a06d0d7174e3061da8e8.tar.gz emacs-a0bf2bcd9305d97dcfa1a06d0d7174e3061da8e8.zip | |
* lisp/dired-aux.el (dired-do-chmod): Don't provide initial input.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/dired-aux.el | 17 |
2 files changed, 11 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f5b1009a0fc..7b447c11b10 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-09-14 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * dired-aux.el (dired-do-chmod): Don't provide initial input. | ||
| 4 | |||
| 1 | 2011-09-14 Martin Rudalics <rudalics@gmx.at> | 5 | 2011-09-14 Martin Rudalics <rudalics@gmx.at> |
| 2 | 6 | ||
| 3 | * window.el (display-buffer-window): Remove. | 7 | * window.el (display-buffer-window): Remove. |
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 2f2d28e596c..b09096978fd 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -285,11 +285,8 @@ Symbolic modes like `g+w' are allowed." | |||
| 285 | (match-string 3 modestr))))) | 285 | (match-string 3 modestr))))) |
| 286 | (modes (dired-mark-read-string | 286 | (modes (dired-mark-read-string |
| 287 | "Change mode of %s to: " | 287 | "Change mode of %s to: " |
| 288 | ;; Insert initial input if there's only one file. | 288 | nil 'chmod arg files default)) |
| 289 | (unless (cadr files) default) | ||
| 290 | 'chmod arg files default)) | ||
| 291 | num-modes) | 289 | num-modes) |
| 292 | |||
| 293 | (cond ((equal modes "") | 290 | (cond ((equal modes "") |
| 294 | ;; We used to treat empty input as DEFAULT, but that is not | 291 | ;; We used to treat empty input as DEFAULT, but that is not |
| 295 | ;; such a good idea (Bug#9361). | 292 | ;; such a good idea (Bug#9361). |
| @@ -388,7 +385,7 @@ Uses the shell command coming from variables `lpr-command' and | |||
| 388 | (dired-run-shell-command (dired-shell-stuff-it command file-list nil)))) | 385 | (dired-run-shell-command (dired-shell-stuff-it command file-list nil)))) |
| 389 | 386 | ||
| 390 | (defun dired-mark-read-string (prompt initial op-symbol arg files | 387 | (defun dired-mark-read-string (prompt initial op-symbol arg files |
| 391 | &optional standard-value) | 388 | &optional default-value) |
| 392 | "Read args for a Dired marked-files command, prompting with PROMPT. | 389 | "Read args for a Dired marked-files command, prompting with PROMPT. |
| 393 | Return the user input (a string). | 390 | Return the user input (a string). |
| 394 | 391 | ||
| @@ -397,14 +394,14 @@ OP-SYMBOL is an operation symbol (see `dired-no-confirm'). | |||
| 397 | ARG is normally the prefix argument for the calling command. | 394 | ARG is normally the prefix argument for the calling command. |
| 398 | FILES should be a list of file names. | 395 | FILES should be a list of file names. |
| 399 | 396 | ||
| 400 | STANDARD-VALUE, if non-nil, should be a \"standard\" value or | 397 | DEFAULT-VALUE, if non-nil, should be a \"standard\" value or list |
| 401 | list of such values, available via history commands. Note that | 398 | of such values, available via history commands. Note that if the |
| 402 | if the user enters empty input, this function returns the empty | 399 | user enters empty input, this function returns the empty string, |
| 403 | string, not STANDARD-VALUE." | 400 | not DEFAULT-VALUE." |
| 404 | (dired-mark-pop-up nil op-symbol files | 401 | (dired-mark-pop-up nil op-symbol files |
| 405 | 'read-from-minibuffer | 402 | 'read-from-minibuffer |
| 406 | (format prompt (dired-mark-prompt arg files)) | 403 | (format prompt (dired-mark-prompt arg files)) |
| 407 | initial nil nil nil standard-value)) | 404 | initial nil nil nil default-value)) |
| 408 | 405 | ||
| 409 | ;;; Cleaning a directory: flagging some backups for deletion. | 406 | ;;; Cleaning a directory: flagging some backups for deletion. |
| 410 | 407 | ||