+2012-07-03 Michael Albinus <michael.albinus@gmx.de>
+
+ * vc/ediff-diff.el (ediff-same-file-contents): Fix it for remote
+ files on the same host.
+
2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
* help-fns.el (describe-function-1): Only call
(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)))
))