all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Remote display-time-mail-file
Date: Fri, 17 Sep 2010 15:11:09 +0200	[thread overview]
Message-ID: <nqhbho7bwy.fsf@alcatel-lucent.com> (raw)
In-Reply-To: <83r5gs1th2.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 17 Sep 2010 13:48:25 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

> Yes, this fixes the problem, thanks.
>
> So what are the triggers for Tramp to refresh its cache?  Does every
> function which deal with files that can be modified behind Emacs's
> back need to bind tramp-cache-inhibit-cache to a non-nil value?

Until now, we have only the variable `process-file-side-effects'. When
non-nil, a call of `process-file' is expected to modify files out of
Emacs' control, and packages like Tramp must invalidate the respective
file attributes cache. The default value is t (any process might have
side effects); it could be let-bound to nil in case one knows there
aren't side effects for a given process call.

Apart from this, we have no general mechanism to indicate that files
could have changed. We could introduce a similar variable
`remote-file-side-effects' (tell me a better name, if you know), which
does it say in general. It's default value shall be nil, but in cases
file attributes caches hurt (like in your example), one could let-bind
it to t.

I wouldn't recommend to disable Tramp's file attributes cache at
all. There are serious performance improvements, using the cache.

Best regards, Michael.



  reply	other threads:[~2010-09-17 13:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-16 18:38 Remote display-time-mail-file Eli Zaretskii
2010-09-16 20:14 ` Eli Zaretskii
2010-09-16 21:01   ` Michael Albinus
2010-09-17 11:48     ` Eli Zaretskii
2010-09-17 13:11       ` Michael Albinus [this message]
2010-09-17 15:37         ` Stefan Monnier
2010-09-17 20:26           ` Michael Albinus
2010-09-17 20:59             ` Michael Albinus
2010-09-17 21:43               ` Eli Zaretskii
2010-09-18  6:47                 ` Michael Albinus
2010-09-18  9:00                 ` Stefan Monnier
2010-09-18  9:06                   ` Michael Albinus
2010-09-18  9:08                   ` Eli Zaretskii
2010-09-18 10:49                     ` Michael Albinus
2010-09-30 13:07                     ` Michael Albinus
2010-09-30 13:29                       ` Eli Zaretskii
2010-09-30 14:01                         ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=nqhbho7bwy.fsf@alcatel-lucent.com \
    --to=michael.albinus@gmx.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.