all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Michael Albinus <michael.albinus@gmx.de>, emacs-devel@gnu.org
Subject: Re: Optional argument for `file-local-copy'
Date: Sat, 29 Nov 2014 14:08:57 +0000	[thread overview]
Message-ID: <20141129140856.GA3752@acm.acm> (raw)
In-Reply-To: <83bnnqb1lo.fsf@gnu.org>

Hello, Eli and Michael.

On Sat, Nov 29, 2014 at 03:03:31PM +0200, Eli Zaretskii wrote:
> > From: Michael Albinus <michael.albinus@gmx.de>
> > 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.

"haven't changed", here, since it's expressing a current state.  "didn't
change" would be appropriate for referring to a past event.

> (I have no opinion on the rest of your proposal.)

-- 
Alan Mackenzie (Nuremberg, Germany).



  reply	other threads:[~2014-11-29 14:08 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-29 11:29 Optional argument for `file-local-copy' Michael Albinus
2014-11-29 13:03 ` Eli Zaretskii
2014-11-29 14:08   ` Alan Mackenzie [this message]
2014-11-29 14:39     ` Eli Zaretskii
2014-11-29 15:33       ` Alan Mackenzie
2014-11-29 16:24         ` Thien-Thi Nguyen
2014-11-30  5:22         ` Stefan Monnier
2014-11-30 11:04           ` Michael Albinus
2014-11-30 14:11             ` Stefan Monnier
2014-11-30 17:24               ` Michael Albinus
2014-12-02 14:18                 ` Stefan Monnier
2014-12-02 14:53                   ` Michael Albinus
2014-12-02 20:55                     ` Stefan Monnier
2014-12-02 21:24                       ` Michael Albinus
2014-12-02 22:30                         ` Stefan Monnier
2014-12-09 13:32                           ` Michael Albinus
2014-12-10 14:15                             ` Stefan Monnier
2014-12-11  9:20                               ` Michael Albinus
2014-12-11 15:22                                 ` Stefan Monnier
2014-12-14 10:22                                   ` Michael Albinus
2014-12-14 13:46                                     ` Stefan Monnier
2014-12-14 14:24                                       ` Michael Albinus
2014-12-14 22:37                                         ` Stefan Monnier
2014-12-15  7:41                                           ` Michael Albinus
2014-11-30 10:54         ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141129140856.GA3752@acm.acm \
    --to=acm@muc.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.