Commit 484ea0b6 authored by Michael Albinus's avatar Michael Albinus
Browse files

* 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>.
parent a8ed19ca
2008-01-24 Michael Albinus <michael.albinus@gmx.de>
* 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>.
2008-01-24 Ken Manheimer <ken.manheimer@gmail.com>
* allout.el (allout-keybindings-list): In initial setting, express
......
......@@ -3034,6 +3034,11 @@ and `rename'. FILENAME and NEWNAME must be absolute file names."
;; 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
......
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