From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Remote display-time-mail-file Date: Fri, 17 Sep 2010 13:48:25 +0200 Message-ID: <83r5gs1th2.fsf@gnu.org> References: <837hil355j.fsf@gnu.org> <83zkvh1m4j.fsf@gnu.org> <87pqwdbdxs.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1284724126 11642 80.91.229.12 (17 Sep 2010 11:48:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Sep 2010 11:48:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 17 13:48:43 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OwZQo-0003Xi-P8 for ged-emacs-devel@m.gmane.org; Fri, 17 Sep 2010 13:48:43 +0200 Original-Received: from localhost ([127.0.0.1]:46845 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwZQo-0002p7-AB for ged-emacs-devel@m.gmane.org; Fri, 17 Sep 2010 07:48:42 -0400 Original-Received: from [140.186.70.92] (port=52204 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwZQi-0002ny-66 for emacs-devel@gnu.org; Fri, 17 Sep 2010 07:48:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwZQg-00047r-M5 for emacs-devel@gnu.org; Fri, 17 Sep 2010 07:48:36 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:64592) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwZQg-00047h-FE for emacs-devel@gnu.org; Fri, 17 Sep 2010 07:48:34 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L8W007003EAFE00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 17 Sep 2010 13:48:26 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.210.149]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L8W006GJ3GK3KD0@a-mtaout22.012.net.il>; Fri, 17 Sep 2010 13:48:26 +0200 (IST) In-reply-to: <87pqwdbdxs.fsf@gmx.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130294 Archived-At: > From: Michael Albinus > Cc: emacs-devel@gnu.org > Date: Thu, 16 Sep 2010 23:01:35 +0200 > > >> (setq display-time-mail-file "/plink:eliz@fencepost.gnu.org:/var/mail/eliz") > >> > >> ? > >> > >> It doesn't work well for me in Emacs 23.2 on MS-Windows, and the > >> reason seems to be that file-attributes, called by > >> display-time-file-nonempty-p, only probes the file once, and > >> thereafter returns the same attributes, even when the file's size > >> changes. Is there some cache somewhere? > > > > The same happens in 3-day old Emacs 24, FWIW, and for the same reason. > > In order to check, whether Tramp's cache is involved, you might test the > following patch (it might not be the final solution, 'tho): 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? That'd be tedious, IMO.