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: Optional argument for `file-local-copy' Date: Thu, 11 Dec 2014 10:20:30 +0100 Message-ID: <8761dik0f5.fsf@gmx.de> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418289663 15667 80.91.229.3 (11 Dec 2014 09:21:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Dec 2014 09:21:03 +0000 (UTC) Cc: Alan Mackenzie , Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 11 10:20:56 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 1Xyzva-0007rN-DS for ged-emacs-devel@m.gmane.org; Thu, 11 Dec 2014 10:20:54 +0100 Original-Received: from localhost ([::1]:49965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyzvY-0008Aw-UL for ged-emacs-devel@m.gmane.org; Thu, 11 Dec 2014 04:20:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyzvQ-00084c-Co for emacs-devel@gnu.org; Thu, 11 Dec 2014 04:20:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyzvL-0005BQ-2J for emacs-devel@gnu.org; Thu, 11 Dec 2014 04:20:44 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:60430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyzvK-0005B8-J7; Thu, 11 Dec 2014 04:20:38 -0500 Original-Received: from detlef.gmx.de ([87.146.35.59]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MRGvT-1YOTvC1WnP-00UZgU; Thu, 11 Dec 2014 10:20:33 +0100 In-Reply-To: (Stefan Monnier's message of "Wed, 10 Dec 2014 09:15:42 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:qw3Ieo2HE/l6ey6fEuKdKUF6Ely5B700FFJJC9iRfIIvuxs/xV1 NcUH8/k1UhBeo9mjXx6RPPBFs1m9qDQ+gZebAMhU4RdP9IzkEAx4miNBBD2IJ8gAzwM00dX mKEfExT+Wn8d331hCNORTSYqBPqAdEmHky83oxtWp74kxyXI0ew8Tmo33fyxdSOp173qaAJ mUdkJ+BLJa5MfPU5sGbyA== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 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:179728 Archived-At: Stefan Monnier writes: >> I expect the caller to keep the file only for a while when it is >> expecting that a given file is needed several times (like meta >> information if a file in vc). > > I'm wondering how often the caller will be able to make use of this > (i.e. how often it will happen that two or more calls to file-local-copy > will require the same file and will know enough about each other to > coordinate the file-deletion). > > Do you have some callers in mind? The first idea to this came when I saw . It offered a patch to keep some copied remote images in a cache in order to redisplay them. Another evidence for such functionality is vc. If you open a remote file under bzr control, there will be local copies of .bzr/checkout/dirstate, .bzr/branch/format and .bzr/branch/last-revision. In the cvs case, CVS/Entries is taken via file-local-copy. And there might be similar cases for the other vc backends, I haven't checked. All of them are candidates for a file cache as proposed. > Stefan Best regards, Michael.