Commit 00cffdeb authored by Michael Albinus's avatar Michael Albinus
Browse files

* net/tramp.el (tramp-handle-write-region): START can be a string.

Take care in the checks.
parent d4b06783
2010-02-28 Michael Albinus <michael.albinus@gmx.de>
* net/tramp.el (tramp-handle-write-region): START can be a string.
Take care in the checks. Reported by Dan Davison
<davison@stats.ox.ac.uk>.
2010-02-28 Michael Albinus <michael.albinus@gmx.de>
* net/dbus.el (dbus-introspect, dbus-get-property)
......
......@@ -5045,11 +5045,12 @@ Returns a file name in `tramp-auto-save-directory' for autosaving this file."
;; encoding function, then that is used for encoding the
;; contents of the tmp file.
(cond
;; `rename-file' handles direct copy and out-of-band methods.
;; `copy-file' handles direct copy and out-of-band methods.
((or (tramp-local-host-p v)
(tramp-method-out-of-band-p
v (- (or end (point-max)) (or start (point-min)))))
(if (and (= (or end (point-max)) (point-max))
v (nth 7 (file-attributes tmpfile))))
(if (and (not (stringp start))
(= (or end (point-max)) (point-max))
(= (or start (point-min)) (point-min))
(tramp-get-method-parameter
method 'tramp-copy-keep-tmpfile))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment