diff options
Diffstat (limited to 'admin/admin.el')
| -rw-r--r-- | admin/admin.el | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/admin/admin.el b/admin/admin.el index dab61bb9166..3cb5dbc2d92 100644 --- a/admin/admin.el +++ b/admin/admin.el | |||
| @@ -261,8 +261,12 @@ ROOT should be the root of an Emacs source tree." | |||
| 261 | ROOT should be the root of an Emacs source tree. | 261 | ROOT should be the root of an Emacs source tree. |
| 262 | Interactively with a prefix argument, prompt for TYPE. | 262 | Interactively with a prefix argument, prompt for TYPE. |
| 263 | Optional argument TYPE is type of output (nil means all)." | 263 | Optional argument TYPE is type of output (nil means all)." |
| 264 | (interactive (let ((root (read-directory-name "Emacs root directory: " | 264 | (interactive (let ((root |
| 265 | source-directory nil t))) | 265 | (if noninteractive |
| 266 | (or (pop command-line-args-left) | ||
| 267 | default-directory) | ||
| 268 | (read-directory-name "Emacs root directory: " | ||
| 269 | source-directory nil t)))) | ||
| 266 | (list root | 270 | (list root |
| 267 | (if current-prefix-arg | 271 | (if current-prefix-arg |
| 268 | (completing-read | 272 | (completing-read |
| @@ -717,8 +721,12 @@ style=\"text-align:left\">") | |||
| 717 | ROOT should be the root of an Emacs source tree. | 721 | ROOT should be the root of an Emacs source tree. |
| 718 | Interactively with a prefix argument, prompt for TYPE. | 722 | Interactively with a prefix argument, prompt for TYPE. |
| 719 | Optional argument TYPE is type of output (nil means all)." | 723 | Optional argument TYPE is type of output (nil means all)." |
| 720 | (interactive (let ((root (read-directory-name "Emacs root directory: " | 724 | (interactive (let ((root |
| 721 | source-directory nil t))) | 725 | (if noninteractive |
| 726 | (or (pop command-line-args-left) | ||
| 727 | default-directory) | ||
| 728 | (read-directory-name "Emacs root directory: " | ||
| 729 | source-directory nil t)))) | ||
| 722 | (list root | 730 | (list root |
| 723 | (if current-prefix-arg | 731 | (if current-prefix-arg |
| 724 | (completing-read | 732 | (completing-read |