*** /home/albinus/src/tramp/lisp/tramp.el.~1~ Wed Jan 23 21:47:20 2008 --- /home/albinus/src/tramp/lisp/tramp.el Thu Jan 24 10:51:02 2008 *************** *** 3034,3039 **** --- 3034,3044 ---- ;; 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