From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Remote display-time-mail-file Date: Sat, 18 Sep 2010 11:00:27 +0200 Message-ID: References: <837hil355j.fsf@gnu.org> <83zkvh1m4j.fsf@gnu.org> <87pqwdbdxs.fsf@gmx.de> <83r5gs1th2.fsf@gnu.org> <87ocbwnmkz.fsf@gmx.de> <87aangnl1j.fsf@gmx.de> <83sk18yrj6.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284800453 2250 80.91.229.12 (18 Sep 2010 09:00:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Sep 2010 09:00:53 +0000 (UTC) Cc: Michael Albinus , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 18 11:00:52 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 1OwtHs-00019t-Sw for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2010 11:00:49 +0200 Original-Received: from localhost ([127.0.0.1]:60689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwtHs-0005XJ-Eh for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2010 05:00:48 -0400 Original-Received: from [140.186.70.92] (port=56633 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwtHl-0005XB-0L for emacs-devel@gnu.org; Sat, 18 Sep 2010 05:00:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwtHj-0004Jg-K7 for emacs-devel@gnu.org; Sat, 18 Sep 2010 05:00:40 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:47916) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwtHj-0004JW-EZ; Sat, 18 Sep 2010 05:00:39 -0400 Original-Received: from ceviche.home (vpn-132-204-232-22.acd.umontreal.ca [132.204.232.22]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o8I90Ssv000811; Sat, 18 Sep 2010 05:00:29 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 8E7536623B; Sat, 18 Sep 2010 11:00:27 +0200 (CEST) In-Reply-To: <83sk18yrj6.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 17 Sep 2010 23:43:57 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3625=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:130381 Archived-At: > Maybe I'm missing something, but I don't see how this can help. For > starters, time.el needs Tramp to check the remote every time, so the > cache just gets in the way. But each use from time.el might end up calling some internal Tramp functions several times, so the cache may still speed things up. > For other use-cases, I wonder how can the cache validity be limited in > terms of time. Files are modified by programs that access them, not > because some amount of time has passed. Indeed, but short of using some inotify-like thingy, Emacs has no way to know when a file is modified by some other program, so the best it can do is to say that it will be out of sync at worst up to N seconds. > How will a Lisp program that accesses remote files know which number > of seconds to set in this variable? What am I missing? In general, there is no good answer. But clearly, your time.el case will want to set this limit to just below to refresh rate. Stefan