unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Sascha Wilde <wilde@sha-bang.de>
Cc: michael.albinus@gmx.de, emacs-devel@gnu.org
Subject: Re: tramp no longer recognizes when remote files changed
Date: Sat, 28 Jul 2007 10:11:47 -0400	[thread overview]
Message-ID: <E1IEn1H-0004ef-GA@fencepost.gnu.org> (raw)
In-Reply-To: <m2hcnqt306.fsf@kenny.sha-bang.de> (message from Sascha Wilde on Fri, 27 Jul 2007 15:00:57 +0200)

    Tramp 2.1, brought to Emacs trunk some weeks ago, caches file
    information in order to speed up. It uses cached information for
    example when `file-attributes' is called, and cannot recognize
    external file changes therefore.

Does it make sense to block use of the cached data specifically in the
case of checking whether a file has changed for C-x C-f?

What are the main occasions on which the cache is useful?

    > Could you, please, try the appended patch? You must set
    > `file-precious-flag' to t.

    This seems to fix it!  Thanks a lot!

`file-precious-flag' does other things.  It should not be reused to
control whether Tramp checks for a changed file.

Having a parameter for users to set is not a very good solution.
First let's look for a way to make Tramp do the right combination
of things by default.  Michael, can you try?

  reply	other threads:[~2007-07-28 14:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-27  8:36 tramp no longer recognizes when remote files changed Sascha Wilde
2007-07-27  8:53 ` Michael Albinus
2007-07-27  9:02   ` Sascha Wilde
2007-07-27  9:31     ` Michael Albinus
2007-07-27 13:00       ` Sascha Wilde
2007-07-28 14:11         ` Richard Stallman [this message]
2007-07-29 15:40           ` Michael Albinus
2007-07-30 16:44             ` Richard Stallman
2007-07-30 17:24               ` Michael Albinus
2007-07-30 18:00             ` Sascha Wilde
2007-07-27 18:17       ` Stefan Monnier
2007-07-28 13:00         ` martin rudalics

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=E1IEn1H-0004ef-GA@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=wilde@sha-bang.de \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).