Mercurial > emacs
changeset 87947:16643a585a09
* net/tramp.el (tramp-do-copy-or-rename-file): Flush the cache of
the source file in case of `rename'. Reported by Pete Forman
<pete.forman@westerngeco.com>.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Thu, 24 Jan 2008 21:26:52 +0000 |
parents | a146c6aabda1 |
children | 38c1b76b7b74 |
files | lisp/net/tramp.el |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/net/tramp.el Thu Jan 24 18:45:04 2008 +0000 +++ b/lisp/net/tramp.el Thu Jan 24 21:26:52 2008 +0000 @@ -3034,6 +3034,11 @@ ;; One of them must be a Tramp file. (error "Tramp implementation says this cannot happen"))) + ;; In case of `rename', we must flush the cache of the source file. + (when (and t1 (eq op 'rename)) + (with-parsed-tramp-file-name filename nil + (tramp-flush-file-property v localname))) + ;; When newname did exist, we have wrong cached values. (when t2 (with-parsed-tramp-file-name newname nil