From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34338: 26.1; delete-file return codes and failures Date: Thu, 31 Oct 2019 16:32:13 +0200 Message-ID: <83h83pnfyq.fsf@gnu.org> References: <20190205214737.vswyk7sfmgkliv7v@E15-2016.optimum.net> <87wocmvt5w.fsf@joffe.skangas.se> <20191030222159.rwfn7clgfjh36dze@E15-2016.optimum.net> <875zk5x2v1.fsf@joffe.skangas.se> <20191031012641.lam4pwo3cenf7tsu@E15-2016.optimum.net> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="238910"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34338@debbugs.gnu.org, stefan@marxist.se To: Boruch Baum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 31 15:39:36 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQBbr-00101c-Kx for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Oct 2019 15:39:35 +0100 Original-Received: from localhost ([::1]:50844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQBbq-00088A-BH for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Oct 2019 10:39:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48220) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQBVY-0008I7-8o for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 10:33:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQBVW-0004CM-B1 for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 10:33:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45156) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQBVW-0004BM-6o for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 10:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQBVW-0007hi-1l for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 10:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Oct 2019 14:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34338 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 34338-submit@debbugs.gnu.org id=B34338.157253234329354 (code B ref 34338); Thu, 31 Oct 2019 14:33:02 +0000 Original-Received: (at 34338) by debbugs.gnu.org; 31 Oct 2019 14:32:23 +0000 Original-Received: from localhost ([127.0.0.1]:53977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQBUt-0007cz-34 for submit@debbugs.gnu.org; Thu, 31 Oct 2019 10:32:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQBUr-0007ZG-I3 for 34338@debbugs.gnu.org; Thu, 31 Oct 2019 10:32:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iQBUk-0002iA-EO; Thu, 31 Oct 2019 10:32:14 -0400 Original-Received: from [176.228.60.248] (port=2133 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iQBUi-0004bY-Mu; Thu, 31 Oct 2019 10:32:13 -0400 In-reply-to: <20191031012641.lam4pwo3cenf7tsu@E15-2016.optimum.net> (message from Boruch Baum on Wed, 30 Oct 2019 21:33:29 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170513 Archived-At: > Date: Wed, 30 Oct 2019 21:33:29 -0400 > From: Boruch Baum > Cc: Eli Zaretskii , 34338@debbugs.gnu.org > > > 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? The current implementation basically is a moral equivalent of "rm -f". It also is biased towards interactive usage, where the return value is not very important. Does it answer your question?