diff options
| author | Michael Albinus | 2012-07-03 09:42:31 +0200 |
|---|---|---|
| committer | Michael Albinus | 2012-07-03 09:42:31 +0200 |
| commit | b4886f6ece24edc42f796aef763ce08ab3aca75d (patch) | |
| tree | 4df2c50145176db240284e98f44baad38ba68a3e | |
| parent | b9d8233998965b6d8206bfd0643d25377a1f018f (diff) | |
| download | emacs-b4886f6ece24edc42f796aef763ce08ab3aca75d.tar.gz emacs-b4886f6ece24edc42f796aef763ce08ab3aca75d.zip | |
* vc/ediff-diff.el (ediff-same-file-contents): Fix it for remote
files on the same host.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc/ediff-diff.el | 11 |
2 files changed, 13 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6a9e648f1cc..ff526afcee1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-07-03 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * vc/ediff-diff.el (ediff-same-file-contents): Fix it for remote | ||
| 4 | files on the same host. | ||
| 5 | |||
| 1 | 2012-07-03 Andreas Schwab <schwab@linux-m68k.org> | 6 | 2012-07-03 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 7 | ||
| 3 | * help-fns.el (describe-function-1): Only call | 8 | * help-fns.el (describe-function-1): Only call |
diff --git a/lisp/vc/ediff-diff.el b/lisp/vc/ediff-diff.el index 6d67356852c..31a5436acd9 100644 --- a/lisp/vc/ediff-diff.el +++ b/lisp/vc/ediff-diff.el | |||
| @@ -1407,9 +1407,14 @@ arguments to `skip-chars-forward'." | |||
| 1407 | (if (and (not (file-directory-p f1)) | 1407 | (if (and (not (file-directory-p f1)) |
| 1408 | (not (file-directory-p f2))) | 1408 | (not (file-directory-p f2))) |
| 1409 | (let ((res | 1409 | (let ((res |
| 1410 | (apply 'call-process ediff-cmp-program nil nil nil | 1410 | ;; In the remote case, this works only if F1 and F2 are |
| 1411 | (append ediff-cmp-options (list (expand-file-name f1) | 1411 | ;; located on the same remote host. |
| 1412 | (expand-file-name f2)))) | 1412 | (apply 'process-file ediff-cmp-program nil nil nil |
| 1413 | (append ediff-cmp-options | ||
| 1414 | (list (or (file-remote-p f1 'localname) | ||
| 1415 | (expand-file-name f1)) | ||
| 1416 | (or (file-remote-p f2 'localname) | ||
| 1417 | (expand-file-name f2))))) | ||
| 1413 | )) | 1418 | )) |
| 1414 | (and (numberp res) (eq res 0))) | 1419 | (and (numberp res) (eq res 0))) |
| 1415 | )) | 1420 | )) |