diff options
| author | Antoine Levitt | 2011-03-05 16:56:00 -0500 |
|---|---|---|
| committer | Chong Yidong | 2011-03-05 16:56:00 -0500 |
| commit | 7e27ce9cdb691909a33667d5e2b186d23bb7c9c4 (patch) | |
| tree | a011c85b6cc5791699d8c726f461f1acf39eb21b | |
| parent | d23ae2b03fdaaf6ff2015f177c0770792c409d96 (diff) | |
| download | emacs-7e27ce9cdb691909a33667d5e2b186d23bb7c9c4.tar.gz emacs-7e27ce9cdb691909a33667d5e2b186d23bb7c9c4.zip | |
Replace many instances of read-file-name with read-directory-name.
* lisp/files.el (delete-directory, copy-directory, list-directory): Use
read-directory-name.
* lisp/find-file.el (ff-find-the-other-file):
* lisp/net/ange-ftp.el (ange-ftp-make-directory):
* lisp/printing.el (pr-interactive-dir):
* lisp/progmodes/ada-prj.el (ada-prj-load-directory):
* lisp/progmodes/ebnf2ps.el (ebnf-print-directory)
(ebnf-spool-directory, ebnf-eps-directory)
(ebnf-syntax-directory):
* lisp/shell.el (shell):
* lisp/speedbar.el (speedbar-create-directory):
* lisp/vc/emerge.el (emerge-merge-directories):
* lisp/vc/vc-dir.el (vc-dir):
* lisp/vc/vc.el (vc-create-tag, vc-retrieve-tag): Likewise.
* lisp/gnus.el (gnus-interactive): Use read-directory-name.
* lisp/gnus-uu.el (gnus-uu-decode-uu-and-save)
(gnus-uu-decode-unshar-and-save, gnus-uu-decode-save)
(gnus-uu-decode-binhex, gnus-uu-decode-yenc)
(gnus-uu-decode-save-view, gnus-uu-decode-postscript-and-save):
Likewise.
* lisp/mh-funcs.el (mh-store-msg, mh-store-buffer):
* lisp/mh-mime.el (mh-mime-save-parts): Use read-directory-name.
* lisp/dired.el: Clarify comment.
| -rw-r--r-- | lisp/ChangeLog | 18 | ||||
| -rw-r--r-- | lisp/dired.el | 11 | ||||
| -rw-r--r-- | lisp/files.el | 6 | ||||
| -rw-r--r-- | lisp/find-file.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-uu.el | 30 | ||||
| -rw-r--r-- | lisp/gnus/gnus.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mh-e/mh-funcs.el | 4 | ||||
| -rw-r--r-- | lisp/mh-e/mh-mime.el | 4 | ||||
| -rw-r--r-- | lisp/net/ange-ftp.el | 2 | ||||
| -rw-r--r-- | lisp/printing.el | 8 | ||||
| -rw-r--r-- | lisp/progmodes/ada-prj.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/ebnf2ps.el | 16 | ||||
| -rw-r--r-- | lisp/shell.el | 4 | ||||
| -rw-r--r-- | lisp/speedbar.el | 2 | ||||
| -rw-r--r-- | lisp/vc/emerge.el | 8 | ||||
| -rw-r--r-- | lisp/vc/vc-dir.el | 6 | ||||
| -rw-r--r-- | lisp/vc/vc.el | 4 |
20 files changed, 93 insertions, 55 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 55935189af6..353afc4a803 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,21 @@ | |||
| 1 | 2011-03-05 Antoine Levitt <antoine.levitt@gmail.com> | ||
| 2 | |||
| 3 | * files.el (delete-directory, copy-directory, list-directory): Use | ||
| 4 | read-directory-name. | ||
| 5 | |||
| 6 | * find-file.el (ff-find-the-other-file): | ||
| 7 | * net/ange-ftp.el (ange-ftp-make-directory): | ||
| 8 | * printing.el (pr-interactive-dir): | ||
| 9 | * progmodes/ada-prj.el (ada-prj-load-directory): | ||
| 10 | * progmodes/ebnf2ps.el (ebnf-print-directory) | ||
| 11 | (ebnf-spool-directory, ebnf-eps-directory) | ||
| 12 | (ebnf-syntax-directory): | ||
| 13 | * shell.el (shell): | ||
| 14 | * speedbar.el (speedbar-create-directory): | ||
| 15 | * vc/emerge.el (emerge-merge-directories): | ||
| 16 | * vc/vc-dir.el (vc-dir): | ||
| 17 | * vc/vc.el (vc-create-tag, vc-retrieve-tag): Likewise. | ||
| 18 | |||
| 1 | 2011-03-05 Chong Yidong <cyd@stupidchicken.com> | 19 | 2011-03-05 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 20 | ||
| 3 | * help-mode.el (help-buffer): If we are to return the current | 21 | * help-mode.el (help-buffer): If we are to return the current |
diff --git a/lisp/dired.el b/lisp/dired.el index 99902d15e33..c4374503a6f 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -611,9 +611,12 @@ Don't use that together with FILTER." | |||
| 611 | (if current-prefix-arg | 611 | (if current-prefix-arg |
| 612 | (read-string "Dired listing switches: " | 612 | (read-string "Dired listing switches: " |
| 613 | dired-listing-switches)) | 613 | dired-listing-switches)) |
| 614 | ;; If a dialog is about to be used, call read-directory-name so | 614 | ;; If a dialog is used, call `read-directory-name' so the |
| 615 | ;; the dialog code knows we want directories. Some dialogs can | 615 | ;; dialog code knows we want directories. Some dialogs |
| 616 | ;; only select directories or files when popped up, not both. | 616 | ;; can only select directories or files when popped up, |
| 617 | ;; not both. If no dialog is used, call `read-file-name' | ||
| 618 | ;; because the user may want completion of file names for | ||
| 619 | ;; use in a wildcard pattern. | ||
| 617 | (if (next-read-file-uses-dialog-p) | 620 | (if (next-read-file-uses-dialog-p) |
| 618 | (read-directory-name (format "Dired %s(directory): " str) | 621 | (read-directory-name (format "Dired %s(directory): " str) |
| 619 | nil default-directory nil) | 622 | nil default-directory nil) |
| @@ -4083,7 +4086,7 @@ true then the type of the file linked to by FILE is printed instead. | |||
| 4083 | ;;;*** | 4086 | ;;;*** |
| 4084 | 4087 | ||
| 4085 | ;;;### (autoloads (dired-do-relsymlink dired-jump-other-window dired-jump) | 4088 | ;;;### (autoloads (dired-do-relsymlink dired-jump-other-window dired-jump) |
| 4086 | ;;;;;; "dired-x" "dired-x.el" "addd55345656d18cfd5251790a655e2c") | 4089 | ;;;;;; "dired-x" "dired-x.el" "87fd4ae2fdade7e0f11c4a0b1cfdeda2") |
| 4087 | ;;; Generated autoloads from dired-x.el | 4090 | ;;; Generated autoloads from dired-x.el |
| 4088 | 4091 | ||
| 4089 | (autoload 'dired-jump "dired-x" "\ | 4092 | (autoload 'dired-jump "dired-x" "\ |
diff --git a/lisp/files.el b/lisp/files.el index 39021ac1b2d..ffc0b33119f 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -4831,7 +4831,7 @@ given. With a prefix argument, TRASH is nil." | |||
| 4831 | (let* ((trashing (and delete-by-moving-to-trash | 4831 | (let* ((trashing (and delete-by-moving-to-trash |
| 4832 | (null current-prefix-arg))) | 4832 | (null current-prefix-arg))) |
| 4833 | (dir (expand-file-name | 4833 | (dir (expand-file-name |
| 4834 | (read-file-name | 4834 | (read-directory-name |
| 4835 | (if trashing | 4835 | (if trashing |
| 4836 | "Move directory to trash: " | 4836 | "Move directory to trash: " |
| 4837 | "Delete directory: ") | 4837 | "Delete directory: ") |
| @@ -4899,7 +4899,7 @@ directly into NEWNAME instead." | |||
| 4899 | (let ((dir (read-directory-name | 4899 | (let ((dir (read-directory-name |
| 4900 | "Copy directory: " default-directory default-directory t nil))) | 4900 | "Copy directory: " default-directory default-directory t nil))) |
| 4901 | (list dir | 4901 | (list dir |
| 4902 | (read-file-name | 4902 | (read-directory-name |
| 4903 | (format "Copy directory %s to: " dir) | 4903 | (format "Copy directory %s to: " dir) |
| 4904 | default-directory default-directory nil nil) | 4904 | default-directory default-directory nil nil) |
| 4905 | current-prefix-arg t nil))) | 4905 | current-prefix-arg t nil))) |
| @@ -5598,7 +5598,7 @@ Prefix arg (second arg if noninteractive) means supply -l switch to `ls'. | |||
| 5598 | Actions controlled by variables `list-directory-brief-switches' | 5598 | Actions controlled by variables `list-directory-brief-switches' |
| 5599 | and `list-directory-verbose-switches'." | 5599 | and `list-directory-verbose-switches'." |
| 5600 | (interactive (let ((pfx current-prefix-arg)) | 5600 | (interactive (let ((pfx current-prefix-arg)) |
| 5601 | (list (read-file-name (if pfx "List directory (verbose): " | 5601 | (list (read-directory-name (if pfx "List directory (verbose): " |
| 5602 | "List directory (brief): ") | 5602 | "List directory (brief): ") |
| 5603 | nil default-directory nil) | 5603 | nil default-directory nil) |
| 5604 | pfx))) | 5604 | pfx))) |
diff --git a/lisp/find-file.el b/lisp/find-file.el index 715f01b8e17..e4285523184 100644 --- a/lisp/find-file.el +++ b/lisp/find-file.el | |||
| @@ -494,7 +494,7 @@ If optional IN-OTHER-WINDOW is non-nil, find the file in another window." | |||
| 494 | 494 | ||
| 495 | (setq name | 495 | (setq name |
| 496 | (expand-file-name | 496 | (expand-file-name |
| 497 | (read-file-name | 497 | (read-directory-name |
| 498 | (format "Find or create %s in: " default-name) | 498 | (format "Find or create %s in: " default-name) |
| 499 | default-directory default-name nil))) | 499 | default-directory default-name nil))) |
| 500 | 500 | ||
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 0cf198e8b04..305e041eb78 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2011-03-05 Antoine Levitt <antoine.levitt@gmail.com> | ||
| 2 | |||
| 3 | * gnus.el (gnus-interactive): Use read-directory-name. | ||
| 4 | |||
| 5 | * gnus-uu.el (gnus-uu-decode-uu-and-save) | ||
| 6 | (gnus-uu-decode-unshar-and-save, gnus-uu-decode-save) | ||
| 7 | (gnus-uu-decode-binhex, gnus-uu-decode-yenc) | ||
| 8 | (gnus-uu-decode-save-view, gnus-uu-decode-postscript-and-save): | ||
| 9 | Likewise. | ||
| 10 | |||
| 11 | * gnus-group.el (gnus-group-make-directory-group): Likewise. | ||
| 12 | |||
| 1 | 2011-03-05 Lars Magne Ingebrigtsen <larsi@gnus.org> | 13 | 2011-03-05 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 14 | ||
| 3 | * gnus-sum.el (gnus-update-read-articles): Fix typo. | 15 | * gnus-sum.el (gnus-update-read-articles): Fix typo. |
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 832cd758b61..9ed3cf02a49 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -3102,7 +3102,7 @@ The user will be prompted for a directory. The contents of this | |||
| 3102 | directory will be used as a newsgroup. The directory should contain | 3102 | directory will be used as a newsgroup. The directory should contain |
| 3103 | mail messages or news articles in files that have numeric names." | 3103 | mail messages or news articles in files that have numeric names." |
| 3104 | (interactive | 3104 | (interactive |
| 3105 | (list (read-file-name "Create group from directory: "))) | 3105 | (list (read-directory-name "Create group from directory: "))) |
| 3106 | (unless (file-exists-p dir) | 3106 | (unless (file-exists-p dir) |
| 3107 | (error "No such directory")) | 3107 | (error "No such directory")) |
| 3108 | (unless (file-directory-p dir) | 3108 | (unless (file-directory-p dir) |
diff --git a/lisp/gnus/gnus-uu.el b/lisp/gnus/gnus-uu.el index d6aad539029..7aa0e09e365 100644 --- a/lisp/gnus/gnus-uu.el +++ b/lisp/gnus/gnus-uu.el | |||
| @@ -366,7 +366,7 @@ didn't work, and overwrite existing files. Otherwise, ask each time." | |||
| 366 | (interactive | 366 | (interactive |
| 367 | (list current-prefix-arg | 367 | (list current-prefix-arg |
| 368 | (file-name-as-directory | 368 | (file-name-as-directory |
| 369 | (read-file-name "Uudecode and save in dir: " | 369 | (read-directory-name "Uudecode and save in dir: " |
| 370 | gnus-uu-default-dir | 370 | gnus-uu-default-dir |
| 371 | gnus-uu-default-dir t)))) | 371 | gnus-uu-default-dir t)))) |
| 372 | (gnus-uu-decode-with-method 'gnus-uu-uustrip-article n dir nil nil t)) | 372 | (gnus-uu-decode-with-method 'gnus-uu-uustrip-article n dir nil nil t)) |
| @@ -381,7 +381,7 @@ didn't work, and overwrite existing files. Otherwise, ask each time." | |||
| 381 | (interactive | 381 | (interactive |
| 382 | (list current-prefix-arg | 382 | (list current-prefix-arg |
| 383 | (file-name-as-directory | 383 | (file-name-as-directory |
| 384 | (read-file-name "Unshar and save in dir: " | 384 | (read-directory-name "Unshar and save in dir: " |
| 385 | gnus-uu-default-dir | 385 | gnus-uu-default-dir |
| 386 | gnus-uu-default-dir t)))) | 386 | gnus-uu-default-dir t)))) |
| 387 | (gnus-uu-decode-with-method 'gnus-uu-unshar-article n dir nil 'scan t)) | 387 | (gnus-uu-decode-with-method 'gnus-uu-unshar-article n dir nil 'scan t)) |
| @@ -390,12 +390,11 @@ didn't work, and overwrite existing files. Otherwise, ask each time." | |||
| 390 | "Saves the current article." | 390 | "Saves the current article." |
| 391 | (interactive | 391 | (interactive |
| 392 | (list current-prefix-arg | 392 | (list current-prefix-arg |
| 393 | (read-file-name | 393 | (if gnus-uu-save-separate-articles |
| 394 | (if gnus-uu-save-separate-articles | 394 | (read-directory-name |
| 395 | "Save articles in dir: " | 395 | "Save articles in dir: " gnus-uu-default-dir gnus-uu-default-dir) |
| 396 | "Save articles in file: ") | 396 | (read-file-name-name |
| 397 | gnus-uu-default-dir | 397 | "Save article in file: " gnus-uu-default-dir gnus-uu-default-dir)))) |
| 398 | gnus-uu-default-dir))) | ||
| 399 | (setq gnus-uu-saved-article-name file) | 398 | (setq gnus-uu-saved-article-name file) |
| 400 | (gnus-uu-decode-with-method 'gnus-uu-save-article n nil t)) | 399 | (gnus-uu-decode-with-method 'gnus-uu-save-article n nil t)) |
| 401 | 400 | ||
| @@ -404,7 +403,7 @@ didn't work, and overwrite existing files. Otherwise, ask each time." | |||
| 404 | (interactive | 403 | (interactive |
| 405 | (list current-prefix-arg | 404 | (list current-prefix-arg |
| 406 | (file-name-as-directory | 405 | (file-name-as-directory |
| 407 | (read-file-name "Unbinhex and save in dir: " | 406 | (read-directory-name "Unbinhex and save in dir: " |
| 408 | gnus-uu-default-dir | 407 | gnus-uu-default-dir |
| 409 | gnus-uu-default-dir)))) | 408 | gnus-uu-default-dir)))) |
| 410 | (setq gnus-uu-binhex-article-name | 409 | (setq gnus-uu-binhex-article-name |
| @@ -416,7 +415,7 @@ didn't work, and overwrite existing files. Otherwise, ask each time." | |||
| 416 | (interactive | 415 | (interactive |
| 417 | (list current-prefix-arg | 416 | (list current-prefix-arg |
| 418 | (file-name-as-directory | 417 | (file-name-as-directory |
| 419 | (read-file-name "yEnc decode and save in dir: " | 418 | (read-directory-name "yEnc decode and save in dir: " |
| 420 | gnus-uu-default-dir | 419 | gnus-uu-default-dir |
| 421 | gnus-uu-default-dir)))) | 420 | gnus-uu-default-dir)))) |
| 422 | (setq gnus-uu-yenc-article-name nil) | 421 | (setq gnus-uu-yenc-article-name nil) |
| @@ -458,10 +457,11 @@ didn't work, and overwrite existing files. Otherwise, ask each time." | |||
| 458 | "Saves and views the current article." | 457 | "Saves and views the current article." |
| 459 | (interactive | 458 | (interactive |
| 460 | (list current-prefix-arg | 459 | (list current-prefix-arg |
| 461 | (read-file-name (if gnus-uu-save-separate-articles | 460 | (if gnus-uu-save-separate-articles |
| 462 | "Save articles is dir: " | 461 | (read-directory-name "Save articles in dir: " |
| 463 | "Save articles in file: ") | 462 | gnus-uu-default-dir gnus-uu-default-dir) |
| 464 | gnus-uu-default-dir gnus-uu-default-dir))) | 463 | (read-file-name "Save articles in file: " |
| 464 | gnus-uu-default-dir gnus-uu-default-dir)))) | ||
| 465 | (let ((gnus-view-pseudos (or gnus-view-pseudos 'automatic))) | 465 | (let ((gnus-view-pseudos (or gnus-view-pseudos 'automatic))) |
| 466 | (gnus-uu-decode-save n file))) | 466 | (gnus-uu-decode-save n file))) |
| 467 | 467 | ||
| @@ -742,7 +742,7 @@ When called interactively, prompt for REGEXP." | |||
| 742 | (interactive | 742 | (interactive |
| 743 | (list current-prefix-arg | 743 | (list current-prefix-arg |
| 744 | (file-name-as-directory | 744 | (file-name-as-directory |
| 745 | (read-file-name "Save in dir: " | 745 | (read-directory-name "Save in dir: " |
| 746 | gnus-uu-default-dir | 746 | gnus-uu-default-dir |
| 747 | gnus-uu-default-dir t)))) | 747 | gnus-uu-default-dir t)))) |
| 748 | (gnus-uu-decode-with-method 'gnus-uu-decode-postscript-article | 748 | (gnus-uu-decode-with-method 'gnus-uu-decode-postscript-article |
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el index b3a60a82b1d..67f15a9ac7c 100644 --- a/lisp/gnus/gnus.el +++ b/lisp/gnus/gnus.el | |||
| @@ -3268,7 +3268,7 @@ g -- Group name." | |||
| 3268 | ((= c ?d) | 3268 | ((= c ?d) |
| 3269 | (point)) | 3269 | (point)) |
| 3270 | ((= c ?D) | 3270 | ((= c ?D) |
| 3271 | (read-file-name prompt nil default-directory 'lambda)) | 3271 | (read-directory-name prompt nil default-directory 'lambda)) |
| 3272 | ((= c ?f) | 3272 | ((= c ?f) |
| 3273 | (read-file-name prompt nil nil 'lambda)) | 3273 | (read-file-name prompt nil nil 'lambda)) |
| 3274 | ((= c ?F) | 3274 | ((= c ?F) |
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index f3d1682127e..4b904ed2b7a 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-03-05 Antoine Levitt <antoine.levitt@gmail.com> | ||
| 2 | |||
| 3 | * mh-funcs.el (mh-store-msg, mh-store-buffer): | ||
| 4 | * mh-mime.el (mh-mime-save-parts): Use read-directory-name. | ||
| 5 | |||
| 1 | 2011-01-13 Chong Yidong <cyd@stupidchicken.com> | 6 | 2011-01-13 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * mh-comp.el (mh-user-agent-compose): New arg RETURN-ACTION. | 8 | * mh-comp.el (mh-user-agent-compose): New arg RETURN-ACTION. |
diff --git a/lisp/mh-e/mh-funcs.el b/lisp/mh-e/mh-funcs.el index ad508416501..c3f301e649d 100644 --- a/lisp/mh-e/mh-funcs.el +++ b/lisp/mh-e/mh-funcs.el | |||
| @@ -286,7 +286,7 @@ to \"Directory\", and then enter the name of the directory for | |||
| 286 | storing the content of these messages." | 286 | storing the content of these messages." |
| 287 | (interactive (list (let ((udir (or mh-store-default-directory | 287 | (interactive (list (let ((udir (or mh-store-default-directory |
| 288 | default-directory))) | 288 | default-directory))) |
| 289 | (read-file-name "Store message in directory: " | 289 | (read-directory-name "Store message in directory: " |
| 290 | udir udir nil)))) | 290 | udir udir nil)))) |
| 291 | (let ((msg-file-to-store (mh-msg-filename (mh-get-msg-num t)))) | 291 | (let ((msg-file-to-store (mh-msg-filename (mh-get-msg-num t)))) |
| 292 | (with-current-buffer (get-buffer-create mh-temp-buffer) | 292 | (with-current-buffer (get-buffer-create mh-temp-buffer) |
| @@ -300,7 +300,7 @@ storing the content of these messages." | |||
| 300 | See `mh-store-msg' for a description of DIRECTORY." | 300 | See `mh-store-msg' for a description of DIRECTORY." |
| 301 | (interactive (list (let ((udir (or mh-store-default-directory | 301 | (interactive (list (let ((udir (or mh-store-default-directory |
| 302 | default-directory))) | 302 | default-directory))) |
| 303 | (read-file-name "Store buffer in directory: " | 303 | (read-directory-name "Store buffer in directory: " |
| 304 | udir udir nil)))) | 304 | udir udir nil)))) |
| 305 | (let ((store-directory (expand-file-name directory)) | 305 | (let ((store-directory (expand-file-name directory)) |
| 306 | (sh-start (save-excursion | 306 | (sh-start (save-excursion |
diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el index de0f49e41db..ba994e73a91 100644 --- a/lisp/mh-e/mh-mime.el +++ b/lisp/mh-e/mh-mime.el | |||
| @@ -390,11 +390,11 @@ do the work." | |||
| 390 | (equal nil mh-mime-save-parts-default-directory) | 390 | (equal nil mh-mime-save-parts-default-directory) |
| 391 | (equal t mh-mime-save-parts-default-directory)) | 391 | (equal t mh-mime-save-parts-default-directory)) |
| 392 | (not mh-mime-save-parts-directory)) | 392 | (not mh-mime-save-parts-directory)) |
| 393 | (read-file-name "Store in directory: " nil nil t nil)) | 393 | (read-directory-name "Store in directory: " nil nil t)) |
| 394 | ((and (or prompt | 394 | ((and (or prompt |
| 395 | (equal t mh-mime-save-parts-default-directory)) | 395 | (equal t mh-mime-save-parts-default-directory)) |
| 396 | mh-mime-save-parts-directory) | 396 | mh-mime-save-parts-directory) |
| 397 | (read-file-name (format | 397 | (read-directory-name (format |
| 398 | "Store in directory (default %s): " | 398 | "Store in directory (default %s): " |
| 399 | mh-mime-save-parts-directory) | 399 | mh-mime-save-parts-directory) |
| 400 | "" mh-mime-save-parts-directory t "")) | 400 | "" mh-mime-save-parts-directory t "")) |
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index f0d36451b5c..8c9ead479e8 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el | |||
| @@ -4071,7 +4071,7 @@ directory, so that Emacs will know its current contents." | |||
| 4071 | (ange-ftp-get-files dir t)))) | 4071 | (ange-ftp-get-files dir t)))) |
| 4072 | 4072 | ||
| 4073 | (defun ange-ftp-make-directory (dir &optional parents) | 4073 | (defun ange-ftp-make-directory (dir &optional parents) |
| 4074 | (interactive (list (expand-file-name (read-file-name "Make directory: ")))) | 4074 | (interactive (list (expand-file-name (read-directory-name "Make directory: ")))) |
| 4075 | (if parents | 4075 | (if parents |
| 4076 | (let ((parent (file-name-directory (directory-file-name dir)))) | 4076 | (let ((parent (file-name-directory (directory-file-name dir)))) |
| 4077 | (or (file-exists-p parent) | 4077 | (or (file-exists-p parent) |
diff --git a/lisp/printing.el b/lisp/printing.el index 99ed8c04262..e66cca25933 100644 --- a/lisp/printing.el +++ b/lisp/printing.el | |||
| @@ -5707,8 +5707,8 @@ If menu binding was not done, calls `pr-menu-bind'." | |||
| 5707 | (let* ((dir-name (file-name-directory (or (buffer-file-name) | 5707 | (let* ((dir-name (file-name-directory (or (buffer-file-name) |
| 5708 | default-directory))) | 5708 | default-directory))) |
| 5709 | (fmt-prompt (concat "%s[" mess "] Directory to print: ")) | 5709 | (fmt-prompt (concat "%s[" mess "] Directory to print: ")) |
| 5710 | (dir (read-file-name (format fmt-prompt "") | 5710 | (dir (read-directory-name (format fmt-prompt "") |
| 5711 | "" dir-name nil dir-name)) | 5711 | "" dir-name nil dir-name)) |
| 5712 | prompt) | 5712 | prompt) |
| 5713 | (while (cond ((not (file-directory-p dir)) | 5713 | (while (cond ((not (file-directory-p dir)) |
| 5714 | (ding) | 5714 | (ding) |
| @@ -5718,8 +5718,8 @@ If menu binding was not done, calls `pr-menu-bind'." | |||
| 5718 | (setq prompt "Directory is unreadable! ")) | 5718 | (setq prompt "Directory is unreadable! ")) |
| 5719 | (t nil)) | 5719 | (t nil)) |
| 5720 | (setq dir-name (file-name-directory dir) | 5720 | (setq dir-name (file-name-directory dir) |
| 5721 | dir (read-file-name (format fmt-prompt prompt) | 5721 | dir (read-directory-name (format fmt-prompt prompt) |
| 5722 | "" dir-name nil dir-name))) | 5722 | "" dir-name nil dir-name))) |
| 5723 | (file-name-as-directory dir))) | 5723 | (file-name-as-directory dir))) |
| 5724 | 5724 | ||
| 5725 | 5725 | ||
diff --git a/lisp/progmodes/ada-prj.el b/lisp/progmodes/ada-prj.el index d7397144498..dd05ab8f310 100644 --- a/lisp/progmodes/ada-prj.el +++ b/lisp/progmodes/ada-prj.el | |||
| @@ -227,7 +227,7 @@ If FILE-NAME is nil, ask the user for the name." | |||
| 227 | ;; the user to select a directory | 227 | ;; the user to select a directory |
| 228 | (let ((use-dialog-box nil)) | 228 | (let ((use-dialog-box nil)) |
| 229 | (unless file-name | 229 | (unless file-name |
| 230 | (set 'file-name (read-file-name "Root directory: " nil nil t)))) | 230 | (set 'file-name (read-directory-name "Root directory: " nil nil t)))) |
| 231 | 231 | ||
| 232 | (set 'ada-prj-current-values | 232 | (set 'ada-prj-current-values |
| 233 | (plist-put ada-prj-current-values | 233 | (plist-put ada-prj-current-values |
diff --git a/lisp/progmodes/ebnf2ps.el b/lisp/progmodes/ebnf2ps.el index 9f8dd79e0fc..f7965d2cd01 100644 --- a/lisp/progmodes/ebnf2ps.el +++ b/lisp/progmodes/ebnf2ps.el | |||
| @@ -2229,8 +2229,8 @@ processed. | |||
| 2229 | 2229 | ||
| 2230 | See also `ebnf-print-buffer'." | 2230 | See also `ebnf-print-buffer'." |
| 2231 | (interactive | 2231 | (interactive |
| 2232 | (list (read-file-name "Directory containing EBNF files (print): " | 2232 | (list (read-directory-name "Directory containing EBNF files (print): " |
| 2233 | nil default-directory))) | 2233 | nil default-directory))) |
| 2234 | (ebnf-log-header "(ebnf-print-directory %S)" directory) | 2234 | (ebnf-log-header "(ebnf-print-directory %S)" directory) |
| 2235 | (ebnf-directory 'ebnf-print-buffer directory)) | 2235 | (ebnf-directory 'ebnf-print-buffer directory)) |
| 2236 | 2236 | ||
| @@ -2287,8 +2287,8 @@ processed. | |||
| 2287 | 2287 | ||
| 2288 | See also `ebnf-spool-buffer'." | 2288 | See also `ebnf-spool-buffer'." |
| 2289 | (interactive | 2289 | (interactive |
| 2290 | (list (read-file-name "Directory containing EBNF files (spool): " | 2290 | (list (read-directory-name "Directory containing EBNF files (spool): " |
| 2291 | nil default-directory))) | 2291 | nil default-directory))) |
| 2292 | (ebnf-log-header "(ebnf-spool-directory %S)" directory) | 2292 | (ebnf-log-header "(ebnf-spool-directory %S)" directory) |
| 2293 | (ebnf-directory 'ebnf-spool-buffer directory)) | 2293 | (ebnf-directory 'ebnf-spool-buffer directory)) |
| 2294 | 2294 | ||
| @@ -2340,8 +2340,8 @@ processed. | |||
| 2340 | 2340 | ||
| 2341 | See also `ebnf-eps-buffer'." | 2341 | See also `ebnf-eps-buffer'." |
| 2342 | (interactive | 2342 | (interactive |
| 2343 | (list (read-file-name "Directory containing EBNF files (EPS): " | 2343 | (list (read-directory-name "Directory containing EBNF files (EPS): " |
| 2344 | nil default-directory))) | 2344 | nil default-directory))) |
| 2345 | (ebnf-log-header "(ebnf-eps-directory %S)" directory) | 2345 | (ebnf-log-header "(ebnf-eps-directory %S)" directory) |
| 2346 | (ebnf-directory 'ebnf-eps-buffer directory)) | 2346 | (ebnf-directory 'ebnf-eps-buffer directory)) |
| 2347 | 2347 | ||
| @@ -2425,8 +2425,8 @@ are processed. | |||
| 2425 | 2425 | ||
| 2426 | See also `ebnf-syntax-buffer'." | 2426 | See also `ebnf-syntax-buffer'." |
| 2427 | (interactive | 2427 | (interactive |
| 2428 | (list (read-file-name "Directory containing EBNF files (syntax): " | 2428 | (list (read-directory-name "Directory containing EBNF files (syntax): " |
| 2429 | nil default-directory))) | 2429 | nil default-directory))) |
| 2430 | (ebnf-log-header "(ebnf-syntax-directory %S)" directory) | 2430 | (ebnf-log-header "(ebnf-syntax-directory %S)" directory) |
| 2431 | (ebnf-directory 'ebnf-syntax-buffer directory)) | 2431 | (ebnf-directory 'ebnf-syntax-buffer directory)) |
| 2432 | 2432 | ||
diff --git a/lisp/shell.el b/lisp/shell.el index ea89ce765c3..2f11cc6314c 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -569,9 +569,9 @@ Otherwise, one argument `-i' is passed to the shell. | |||
| 569 | ;; of the current-buffer rather than of the *shell* buffer. | 569 | ;; of the current-buffer rather than of the *shell* buffer. |
| 570 | (setq default-directory | 570 | (setq default-directory |
| 571 | (expand-file-name | 571 | (expand-file-name |
| 572 | (read-file-name | 572 | (read-directory-name |
| 573 | "Default directory: " default-directory default-directory | 573 | "Default directory: " default-directory default-directory |
| 574 | t nil 'file-directory-p)))))))) | 574 | t nil)))))))) |
| 575 | (require 'ansi-color) | 575 | (require 'ansi-color) |
| 576 | (setq buffer (if (or buffer (not (derived-mode-p 'shell-mode)) | 576 | (setq buffer (if (or buffer (not (derived-mode-p 'shell-mode)) |
| 577 | (comint-check-proc (current-buffer))) | 577 | (comint-check-proc (current-buffer))) |
diff --git a/lisp/speedbar.el b/lisp/speedbar.el index dad2a4c82ac..d160a836359 100644 --- a/lisp/speedbar.el +++ b/lisp/speedbar.el | |||
| @@ -1622,7 +1622,7 @@ Files can be renamed to new names or moved to new directories." | |||
| 1622 | (let ((f (speedbar-line-file))) | 1622 | (let ((f (speedbar-line-file))) |
| 1623 | (if f | 1623 | (if f |
| 1624 | (let* ((basedir (file-name-directory f)) | 1624 | (let* ((basedir (file-name-directory f)) |
| 1625 | (nd (read-file-name "Create directory: " | 1625 | (nd (read-directory-name "Create directory: " |
| 1626 | basedir))) | 1626 | basedir))) |
| 1627 | ;; Make the directory | 1627 | ;; Make the directory |
| 1628 | (make-directory nd t) | 1628 | (make-directory nd t) |
diff --git a/lisp/vc/emerge.el b/lisp/vc/emerge.el index ee34944e448..601b6b1e597 100644 --- a/lisp/vc/emerge.el +++ b/lisp/vc/emerge.el | |||
| @@ -1271,10 +1271,10 @@ Otherwise, the A or B file present is copied to the output file." | |||
| 1271 | (defun emerge-merge-directories (a-dir b-dir ancestor-dir output-dir) | 1271 | (defun emerge-merge-directories (a-dir b-dir ancestor-dir output-dir) |
| 1272 | (interactive | 1272 | (interactive |
| 1273 | (list | 1273 | (list |
| 1274 | (read-file-name "A directory: " nil nil 'confirm) | 1274 | (read-directory-name "A directory: " nil nil 'confirm) |
| 1275 | (read-file-name "B directory: " nil nil 'confirm) | 1275 | (read-directory-name "B directory: " nil nil 'confirm) |
| 1276 | (read-file-name "Ancestor directory (null for none): " nil nil 'confirm) | 1276 | (read-directory-name "Ancestor directory (null for none): " nil nil 'confirm) |
| 1277 | (read-file-name "Output directory (null for none): " nil nil 'confirm))) | 1277 | (read-directory-name "Output directory (null for none): " nil nil 'confirm))) |
| 1278 | ;; Check that we're not on a line | 1278 | ;; Check that we're not on a line |
| 1279 | (if (not (and (bolp) (eolp))) | 1279 | (if (not (and (bolp) (eolp))) |
| 1280 | (error "There is text on this line")) | 1280 | (error "There is text on this line")) |
diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el index 9668d550f22..d4970207b94 100644 --- a/lisp/vc/vc-dir.el +++ b/lisp/vc/vc-dir.el | |||
| @@ -1185,9 +1185,9 @@ These are the commands available for use in the file status buffer: | |||
| 1185 | ;; therefore it makes sense to always do that. | 1185 | ;; therefore it makes sense to always do that. |
| 1186 | ;; Otherwise if you do C-x v d -> C-x C-f -> C-c v d | 1186 | ;; Otherwise if you do C-x v d -> C-x C-f -> C-c v d |
| 1187 | ;; you may get a new *vc-dir* buffer, different from the original | 1187 | ;; you may get a new *vc-dir* buffer, different from the original |
| 1188 | (file-truename (read-file-name "VC status for directory: " | 1188 | (file-truename (read-directory-name "VC status for directory: " |
| 1189 | default-directory default-directory t | 1189 | default-directory default-directory t |
| 1190 | nil #'file-directory-p)) | 1190 | nil)) |
| 1191 | (if current-prefix-arg | 1191 | (if current-prefix-arg |
| 1192 | (intern | 1192 | (intern |
| 1193 | (completing-read | 1193 | (completing-read |
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 02743847800..200291bd925 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -1954,7 +1954,7 @@ checked out in that new branch." | |||
| 1954 | ;; For VC's that do not work at file level, it's pointless | 1954 | ;; For VC's that do not work at file level, it's pointless |
| 1955 | ;; to ask for a directory, branches are created at repository level. | 1955 | ;; to ask for a directory, branches are created at repository level. |
| 1956 | default-directory | 1956 | default-directory |
| 1957 | (read-file-name "Directory: " default-directory default-directory t)) | 1957 | (read-directory-name "Directory: " default-directory default-directory t)) |
| 1958 | (read-string (if current-prefix-arg "New branch name: " "New tag name: ")) | 1958 | (read-string (if current-prefix-arg "New branch name: " "New tag name: ")) |
| 1959 | current-prefix-arg))) | 1959 | current-prefix-arg))) |
| 1960 | (message "Making %s... " (if branchp "branch" "tag")) | 1960 | (message "Making %s... " (if branchp "branch" "tag")) |
| @@ -1980,7 +1980,7 @@ allowed and simply skipped)." | |||
| 1980 | ;; For VC's that do not work at file level, it's pointless | 1980 | ;; For VC's that do not work at file level, it's pointless |
| 1981 | ;; to ask for a directory, branches are created at repository level. | 1981 | ;; to ask for a directory, branches are created at repository level. |
| 1982 | default-directory | 1982 | default-directory |
| 1983 | (read-file-name "Directory: " default-directory default-directory t)) | 1983 | (read-directory-name "Directory: " default-directory default-directory t)) |
| 1984 | (read-string "Tag name to retrieve (default latest revisions): ")))) | 1984 | (read-string "Tag name to retrieve (default latest revisions): ")))) |
| 1985 | (let ((update (yes-or-no-p "Update any affected buffers? ")) | 1985 | (let ((update (yes-or-no-p "Update any affected buffers? ")) |
| 1986 | (msg (if (or (not name) (string= name "")) | 1986 | (msg (if (or (not name) (string= name "")) |