aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/vc/diff-mode.el
diff options
context:
space:
mode:
authorJoakim Verona2011-12-28 04:12:56 +0100
committerJoakim Verona2011-12-28 04:12:56 +0100
commitbb29f044aa967831cd664c54eba0de0c701436ce (patch)
tree1398cc9780bbae0fdad071a3a3765a571c3f6d7b /lisp/vc/diff-mode.el
parent3c935a7e996701244d166f684119f0ff97e25496 (diff)
parent5e605a2e528955721fc6f2bd7b9f174c15075fb1 (diff)
downloademacs-bb29f044aa967831cd664c54eba0de0c701436ce.tar.gz
emacs-bb29f044aa967831cd664c54eba0de0c701436ce.zip
upstream i think
Diffstat (limited to 'lisp/vc/diff-mode.el')
-rw-r--r--lisp/vc/diff-mode.el10
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))))))