[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
process-file and Tramp's file cache (was: bug#1741: 23.0.60; vc fail to
From: |
Michael Albinus |
Subject: |
process-file and Tramp's file cache (was: bug#1741: 23.0.60; vc fail to register file while logged as /su:: with tramp) |
Date: |
Tue, 18 Aug 2009 12:16:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
> BTW, to improve the behavior in case of things like "git status", it
> might be worthwhile to add some way to indicate that a particular use of
> process-file is (supposed to be) free of side-effects.
I would like to introduce a new variable `process-file-modification-list'.
It's default value shall be `t', which means that any file on the remote
host could have been modified by the corresponding `process-file' call.
`nil' means that no file is modified during `process-file'. A list of
strings (remote file names) are indication, that exactly those files are
modified, when `process-file' runs.
This would allow Tramp to optimize its file cache. Currently, it assumes
after every `process-file' call, that all cached values are invalid.
This results in unnecessary check operations on the remote side.
A typical use case in `vc-registered' would look like this:
(let (handler process-file-modification-list)
(cond ...
Opinions?
> Stefan
Best regards, Michael.
- process-file and Tramp's file cache (was: bug#1741: 23.0.60; vc fail to register file while logged as /su:: with tramp),
Michael Albinus <=