diff options
| author | Michael Albinus | 2012-02-25 09:51:32 +0100 |
|---|---|---|
| committer | Michael Albinus | 2012-02-25 09:51:32 +0100 |
| commit | a3fcfa99f65c578d857ce0f6e8595f6a5ad77ec8 (patch) | |
| tree | b2b6ad8910ae1a40fb51e3c1756b62e60f4349da | |
| parent | 67b0de11479247cb8bd8491e10e0b464046f18be (diff) | |
| download | emacs-a3fcfa99f65c578d857ce0f6e8595f6a5ad77ec8.tar.gz emacs-a3fcfa99f65c578d857ce0f6e8595f6a5ad77ec8.zip | |
* 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.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 2 | ||||
| -rw-r--r-- | lisp/net/tramp-smb.el | 2 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 2 |
4 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8d3ff6c4225..764efc4d640 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2012-02-25 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-file-name-for-operation): Add | ||
| 4 | `files-equal-p' and `file-subdir-of-p'. | ||
| 5 | |||
| 6 | * net/tramp-sh.el (tramp-sh-handle-copy-directory): | ||
| 7 | * net/tramp-smb.el (tramp-smb-handle-copy-directory): Add | ||
| 8 | COPY-CONTENTS argument. | ||
| 9 | |||
| 1 | 2012-02-25 Chong Yidong <cyd@gnu.org> | 10 | 2012-02-25 Chong Yidong <cyd@gnu.org> |
| 2 | 11 | ||
| 3 | Add custom groups for VC backends, for consistency with vc-bzr. | 12 | Add custom groups for VC backends, for consistency with vc-bzr. |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 38e19730a6d..801ec5f5fc9 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -1909,7 +1909,7 @@ tramp-sh-handle-file-name-all-completions: internal error accessing `%s': `%s'" | |||
| 1909 | 'copy-file (list filename newname ok-if-already-exists keep-date))))) | 1909 | 'copy-file (list filename newname ok-if-already-exists keep-date))))) |
| 1910 | 1910 | ||
| 1911 | (defun tramp-sh-handle-copy-directory | 1911 | (defun tramp-sh-handle-copy-directory |
| 1912 | (dirname newname &optional keep-date parents) | 1912 | (dirname newname &optional keep-date parents copy-contents) |
| 1913 | "Like `copy-directory' for Tramp files." | 1913 | "Like `copy-directory' for Tramp files." |
| 1914 | (let ((t1 (tramp-tramp-file-p dirname)) | 1914 | (let ((t1 (tramp-tramp-file-p dirname)) |
| 1915 | (t2 (tramp-tramp-file-p newname))) | 1915 | (t2 (tramp-tramp-file-p newname))) |
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el index afce61cba83..d3f0d8afb12 100644 --- a/lisp/net/tramp-smb.el +++ b/lisp/net/tramp-smb.el | |||
| @@ -288,7 +288,7 @@ pass to the OPERATION." | |||
| 288 | (buffer-name)))))) | 288 | (buffer-name)))))) |
| 289 | 289 | ||
| 290 | (defun tramp-smb-handle-copy-directory | 290 | (defun tramp-smb-handle-copy-directory |
| 291 | (dirname newname &optional keep-date parents) | 291 | (dirname newname &optional keep-date parents copy-contents) |
| 292 | "Like `copy-directory' for Tramp files. KEEP-DATE is not handled." | 292 | "Like `copy-directory' for Tramp files. KEEP-DATE is not handled." |
| 293 | (setq dirname (expand-file-name dirname) | 293 | (setq dirname (expand-file-name dirname) |
| 294 | newname (expand-file-name newname)) | 294 | newname (expand-file-name newname)) |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 851b11629f4..cc1977dfe22 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -1809,6 +1809,8 @@ ARGS are the arguments OPERATION has been called with." | |||
| 1809 | 'file-newer-than-file-p 'make-symbolic-link 'rename-file | 1809 | 'file-newer-than-file-p 'make-symbolic-link 'rename-file |
| 1810 | ;; Emacs 23+ only. | 1810 | ;; Emacs 23+ only. |
| 1811 | 'copy-directory | 1811 | 'copy-directory |
| 1812 | ;; Emacs 24+ only. | ||
| 1813 | 'files-equal-p 'file-subdir-of-p | ||
| 1812 | ;; XEmacs only. | 1814 | ;; XEmacs only. |
| 1813 | 'dired-make-relative-symlink | 1815 | 'dired-make-relative-symlink |
| 1814 | 'vm-imap-move-mail 'vm-pop-move-mail 'vm-spool-move-mail)) | 1816 | 'vm-imap-move-mail 'vm-pop-move-mail 'vm-spool-move-mail)) |