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:01:15 +0200 Message-ID: <83r22tnhec.fsf@gnu.org> References: <20190205214737.vswyk7sfmgkliv7v@E15-2016.optimum.net> <87wocmvt5w.fsf@joffe.skangas.se> <20191030222159.rwfn7clgfjh36dze@E15-2016.optimum.net> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="71772"; 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:02:46 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 1iQB2E-000IZS-NW for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Oct 2019 15:02:46 +0100 Original-Received: from localhost ([::1]:50368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQB2B-0004DL-Jv for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Oct 2019 10:02:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43363) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQB1X-00047P-IV for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 10:02:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQB1W-0005f0-9g for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 10:02:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45081) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQB1W-0005eZ-64 for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 10:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQB1W-0004d5-0E for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 10:02: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:02:01 +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.157253048415932 (code B ref 34338); Thu, 31 Oct 2019 14:02:01 +0000 Original-Received: (at 34338) by debbugs.gnu.org; 31 Oct 2019 14:01:24 +0000 Original-Received: from localhost ([127.0.0.1]:53886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQB0t-00048Y-M7 for submit@debbugs.gnu.org; Thu, 31 Oct 2019 10:01:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQB0r-00042w-Dg for 34338@debbugs.gnu.org; Thu, 31 Oct 2019 10:01:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iQB0l-0002Ep-MK; Thu, 31 Oct 2019 10:01:15 -0400 Original-Received: from [176.228.60.248] (port=4224 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iQB0k-00085q-NR; Thu, 31 Oct 2019 10:01:15 -0400 In-reply-to: <20191030222159.rwfn7clgfjh36dze@E15-2016.optimum.net> (message from Boruch Baum on Wed, 30 Oct 2019 18:22:00 -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:170508 Archived-At: > Date: Wed, 30 Oct 2019 18:22:00 -0400 > From: Boruch Baum > Cc: Eli Zaretskii , 34338@debbugs.gnu.org > > How is it backwards incompatable? If the prior behavior was undefined, > no one would have been using it for anything. From their perspective, a > defined is just another form of undefined behavior, if you get my drift. My "backward-incompatible" response was only related to your suggestion to signal an error when a file doesn't exist, and/or modify the function's signature in incompatible ways. I didn't object to making this function return a meaningful value, if the argument list remains compatible, i.e. if existing code doesn't need to change. However, if we make the function return meaningful values, we must make sure it always does so, and in consistent manner. For example, the file handlers should be documented to return the same values (and existing handlers should be modified to actually do so), moving the file to trash, whether via a system-dependent primitive or application code in files.el, should return the same value for the same conditions, etc.