[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make emacs "lock" files on remote host ?

From: Michael Albinus
Subject: Re: How to make emacs "lock" files on remote host ?
Date: Sat, 28 Aug 2004 20:41:26 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Skip Montanaro <address@hidden> writes:

>     Michael> According to the Changelog, Kai has implemented it end of
>     Michael> 2001. And it detects file changes for methods who support
>     Michael> this. It doesn't detect it for foreign methods like ftp and
>     Michael> smb, AFAIR.
> Can this be disabled?  I bump into it all the time.  It's quite annoying
> over slowish links, especially if the path has lots of components.

You can try the following code snippet (untested):

(defadvice set-visited-file-modtime
  (around tramp-advice-set-visited-file-modtime activate)
  (unless (file-remote-p (ad-get-arg 0)) ad-do-it))

(defadvice verify-visited-file-modtime
  (around tramp-advice-verify-visited-file-modtime activate)
  (unless (file-remote-p (ad-get-arg 0)) ad-do-it t))

Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]