From d66467ef0cd4e6c85f115f680bd850b671a46ab0 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Mon, 6 Jul 2009 13:40:48 +0000 Subject: [PATCH] * net/tramp.el (tramp-handle-write-region): Flush file properties in case of short track. --- lisp/ChangeLog | 5 +++++ lisp/net/tramp.el | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5d64c6c6443..8ec80fccabc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-07-06 Michael Albinus + + * net/tramp.el (tramp-handle-write-region): Flush file properties + in case of short track. + 2009-07-06 Glenn Morris * subr.el (eval-after-load): Doc fix. diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 517485a1d65..01ce21698a4 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -4364,9 +4364,11 @@ Returns a file name in `tramp-auto-save-directory' for autosaving this file." (or (file-directory-p localname) (file-writable-p localname))))) ;; Short track: if we are on the local host, we can run directly. - (tramp-run-real-handler - 'write-region - (list start end localname append 'no-message lockname confirm)) + (prog1 + (tramp-run-real-handler + 'write-region + (list start end localname append 'no-message lockname confirm)) + (tramp-flush-file-property v localname)) (let ((rem-dec (tramp-get-remote-coding v "remote-decoding")) (loc-enc (tramp-get-local-coding v "local-encoding")) -- 2.39.2