mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-22 18:35:09 +00:00
* net/tramp.el (tramp-handle-copy-directory): Don't use
`file-remote-p' (due to compatibility).
This commit is contained in:
parent
c277095718
commit
b000a6e24e
@ -3404,8 +3404,9 @@ tramp-handle-file-name-all-completions: internal error accessing `%s': `%s'"
|
||||
;; When DIRNAME and NEWNAME are remote, they must have
|
||||
;; the same method.
|
||||
(or (null t1) (null t2)
|
||||
(string-equal (file-remote-p dirname 'method)
|
||||
(file-remote-p newname 'method))))
|
||||
(string-equal
|
||||
(tramp-file-name-method (tramp-dissect-file-name dirname))
|
||||
(tramp-file-name-method (tramp-dissect-file-name newname)))))
|
||||
;; scp or rsync DTRT.
|
||||
(progn
|
||||
(setq dirname (directory-file-name (expand-file-name dirname))
|
||||
|
Loading…
Reference in New Issue
Block a user