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: Wed, 10 Dec 2014 09:15:42 -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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418221002 1800 80.91.229.3 (10 Dec 2014 14:16:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Dec 2014 14:16:42 +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 Wed Dec 10 15:16:36 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 1Xyi4A-000100-D9 for ged-emacs-devel@m.gmane.org; Wed, 10 Dec 2014 15:16:34 +0100 Original-Received: from localhost ([::1]:45959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xyi49-0007D4-U2 for ged-emacs-devel@m.gmane.org; Wed, 10 Dec 2014 09:16:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xyi3f-00072Q-HW for emacs-devel@gnu.org; Wed, 10 Dec 2014 09:16:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xyi3X-0003lF-TR for emacs-devel@gnu.org; Wed, 10 Dec 2014 09:16:03 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:4653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xyi3M-0003j5-NB; Wed, 10 Dec 2014 09:15:44 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjsPAOwQflQXW5Ml/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCws0EhQYDSSISgnWWQEBAQcBAQEBHpALZAeESAWLAaYmhBkhgTSBQwEBAQ X-IPAS-Result: AjsPAOwQflQXW5Ml/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCws0EhQYDSSISgnWWQEBAQcBAQEBHpALZAeESAWLAaYmhBkhgTSBQwEBAQ X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="100074179" Original-Received: from 23-91-147-37.cpe.pppoe.ca (HELO pastel.home) ([23.91.147.37]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 10 Dec 2014 09:15:43 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 3E2599869; Wed, 10 Dec 2014 09:15:42 -0500 (EST) In-Reply-To: <87iohlhrsx.fsf@gmx.de> (Michael Albinus's message of "Tue, 09 Dec 2014 14:32:46 +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:179649 Archived-At: > No, it is still the caller's responsibility to delete the file. Ah, that definitely was not clear until now. So the handler never needs to track those files. > 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? > Additional functionality (remove local copies at the end of an Emacs > session; give the local copies a timeout after which they expire, and so > on) should be only additional support. Right, and this support will not be used on the handlers's side but on the callers's side. Stefan