`files-equal-p' and `file-subdir-of-p'.
* net/tramp-sh.el (tramp-sh-handle-copy-directory):
* net/tramp-smb.el (tramp-smb-handle-copy-directory): Add
COPY-CONTENTS argument.
+2012-02-25 Michael Albinus <michael.albinus@gmx.de>
+
+ * net/tramp.el (tramp-file-name-for-operation): Add
+ `files-equal-p' and `file-subdir-of-p'.
+
+ * net/tramp-sh.el (tramp-sh-handle-copy-directory):
+ * net/tramp-smb.el (tramp-smb-handle-copy-directory): Add
+ COPY-CONTENTS argument.
+
2012-02-25 Chong Yidong <cyd@gnu.org>
Add custom groups for VC backends, for consistency with vc-bzr.
'copy-file (list filename newname ok-if-already-exists keep-date)))))
(defun tramp-sh-handle-copy-directory
- (dirname newname &optional keep-date parents)
+ (dirname newname &optional keep-date parents copy-contents)
"Like `copy-directory' for Tramp files."
(let ((t1 (tramp-tramp-file-p dirname))
(t2 (tramp-tramp-file-p newname)))
(buffer-name))))))
(defun tramp-smb-handle-copy-directory
- (dirname newname &optional keep-date parents)
+ (dirname newname &optional keep-date parents copy-contents)
"Like `copy-directory' for Tramp files. KEEP-DATE is not handled."
(setq dirname (expand-file-name dirname)
newname (expand-file-name newname))
'file-newer-than-file-p 'make-symbolic-link 'rename-file
;; Emacs 23+ only.
'copy-directory
+ ;; Emacs 24+ only.
+ 'files-equal-p 'file-subdir-of-p
;; XEmacs only.
'dired-make-relative-symlink
'vm-imap-move-mail 'vm-pop-move-mail 'vm-spool-move-mail))