From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.bugs Subject: bug#34338: 26.1; delete-file return codes and failures Date: Wed, 6 Feb 2019 04:35:05 -0500 Message-ID: <20190206093505.7toxfw44pq4he3e6@E15-2016.optimum.net> References: <20190205214737.vswyk7sfmgkliv7v@E15-2016.optimum.net> <87d0o5494m.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="16927"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20180716 Cc: 34338@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 06 10:49:27 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1grJpe-0004Im-NZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Feb 2019 10:49:26 +0100 Original-Received: from localhost ([127.0.0.1]:47648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grJpd-0006Ch-MU for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Feb 2019 04:49:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grJpS-0005vu-FN for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2019 04:49:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grJcg-0007QK-Dk for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2019 04:36:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34729) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grJcg-0007Pz-74 for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2019 04:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1grJcf-0003TK-W3 for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2019 04:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Boruch Baum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Feb 2019 09:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34338 X-GNU-PR-Package: emacs Original-Received: via spool by 34338-submit@debbugs.gnu.org id=B34338.154944571913294 (code B ref 34338); Wed, 06 Feb 2019 09:36:01 +0000 Original-Received: (at 34338) by debbugs.gnu.org; 6 Feb 2019 09:35:19 +0000 Original-Received: from localhost ([127.0.0.1]:34010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grJbz-0003SM-61 for submit@debbugs.gnu.org; Wed, 06 Feb 2019 04:35:19 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:46205) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grJbw-0003S5-04 for 34338@debbugs.gnu.org; Wed, 06 Feb 2019 04:35:16 -0500 Original-Received: from E15-2016.optimum.net ([108.6.168.221]) by mail.gmx.com (mrgmx103 [212.227.17.174]) with ESMTPSA (Nemesis) id 0Lomql-1hJVck0qz5-00gmdX; Wed, 06 Feb 2019 10:35:09 +0100 Content-Disposition: inline In-Reply-To: <87d0o5494m.fsf@gmx.de> X-Provags-ID: V03:K1:kAnoKY0MorXp3HPxAJP32r246Rjapc98P6q5nMV6xGKkd6muFLL xkLeOJz7P0wqNqa3DIkr3lwzutLKXobXTszVhiA0WegmHJkcR6lINJ/H/GhT0WCWoT1CSQf oVEjeJ0cLwr4EzVwQKnh6AAsXt0KqJDZ4kzP2he4F+ZzQ2b2TQYicyWWFUOBQHil6dRr+MZ bs1fNzCqSy1DRUAAwFjOA== X-UI-Out-Filterresults: notjunk:1;V03:K0:tHTmY8eXpVU=:ZOoYvFL4+YH8oJGB3BHFwL +6Bo4AlygIBkJRf4YwWPwB9uKBCfKRE2Wk9V1AOmC2kEgQuT7d/nh7iQa9qG5q9P1KcZIj+9I P+gTGCKjnPd6DIOReDIfgXHeemi46b1Qoyte+XULAo6wPsdMCOpwpPqbfGzrT/ENk3leQyoou Lagz8c7XUQe10d5BTb1o3D6p7+QUsAokHA2zHHZGWCQytr+p48a2wxY2rJULnvpyx4qVajjC3 PNI1y9I+7XZqTSiT79r9AQejr58opjQbP/fbb3tNpJNniGcYVlC2mFmD9cRnoL23873N2a2i3 2RMYQq4DAmIsRkUvyU28avFVLxNdP/qU7Svb2rf1tt3X+8nUqJVro37CSKXJtW4HLBStdyUJ1 10u6jv6dqAjm1tGRFizIeHbV6iH0QGSo99ChjZZQtbjRiUwiR8gtRT6PjCQWcAzRSaLZmku2H zAoXrLRQu6tUOTSgcfcqufIniR64jPjyp9REFBX8Vh67ZHL3qR9yxHJYJEFY1ReFtjh4fkp5N WufD1Fys4t38LayX712ETlnsV74N5MMEVEzAfBcHvKXPP7OGVK2FMOEYLWV61BH0u6I2G8T0P 1kvZDHl5urVACHC6Zxo0GUGJDjIrRKmI8c6jJxT+9T+vAGuJH5Gpf0D3bpj7n0F1f0tl5NAKV I0Sys2KSfRgRunPQQfLQJNnmUGhMMKQxdtREOsG9LEeaLllxrNDBMbqDgJaFggPB0X5hINFYF 96JG6ebUjLNXsVfW6uhul4GyY8KjX5QScAY6BEUYQrDRdBQNDwJVfZ3upxAMGvxZvtho9tzn 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:155171 Archived-At: On 2019-02-06 09:24, Michael Albinus wrote: > Boruch Baum writes: > > I'd like to suggest: > > > > delete-file FILE &optional NOERROR FORCE > > At the very least, keep existing arguments. So it would be > > delete-file FILE &optional THRASH NOERROR FORCE Off-topic, but potentially worthy of consideration: For a second, I didn't realize that 'thrash' might be a typo, and I got excited, because it made it seem that there existed a hidden feature that I would love for delete-file to have: some sort of 'thrashing' the file before un-linking / de-allocating, aka. a secure delete similar to the linux core-util 'shred'. As background, I noticed this behavior of 'delete-file' when proposing a feature for emacs-w3m to securely scrub a user's internet browsing history. There[1], I'm currently just calling 'shred' or some other external program of the user's choice. > Your other proposals look OK to me. It might be worth to say, that FORCE > could fail for some Tramp backends (but I haven't checked in detail yet). > > Best regards, Michael. Always happy to try to be of help. [1] https://github.com/emacs-w3m/emacs-w3m/pull/2 -- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0