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: Optional argument for `file-local-copy' Date: Sun, 14 Dec 2014 08:46:04 -0500 Message-ID: References: <871tom5jou.fsf@gmx.de> <83bnnqb1lo.fsf@gnu.org> <20141129140856.GA3752@acm.acm> <83a93aax58.fsf@gnu.org> <20141129153320.GC3752@acm.acm> <87d2853q5i.fsf@gmx.de> <87k32cbo06.fsf@gmx.de> <87k32ahzmt.fsf@gmx.de> <8761dtoidb.fsf@gmx.de> <87iohlhrsx.fsf@gmx.de> <8761dik0f5.fsf@gmx.de> <877fxuedjj.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418564811 3881 80.91.229.3 (14 Dec 2014 13:46:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Dec 2014 13:46:51 +0000 (UTC) Cc: Alan Mackenzie , Eli Zaretskii , emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 14 14:46:43 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y09VQ-0000Z6-R7 for ged-emacs-devel@m.gmane.org; Sun, 14 Dec 2014 14:46:40 +0100 Original-Received: from localhost ([::1]:36016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y09VQ-0006NE-4v for ged-emacs-devel@m.gmane.org; Sun, 14 Dec 2014 08:46:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y09V6-0006MF-C2 for emacs-devel@gnu.org; Sun, 14 Dec 2014 08:46:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y09Uy-0005vb-Sq for emacs-devel@gnu.org; Sun, 14 Dec 2014 08:46:20 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:48850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y09Uq-0005vF-VS; Sun, 14 Dec 2014 08:46:05 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjsPAOwQflTO+ILA/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCws0EhQYDSSISgnWWQEBAQcBAQEBHpBvB4RIBYsBpC6BeIQZIYJ3AQEB X-IPAS-Result: AjsPAOwQflTO+ILA/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCws0EhQYDSSISgnWWQEBAQcBAQEBHpBvB4RIBYsBpC6BeIQZIYJ3AQEB X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="101325809" Original-Received: from 206-248-130-192.dsl.teksavvy.com (HELO pastel.home) ([206.248.130.192]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 14 Dec 2014 08:46:04 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 1DB6F175E; Sun, 14 Dec 2014 08:46:04 -0500 (EST) In-Reply-To: <877fxuedjj.fsf@gmx.de> (Michael Albinus's message of "Sun, 14 Dec 2014 11:22:40 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:180072 Archived-At: > file-attributes I'm not sure. One implementation inside Tramp could be > to install a file notifications handler for the remote file if possible. > We will be informed then, when the remote file changes, and the local > file is out-dated. Right, I guess for a client-side cache, the issue is mostly how to check the freshness of a file, and it seems difficult to design an API that can cleanly handle all the various ways we could do that. So maybe the better option is to do the caching on the handler-side. But there's no need for any changes to file-local-copy for that. Stefan