aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/vc
diff options
context:
space:
mode:
authorMichael Albinus2011-11-29 15:59:24 +0100
committerMichael Albinus2011-11-29 15:59:24 +0100
commitf3af92b794bcce576fb0acad47b41f677a2b41dc (patch)
tree24c585b203ca99b6cff0c11d8355a5f970fe062e /lisp/vc
parented472be992d255fc4db5f612ecc9b3e6e094bee1 (diff)
downloademacs-f3af92b794bcce576fb0acad47b41f677a2b41dc.tar.gz
emacs-f3af92b794bcce576fb0acad47b41f677a2b41dc.zip
* vc/diff-mode.el (diff-find-file-name): Make `read-file-name'
aware of remote file names. (Bug#10124)
Diffstat (limited to 'lisp/vc')
-rw-r--r--lisp/vc/diff-mode.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el
index dd919ea7ebf..8f4b59f9e53 100644
--- a/lisp/vc/diff-mode.el
+++ b/lisp/vc/diff-mode.el
@@ -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))))))