aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2008-01-24 21:28:56 +0000
committerMichael Albinus2008-01-24 21:28:56 +0000
commit484ea0b6c9e54a6e58bbf240bd723161c4d6d4cf (patch)
treeaf3bb04b0d2dacb30385868dedc08165848acd15
parenta8ed19cada1fb67dd87abf39a39d9d1c4d7ebbe6 (diff)
downloademacs-484ea0b6c9e54a6e58bbf240bd723161c4d6d4cf.tar.gz
emacs-484ea0b6c9e54a6e58bbf240bd723161c4d6d4cf.zip
* 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>.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/net/tramp.el5
2 files changed, 11 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 761a8fa3f81..2cc13c1c664 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12008-01-24 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp.el (tramp-do-copy-or-rename-file): Flush the cache of
4 the source file in case of `rename'. Reported by Pete Forman
5 <pete.forman@westerngeco.com>.
6
12008-01-24 Ken Manheimer <ken.manheimer@gmail.com> 72008-01-24 Ken Manheimer <ken.manheimer@gmail.com>
2 8
3 * allout.el (allout-keybindings-list): In initial setting, express 9 * allout.el (allout-keybindings-list): In initial setting, express
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 7c3153fc0be..4aa092ad704 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -3034,6 +3034,11 @@ and `rename'. FILENAME and NEWNAME must be absolute file names."
3034 ;; One of them must be a Tramp file. 3034 ;; One of them must be a Tramp file.
3035 (error "Tramp implementation says this cannot happen"))) 3035 (error "Tramp implementation says this cannot happen")))
3036 3036
3037 ;; In case of `rename', we must flush the cache of the source file.
3038 (when (and t1 (eq op 'rename))
3039 (with-parsed-tramp-file-name filename nil
3040 (tramp-flush-file-property v localname)))
3041
3037 ;; When newname did exist, we have wrong cached values. 3042 ;; When newname did exist, we have wrong cached values.
3038 (when t2 3043 (when t2
3039 (with-parsed-tramp-file-name newname nil 3044 (with-parsed-tramp-file-name newname nil