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: Tue, 09 Dec 2014 14:32:46 +0100 Message-ID: <87iohlhrsx.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418132015 13728 80.91.229.3 (9 Dec 2014 13:33:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2014 13:33:35 +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 Tue Dec 09 14:33:23 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 1XyKum-0004TB-AG for ged-emacs-devel@m.gmane.org; Tue, 09 Dec 2014 14:33:20 +0100 Original-Received: from localhost ([::1]:40515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyKul-0006Vs-Tk for ged-emacs-devel@m.gmane.org; Tue, 09 Dec 2014 08:33:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyKue-0006Qg-7O for emacs-devel@gnu.org; Tue, 09 Dec 2014 08:33:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyKuY-0002r5-B1 for emacs-devel@gnu.org; Tue, 09 Dec 2014 08:33:12 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:54530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyKuQ-0002lw-3h; Tue, 09 Dec 2014 08:32:58 -0500 Original-Received: from detlef.gmx.de ([87.146.36.193]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MdnN3-1YLcYo1DoL-00PfUM; Tue, 09 Dec 2014 14:32:51 +0100 In-Reply-To: (Stefan Monnier's message of "Tue, 02 Dec 2014 17:30:15 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:fNNA0LccZD2VCEMJprvPIkDL3fHWrYQCnbvT2b2tWGRJZ+gsYnt 6bQZZlSXIRmKPrrjr8vqdaD0EXYLjY8xfCHFd6l6NaDTo0Dy1iY+BZqGWmU3rsVoFtFlttl N7x8yrE2MyE7Rzn9pimnYkLuS+uWvKUEhBbKwjM1BWx4n3HWkIjj2m1oHSOHQ9zxQsuD3FJ 6/KVsGF8rXoHaJxD0bFAA== 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:179558 Archived-At: Stefan Monnier writes: [sorry to reply late, but these days there isn't too much time I could spend for Emacs] > There's a big difference: with today's file-local-copy the caller is > always responsible to delete the file, so if the caller doesn't delete > the file, it's a bug in the caller. > > With your proposal, if it's not the responsibility of the caller, then > it necessarily ends up being the handler's responsibility. Hence my > earlier complaint that the handler is not allowed to simply ignore the > new argument. No, it is still the caller's responsibility to delete the file. The new argument is not intended to move this responsibility to the handler; 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). 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. > Stefan Best regards, Michael.