[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp no longer recognizes when remote files changed
From: |
Michael Albinus |
Subject: |
Re: tramp no longer recognizes when remote files changed |
Date: |
Fri, 27 Jul 2007 11:31:10 +0200 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) |
Sascha Wilde <address@hidden> writes:
>> Maybe one could introduce an option whether such caches shall be used,
>> or not.
>
> Yes, I would highly appreciate that!
Could you, please, try the appended patch? You must set
`file-precious-flag' to t.
> Cheers
> sascha
Best regards, Michael.
*** /home/albinus/src/tramp/lisp/tramp-cache.el 2007-07-27 11:14:10.000000000
+0200
--- /home/albinus/src/emacs/lisp/net/tramp-cache.el 2007-07-10
20:45:30.000000000 +0200
***************
*** 108,124 ****
(defun tramp-set-file-property (vec file property value)
"Set the PROPERTY of FILE to VALUE, in the cache context of VEC.
! It is not set when `file-precious-flag' is non-nil. Returns VALUE."
! (unless file-precious-flag
! ;; Unify localname.
! (setq vec (copy-sequence vec))
! (aset vec 3 (directory-file-name file))
! (let ((hash (or (gethash vec tramp-cache-data)
! (puthash vec (make-hash-table :test 'equal)
! tramp-cache-data))))
! (puthash property value hash)
! (tramp-message vec 8 "%s %s %s" file property value)))
! value)
(defun tramp-flush-file-property (vec file)
"Remove all properties of FILE in the cache context of VEC."
--- 108,123 ----
(defun tramp-set-file-property (vec file property value)
"Set the PROPERTY of FILE to VALUE, in the cache context of VEC.
! Returns VALUE."
! ;; Unify localname.
! (setq vec (copy-sequence vec))
! (aset vec 3 (directory-file-name file))
! (let ((hash (or (gethash vec tramp-cache-data)
! (puthash vec (make-hash-table :test 'equal)
! tramp-cache-data))))
! (puthash property value hash)
! (tramp-message vec 8 "%s %s %s" file property value)
! value))
(defun tramp-flush-file-property (vec file)
"Remove all properties of FILE in the cache context of VEC."
- tramp no longer recognizes when remote files changed, Sascha Wilde, 2007/07/27
- Re: tramp no longer recognizes when remote files changed, Michael Albinus, 2007/07/27
- Re: tramp no longer recognizes when remote files changed, Sascha Wilde, 2007/07/27
- Re: tramp no longer recognizes when remote files changed,
Michael Albinus <=
- Re: tramp no longer recognizes when remote files changed, Sascha Wilde, 2007/07/27
- Re: tramp no longer recognizes when remote files changed, Richard Stallman, 2007/07/28
- Re: tramp no longer recognizes when remote files changed, Michael Albinus, 2007/07/29
- Re: tramp no longer recognizes when remote files changed, Richard Stallman, 2007/07/30
- Re: tramp no longer recognizes when remote files changed, Michael Albinus, 2007/07/30
- Re: tramp no longer recognizes when remote files changed, Sascha Wilde, 2007/07/30
- Re: tramp no longer recognizes when remote files changed, Stefan Monnier, 2007/07/27
- Re: tramp no longer recognizes when remote files changed, martin rudalics, 2007/07/28