From: Boruch Baum <boruch_baum@gmx.com>
To: Stefan Kangas <stefan@marxist.se>
Cc: 34338@debbugs.gnu.org
Subject: bug#34338: 26.1; delete-file return codes and failures
Date: Wed, 30 Oct 2019 21:33:29 -0400 [thread overview]
Message-ID: <20191031012641.lam4pwo3cenf7tsu@E15-2016.optimum.net> (raw)
In-Reply-To: <875zk5x2v1.fsf@joffe.skangas.se>
On 2019-10-30 23:52, Stefan Kangas wrote:
> Boruch Baum <boruch_baum@gmx.com> writes:
>
> Do you have a use-case in mind here? Can't the caller just check using
> 'file-exists-p' if it matters instead?
It _should_ *always* matter. Did you delete the file or not? If it didn't
matter, why waste your time attempting the deletion?
Having delete-file return the value is: a) consistent with what I think
is the expectation of most CS folks; b) the most efficient, since it
already knows the exact point of any failure, and basically just passes
the return value it gets from the underlying OS.
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0
next prev parent reply other threads:[~2019-10-31 1:33 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-05 21:47 bug#34338: 26.1; delete-file return codes and failures Boruch Baum
2019-02-06 8:24 ` Michael Albinus
2019-02-06 9:35 ` Boruch Baum
2019-02-06 16:19 ` Eli Zaretskii
2019-02-06 21:02 ` Boruch Baum
2019-02-07 3:36 ` Eli Zaretskii
2019-02-07 5:14 ` Boruch Baum
2019-10-09 11:48 ` Stefan Kangas
2019-10-30 21:07 ` Stefan Kangas
2019-10-30 22:22 ` Boruch Baum
2019-10-30 22:52 ` Stefan Kangas
2019-10-31 1:33 ` Boruch Baum [this message]
2019-10-31 14:32 ` Eli Zaretskii
2019-11-01 9:34 ` Boruch Baum
2019-11-01 9:55 ` Eli Zaretskii
2019-11-08 13:00 ` Stefan Kangas
2019-10-31 14:01 ` Eli Zaretskii
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=20191031012641.lam4pwo3cenf7tsu@E15-2016.optimum.net \
--to=boruch_baum@gmx.com \
--cc=34338@debbugs.gnu.org \
--cc=stefan@marxist.se \
/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.