aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2010-02-28 12:36:39 +0100
committerMichael Albinus2010-02-28 12:36:39 +0100
commit00cffdeb90bc80bf9d5cd73e350083573780f742 (patch)
treef955e44b767f03950849bccc4fa39b37fbd36038
parentd4b067837ead8978610ca2684fb7bc4e32b35bc1 (diff)
downloademacs-00cffdeb90bc80bf9d5cd73e350083573780f742.tar.gz
emacs-00cffdeb90bc80bf9d5cd73e350083573780f742.zip
* net/tramp.el (tramp-handle-write-region): START can be a string.
Take care in the checks.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/net/tramp.el7
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cd06672cfb9..329139951a9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,11 @@
12010-02-28 Michael Albinus <michael.albinus@gmx.de> 12010-02-28 Michael Albinus <michael.albinus@gmx.de>
2 2
3 * net/tramp.el (tramp-handle-write-region): START can be a string.
4 Take care in the checks. Reported by Dan Davison
5 <davison@stats.ox.ac.uk>.
6
72010-02-28 Michael Albinus <michael.albinus@gmx.de>
8
3 * net/dbus.el (dbus-introspect, dbus-get-property) 9 * net/dbus.el (dbus-introspect, dbus-get-property)
4 (dbus-set-property, dbus-get-all-properties): Use 10 (dbus-set-property, dbus-get-all-properties): Use
5 `dbus-call-method' when noninteractive. (Bug#5645) 11 `dbus-call-method' when noninteractive. (Bug#5645)
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 102117f82e9..0957c78eddf 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -5045,11 +5045,12 @@ Returns a file name in `tramp-auto-save-directory' for autosaving this file."
5045 ;; encoding function, then that is used for encoding the 5045 ;; encoding function, then that is used for encoding the
5046 ;; contents of the tmp file. 5046 ;; contents of the tmp file.
5047 (cond 5047 (cond
5048 ;; `rename-file' handles direct copy and out-of-band methods. 5048 ;; `copy-file' handles direct copy and out-of-band methods.
5049 ((or (tramp-local-host-p v) 5049 ((or (tramp-local-host-p v)
5050 (tramp-method-out-of-band-p 5050 (tramp-method-out-of-band-p
5051 v (- (or end (point-max)) (or start (point-min))))) 5051 v (nth 7 (file-attributes tmpfile))))
5052 (if (and (= (or end (point-max)) (point-max)) 5052 (if (and (not (stringp start))
5053 (= (or end (point-max)) (point-max))
5053 (= (or start (point-min)) (point-min)) 5054 (= (or start (point-min)) (point-min))
5054 (tramp-get-method-parameter 5055 (tramp-get-method-parameter
5055 method 'tramp-copy-keep-tmpfile)) 5056 method 'tramp-copy-keep-tmpfile))