From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Optional argument for `file-local-copy' Date: Sat, 29 Nov 2014 15:03:31 +0200 Message-ID: <83bnnqb1lo.fsf@gnu.org> References: <871tom5jou.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1417266247 24532 80.91.229.3 (29 Nov 2014 13:04:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2014 13:04:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 29 14:04:00 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 1Xuhgu-0004h0-Jf for ged-emacs-devel@m.gmane.org; Sat, 29 Nov 2014 14:04:00 +0100 Original-Received: from localhost ([::1]:47613 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xuhgu-0001tl-1k for ged-emacs-devel@m.gmane.org; Sat, 29 Nov 2014 08:04:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuhgZ-0001ta-QT for emacs-devel@gnu.org; Sat, 29 Nov 2014 08:03:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XuhgT-0000mJ-Sv for emacs-devel@gnu.org; Sat, 29 Nov 2014 08:03:39 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:63182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuhgT-0000lu-L7 for emacs-devel@gnu.org; Sat, 29 Nov 2014 08:03:33 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NFS00F00XIRD800@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sat, 29 Nov 2014 15:03:32 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NFS00FGEXLV5U40@a-mtaout22.012.net.il>; Sat, 29 Nov 2014 15:03:32 +0200 (IST) In-reply-to: <871tom5jou.fsf@gmx.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:178452 Archived-At: > From: Michael Albinus > Date: Sat, 29 Nov 2014 12:29:21 +0100 > > file-local-copy is a compiled Lisp function in `files.el'. > > (file-local-copy FILE &optional REUSE-IF-ALREADY-EXISTS) > > Copy the file FILE into a temporary file on this machine. > Returns the name of the local copy, or nil, if FILE is directly > accessible. > > If REUSE-IF-ALREADY-EXISTS is non-nil, if there exists already a local > copy of FILE, and if the file attributes of FILE have not been changed > since the last copy operation, the name of the existing local copy of > FILE will be returned. "If" within another "if" is considered harmful. Suggested rewording: REUSE-IF-ALREADY-EXISTS non-nil means return the name of an existing local copy of FILE, if FILE's file attributes didn't change since the last copy operation. (I have no opinion on the rest of your proposal.)