diff options
author | Michael Albinus <[email protected]> | 2012-07-03 09:42:31 +0200 |
---|---|---|
committer | Michael Albinus <[email protected]> | 2012-07-03 09:42:31 +0200 |
commit | b4886f6ece24edc42f796aef763ce08ab3aca75d (patch) | |
tree | 4df2c50145176db240284e98f44baad38ba68a3e /lisp/vc | |
parent | b9d8233998965b6d8206bfd0643d25377a1f018f (diff) |
* vc/ediff-diff.el (ediff-same-file-contents): Fix it for remote
files on the same host.
Diffstat (limited to 'lisp/vc')
-rw-r--r-- | lisp/vc/ediff-diff.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/vc/ediff-diff.el b/lisp/vc/ediff-diff.el index 6d67356852..31a5436acd 100644 --- a/lisp/vc/ediff-diff.el +++ b/lisp/vc/ediff-diff.el @@ -1407,9 +1407,14 @@ arguments to `skip-chars-forward'." (if (and (not (file-directory-p f1)) (not (file-directory-p f2))) (let ((res - (apply 'call-process ediff-cmp-program nil nil nil - (append ediff-cmp-options (list (expand-file-name f1) - (expand-file-name f2)))) + ;; In the remote case, this works only if F1 and F2 are + ;; located on the same remote host. + (apply 'process-file ediff-cmp-program nil nil nil + (append ediff-cmp-options + (list (or (file-remote-p f1 'localname) + (expand-file-name f1)) + (or (file-remote-p f2 'localname) + (expand-file-name f2))))) )) (and (numberp res) (eq res 0))) )) |