diff options
| author | Richard M. Stallman | 1994-12-16 14:03:04 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-12-16 14:03:04 +0000 |
| commit | 90371ec97bc3e53176f86432c49e2fec8cf19265 (patch) | |
| tree | d710bafb25bc02dcca360cdaffa7944ec7951519 | |
| parent | bec0d7f9d9f42d38d32f58203491b8a4de6c5b2e (diff) | |
| download | emacs-90371ec97bc3e53176f86432c49e2fec8cf19265.tar.gz emacs-90371ec97bc3e53176f86432c49e2fec8cf19265.zip | |
(emerge-read-file-name): New arg must-match.
(emerge-files, emerge-files-with-ancestor): Pass new arg.
| -rw-r--r-- | lisp/emerge.el | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lisp/emerge.el b/lisp/emerge.el index ec316c76554..15118a0ab6a 100644 --- a/lisp/emerge.el +++ b/lisp/emerge.el | |||
| @@ -853,11 +853,11 @@ This is *not* a user option, since Emerge uses it for its own processing.") | |||
| 853 | (let (f) | 853 | (let (f) |
| 854 | (list current-prefix-arg | 854 | (list current-prefix-arg |
| 855 | (setq f (emerge-read-file-name "File A to merge" emerge-last-dir-A | 855 | (setq f (emerge-read-file-name "File A to merge" emerge-last-dir-A |
| 856 | nil nil)) | 856 | nil nil t)) |
| 857 | (emerge-read-file-name "File B to merge" emerge-last-dir-B nil f) | 857 | (emerge-read-file-name "File B to merge" emerge-last-dir-B nil f t) |
| 858 | (and current-prefix-arg | 858 | (and current-prefix-arg |
| 859 | (emerge-read-file-name "Output file" emerge-last-dir-output | 859 | (emerge-read-file-name "Output file" emerge-last-dir-output |
| 860 | f f))))) | 860 | f f nil))))) |
| 861 | (emerge-files-internal | 861 | (emerge-files-internal |
| 862 | file-A file-B startup-hooks | 862 | file-A file-B startup-hooks |
| 863 | (if file-out | 863 | (if file-out |
| @@ -874,13 +874,13 @@ This is *not* a user option, since Emerge uses it for its own processing.") | |||
| 874 | (let (f) | 874 | (let (f) |
| 875 | (list current-prefix-arg | 875 | (list current-prefix-arg |
| 876 | (setq f (emerge-read-file-name "File A to merge" emerge-last-dir-A | 876 | (setq f (emerge-read-file-name "File A to merge" emerge-last-dir-A |
| 877 | nil nil)) | 877 | nil nil t)) |
| 878 | (emerge-read-file-name "File B to merge" emerge-last-dir-B nil f) | 878 | (emerge-read-file-name "File B to merge" emerge-last-dir-B nil f t) |
| 879 | (emerge-read-file-name "Ancestor file" emerge-last-dir-ancestor | 879 | (emerge-read-file-name "Ancestor file" emerge-last-dir-ancestor |
| 880 | nil f) | 880 | nil f t) |
| 881 | (and current-prefix-arg | 881 | (and current-prefix-arg |
| 882 | (emerge-read-file-name "Output file" emerge-last-dir-output | 882 | (emerge-read-file-name "Output file" emerge-last-dir-output |
| 883 | f f))))) | 883 | f f nil))))) |
| 884 | (emerge-files-with-ancestor-internal | 884 | (emerge-files-with-ancestor-internal |
| 885 | file-A file-B file-ancestor startup-hooks | 885 | file-A file-B file-ancestor startup-hooks |
| 886 | (if file-out | 886 | (if file-out |
| @@ -2737,7 +2737,7 @@ keymap. Leaves merge in fast mode." | |||
| 2737 | ;; Read a file name, handling all of the various defaulting rules. | 2737 | ;; Read a file name, handling all of the various defaulting rules. |
| 2738 | 2738 | ||
| 2739 | (defun emerge-read-file-name (prompt alternative-default-dir default-file | 2739 | (defun emerge-read-file-name (prompt alternative-default-dir default-file |
| 2740 | A-file) | 2740 | A-file must-match) |
| 2741 | ;; `prompt' should not have trailing ": ", so that it can be modified | 2741 | ;; `prompt' should not have trailing ": ", so that it can be modified |
| 2742 | ;; according to context. | 2742 | ;; according to context. |
| 2743 | ;; If alternative-default-dir is non-nil, it should be used as the default | 2743 | ;; If alternative-default-dir is non-nil, it should be used as the default |
| @@ -2765,7 +2765,7 @@ keymap. Leaves merge in fast mode." | |||
| 2765 | alternative-default-dir | 2765 | alternative-default-dir |
| 2766 | (concat alternative-default-dir | 2766 | (concat alternative-default-dir |
| 2767 | (file-name-nondirectory A-file)) | 2767 | (file-name-nondirectory A-file)) |
| 2768 | 'confirm)) | 2768 | (and must-match 'confirm))) |
| 2769 | ;; If there is a default file, use it. | 2769 | ;; If there is a default file, use it. |
| 2770 | (default-file | 2770 | (default-file |
| 2771 | (read-file-name (format "%s (default %s): " prompt default-file) | 2771 | (read-file-name (format "%s (default %s): " prompt default-file) |
| @@ -2774,7 +2774,7 @@ keymap. Leaves merge in fast mode." | |||
| 2774 | ;; Emerge as the default for this argument. | 2774 | ;; Emerge as the default for this argument. |
| 2775 | (and emerge-default-last-directories | 2775 | (and emerge-default-last-directories |
| 2776 | alternative-default-dir) | 2776 | alternative-default-dir) |
| 2777 | default-file 'confirm)) | 2777 | default-file (and must-match 'confirm))) |
| 2778 | (t | 2778 | (t |
| 2779 | (read-file-name (concat prompt ": ") | 2779 | (read-file-name (concat prompt ": ") |
| 2780 | ;; If emerge-default-last-directories is set, use the | 2780 | ;; If emerge-default-last-directories is set, use the |
| @@ -2782,7 +2782,7 @@ keymap. Leaves merge in fast mode." | |||
| 2782 | ;; Emerge as the default for this argument. | 2782 | ;; Emerge as the default for this argument. |
| 2783 | (and emerge-default-last-directories | 2783 | (and emerge-default-last-directories |
| 2784 | alternative-default-dir) | 2784 | alternative-default-dir) |
| 2785 | nil 'confirm)))) | 2785 | nil (and must-match 'confirm))))) |
| 2786 | 2786 | ||
| 2787 | ;; Revise the mode line to display which difference we have selected | 2787 | ;; Revise the mode line to display which difference we have selected |
| 2788 | 2788 | ||