diff options
| author | Lars Hansen | 2006-10-29 12:55:35 +0000 |
|---|---|---|
| committer | Lars Hansen | 2006-10-29 12:55:35 +0000 |
| commit | 8e7225a26292e10aff20e01c27d93fa9d5fa17a8 (patch) | |
| tree | f54ae7861599f7a38ef7a992106421bf65141517 | |
| parent | b90a614915352447f3b5de4f17d304ac7813bcfd (diff) | |
| download | emacs-8e7225a26292e10aff20e01c27d93fa9d5fa17a8.tar.gz emacs-8e7225a26292e10aff20e01c27d93fa9d5fa17a8.zip | |
(with-parsed-tramp-file-name): Correct debug spec. Highlight as keyword.
(tramp-do-copy-or-rename-file): Correct data for 'file-already-exists.
Don't call tramp-method-out-of-band-p for local files.
(tramp-touch): Quote file name.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 21 |
2 files changed, 17 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 67854bf930e..17d1794fec3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2006-10-29 Lars Hansen <larsh@soem.dk> | ||
| 2 | * net/tramp.el (with-parsed-tramp-file-name): Correct debug | ||
| 3 | spec. Highlight as keyword. | ||
| 4 | (tramp-do-copy-or-rename-file): Correct data for 'file-already-exists. | ||
| 5 | Don't call tramp-method-out-of-band-p for local files. | ||
| 6 | (tramp-touch): Quote file name. | ||
| 7 | |||
| 1 | 2006-10-28 Glenn Morris <rgm@gnu.org> | 8 | 2006-10-28 Glenn Morris <rgm@gnu.org> |
| 2 | 9 | ||
| 3 | * calendar/calendar.el (cal-html-cursor-month) | 10 | * calendar/calendar.el (cal-html-cursor-month) |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 97b08e7e704..0b914a811d1 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -2018,11 +2018,10 @@ If VAR is nil, then we bind `v' to the structure and `multi-method', | |||
| 2018 | ,@body)) | 2018 | ,@body)) |
| 2019 | 2019 | ||
| 2020 | (put 'with-parsed-tramp-file-name 'lisp-indent-function 2) | 2020 | (put 'with-parsed-tramp-file-name 'lisp-indent-function 2) |
| 2021 | ;; To be activated for debugging containing this macro | 2021 | ;; Enable debugging. |
| 2022 | ;; It works only when VAR is nil. Otherwise, it can be deactivated by | 2022 | (def-edebug-spec with-parsed-tramp-file-name (form symbolp body)) |
| 2023 | ;; (put 'with-parsed-tramp-file-name 'edebug-form-spec 0) | 2023 | ;; Highlight as keyword. |
| 2024 | ;; I'm too stupid to write a precise SPEC for it. | 2024 | (font-lock-add-keywords 'emacs-lisp-mode '("\\<with-parsed-tramp-file-name\\>")) |
| 2025 | (put 'with-parsed-tramp-file-name 'edebug-form-spec t) | ||
| 2026 | 2025 | ||
| 2027 | (defmacro tramp-let-maybe (variable value &rest body) | 2026 | (defmacro tramp-let-maybe (variable value &rest body) |
| 2028 | "Let-bind VARIABLE to VALUE in BODY, but only if VARIABLE is not obsolete. | 2027 | "Let-bind VARIABLE to VALUE in BODY, but only if VARIABLE is not obsolete. |
| @@ -2905,7 +2904,7 @@ and `rename'. FILENAME and NEWNAME must be absolute file names." | |||
| 2905 | (unless ok-if-already-exists | 2904 | (unless ok-if-already-exists |
| 2906 | (when (file-exists-p newname) | 2905 | (when (file-exists-p newname) |
| 2907 | (signal 'file-already-exists | 2906 | (signal 'file-already-exists |
| 2908 | (list newname)))) | 2907 | (list "File already exists" newname)))) |
| 2909 | (let ((t1 (tramp-tramp-file-p filename)) | 2908 | (let ((t1 (tramp-tramp-file-p filename)) |
| 2910 | (t2 (tramp-tramp-file-p newname)) | 2909 | (t2 (tramp-tramp-file-p newname)) |
| 2911 | v1-multi-method v1-method v1-user v1-host v1-localname | 2910 | v1-multi-method v1-method v1-user v1-host v1-localname |
| @@ -2978,10 +2977,10 @@ and `rename'. FILENAME and NEWNAME must be absolute file names." | |||
| 2978 | ;; copy-program can be invoked. | 2977 | ;; copy-program can be invoked. |
| 2979 | (if (and (not v1-multi-method) | 2978 | (if (and (not v1-multi-method) |
| 2980 | (not v2-multi-method) | 2979 | (not v2-multi-method) |
| 2981 | (or (tramp-method-out-of-band-p | 2980 | (or (and t1 (tramp-method-out-of-band-p |
| 2982 | v1-multi-method v1-method v1-user v1-host) | 2981 | v1-multi-method v1-method v1-user v1-host)) |
| 2983 | (tramp-method-out-of-band-p | 2982 | (and t2 (tramp-method-out-of-band-p |
| 2984 | v2-multi-method v2-method v2-user v2-host))) | 2983 | v2-multi-method v2-method v2-user v2-host)))) |
| 2985 | (tramp-do-copy-or-rename-file-out-of-band | 2984 | (tramp-do-copy-or-rename-file-out-of-band |
| 2986 | op filename newname keep-date) | 2985 | op filename newname keep-date) |
| 2987 | ;; Use the generic method via a Tramp buffer. | 2986 | ;; Use the generic method via a Tramp buffer. |
| @@ -5045,7 +5044,7 @@ TIME is an Emacs internal time value as returned by `current-time'." | |||
| 5045 | multi-method method user host | 5044 | multi-method method user host |
| 5046 | (format "TZ=UTC; export TZ; touch -t %s %s" | 5045 | (format "TZ=UTC; export TZ; touch -t %s %s" |
| 5047 | touch-time | 5046 | touch-time |
| 5048 | localname) | 5047 | (tramp-shell-quote-argument localname)) |
| 5049 | t)) | 5048 | t)) |
| 5050 | (pop-to-buffer buf) | 5049 | (pop-to-buffer buf) |
| 5051 | (error "tramp-touch: touch failed, see buffer `%s' for details" | 5050 | (error "tramp-touch: touch failed, see buffer `%s' for details" |