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: Tue, 02 Dec 2014 17:30:15 -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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417559488 32333 80.91.229.3 (2 Dec 2014 22:31:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2014 22:31:28 +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 Tue Dec 02 23:31:19 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 1XvvyX-0005X6-IS for ged-emacs-devel@m.gmane.org; Tue, 02 Dec 2014 23:31:17 +0100 Original-Received: from localhost ([::1]:38995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvvyU-0002me-W7 for ged-emacs-devel@m.gmane.org; Tue, 02 Dec 2014 17:31:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvvyK-0002mN-Fw for emacs-devel@gnu.org; Tue, 02 Dec 2014 17:31:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvvyC-0008GY-8a for emacs-devel@gnu.org; Tue, 02 Dec 2014 17:31:04 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:45920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xvvy0-0008Ex-Mr; Tue, 02 Dec 2014 17:30:44 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 3510D8505A; Tue, 2 Dec 2014 17:30:44 -0500 (EST) Original-Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 5D79E1E5B8C; Tue, 2 Dec 2014 17:30:15 -0500 (EST) Original-Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 386D2B40D3; Tue, 2 Dec 2014 17:30:15 -0500 (EST) In-Reply-To: <8761dtoidb.fsf@gmx.de> (Michael Albinus's message of "Tue, 02 Dec 2014 22:24:16 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 132.204.24.67 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:178706 Archived-At: >> No: if the handler ignores the argument and the caller doesn't delete >> the file, we're left with a garbage file that noone will delete. > Like today. 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. Stefan