diff options
Diffstat (limited to 'lisp/vc/diff-mode.el')
| -rw-r--r-- | lisp/vc/diff-mode.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 9f0fa584b0d..8f4b59f9e53 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el | |||
| @@ -146,7 +146,7 @@ when editing big diffs)." | |||
| 146 | ;; but not all since they may hide useful M-<foo> global | 146 | ;; but not all since they may hide useful M-<foo> global |
| 147 | ;; bindings when editing. | 147 | ;; bindings when editing. |
| 148 | (set-keymap-parent map diff-mode-shared-map) | 148 | (set-keymap-parent map diff-mode-shared-map) |
| 149 | (dolist (key '("A" "r" "R" "g" "q" "W")) | 149 | (dolist (key '("A" "r" "R" "g" "q" "W" "z")) |
| 150 | (define-key map key nil)) | 150 | (define-key map key nil)) |
| 151 | map)) | 151 | map)) |
| 152 | ;; From compilation-minor-mode. | 152 | ;; From compilation-minor-mode. |
| @@ -815,9 +815,11 @@ PREFIX is only used internally: don't use it." | |||
| 815 | (diff-find-file-name old noprompt (match-string 1))) | 815 | (diff-find-file-name old noprompt (match-string 1))) |
| 816 | ;; if all else fails, ask the user | 816 | ;; if all else fails, ask the user |
| 817 | (unless noprompt | 817 | (unless noprompt |
| 818 | (let ((file (read-file-name (format "Use file %s: " | 818 | (let ((file (expand-file-name (or (first fs) "")))) |
| 819 | (or (first fs) "")) | 819 | (setq file |
| 820 | nil (first fs) t (first fs)))) | 820 | (read-file-name (format "Use file %s: " file) |
| 821 | (file-name-directory file) file t | ||
| 822 | (file-name-nondirectory file))) | ||
| 821 | (set (make-local-variable 'diff-remembered-files-alist) | 823 | (set (make-local-variable 'diff-remembered-files-alist) |
| 822 | (cons (cons fs file) diff-remembered-files-alist)) | 824 | (cons (cons fs file) diff-remembered-files-alist)) |
| 823 | file)))))) | 825 | file)))))) |