* 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>.
This commit is contained in:
parent
a8ed19cada
commit
484ea0b6c9
2 changed files with 11 additions and 0 deletions
|
|
@ -1,3 +1,9 @@
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue