From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Remote display-time-mail-file Date: Sat, 18 Sep 2010 08:47:11 +0200 Message-ID: <87iq23a6q8.fsf@gmx.de> 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; charset=us-ascii X-Trace: dough.gmane.org 1284792452 10576 80.91.229.12 (18 Sep 2010 06:47:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Sep 2010 06:47:32 +0000 (UTC) Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 18 08:47:30 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 1OwrCq-00058Z-Qe for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2010 08:47:30 +0200 Original-Received: from localhost ([127.0.0.1]:59403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwrCn-0000Df-1h for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2010 02:47:25 -0400 Original-Received: from [140.186.70.92] (port=34143 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwrCf-0000Cq-BU for emacs-devel@gnu.org; Sat, 18 Sep 2010 02:47:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwrCd-0001yB-Bb for emacs-devel@gnu.org; Sat, 18 Sep 2010 02:47:16 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:40747 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OwrCc-0001xz-Uq for emacs-devel@gnu.org; Sat, 18 Sep 2010 02:47:15 -0400 Original-Received: (qmail invoked by alias); 18 Sep 2010 06:47:12 -0000 Original-Received: from p4FC194ED.dip0.t-ipconnect.de (EHLO arthur.gmx.de) [79.193.148.237] by mail.gmx.net (mp037) with SMTP; 18 Sep 2010 08:47:12 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19ubfZyD5du2S2BtTaYDWFaZori5oL0kNLZhG3bbm nE1/2FQfyQA/aZ 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-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:130378 Archived-At: Eli Zaretskii writes: > 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. > > 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. How will a Lisp program that > accesses remote files know which number of seconds to set in this > variable? What am I missing? When a remote file is accessed, there are a lot of primitive file name operations called several times, for example file-attributes. Even if the timeout is just 10" it will save time, because only the first file-attributes call needs to go remote. And if the timeout is customizable, users can decide about the settings. In my use cases I'm happy with enabled cache all the time. Best regards, Michael.