From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.bugs Subject: bug#6070: 23.1.96; delete-by-moving-to-trash Date: Sat, 01 May 2010 13:43:28 +0100 Organization: University of Cambridge Message-ID: References: <87hbms8ita.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272718566 28757 80.91.229.12 (1 May 2010 12:56:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 1 May 2010 12:56:06 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 01 14:56:05 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O8CEk-00043D-T1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 May 2010 14:56:04 +0200 Original-Received: from localhost ([127.0.0.1]:39512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8CEj-0004oR-1i for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 May 2010 08:56:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8CEd-0004oM-OI for bug-gnu-emacs@gnu.org; Sat, 01 May 2010 08:55:55 -0400 Original-Received: from [140.186.70.92] (port=48158 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8CEb-0004oC-IP for bug-gnu-emacs@gnu.org; Sat, 01 May 2010 08:55:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8CEZ-0001Y5-Qc for bug-gnu-emacs@gnu.org; Sat, 01 May 2010 08:55:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55024) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8CEZ-0001Xz-O8 for bug-gnu-emacs@gnu.org; Sat, 01 May 2010 08:55:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O8C38-0005yM-AA; Sat, 01 May 2010 08:44:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Leo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 May 2010 12:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6070 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.127271783322950 (code B ref -1); Sat, 01 May 2010 12:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 May 2010 12:43:53 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8C2y-0005y7-Tx for submit@debbugs.gnu.org; Sat, 01 May 2010 08:43:53 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8C2w-0005y0-O1 for submit@debbugs.gnu.org; Sat, 01 May 2010 08:43:51 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:56643) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O8C2r-0000kX-Gc for submit@debbugs.gnu.org; Sat, 01 May 2010 08:43:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8C2r-0001QW-16 for bug-gnu-emacs@gnu.org; Sat, 01 May 2010 08:43:45 -0400 Original-Received: from [140.186.70.92] (port=38901 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8C2p-0001QO-9l for bug-gnu-emacs@gnu.org; Sat, 01 May 2010 08:43:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8C2n-0000AP-PF for bug-gnu-emacs@gnu.org; Sat, 01 May 2010 08:43:43 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:40912) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8C2n-0000AA-HJ for bug-gnu-emacs@gnu.org; Sat, 01 May 2010 08:43:41 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1O8C2i-0002gQ-8w for bug-gnu-emacs@gnu.org; Sat, 01 May 2010 14:43:36 +0200 Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 May 2010 14:43:36 +0200 Original-Received: from sdl.web by smaug.linux.pwf.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 May 2010 14:43:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ connect(): No such file or directory Original-Lines: 36 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: smaug.linux.pwf.cam.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:fWcsR+2d5Q63isOLhy52ItT9tqI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 01 May 2010 08:44:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36626 Archived-At: On 2010-05-01 05:44 +0100, Leo wrote: >> Thank you for the quick fix. I will be using it and let you if there are >> other cases need fixing. > > delete-auto-save-file-if-necessary still creates a lot temp files in the > trash bin. Any idea where names like emacs6ljgy9 or emacsXWkc8c come > from? They look like temp file. Is it from with-temp-file? These are from the following files in Gnus: ---------------- leo@Victoria ...share/emacs/23.1.96/lisp/gnus$ zgrep -n "delete-file" mm*.el.gz mm-decode.el.gz:874: (ignore-errors (delete-file file)) mm-decode.el.gz:899: (delete-file ,file) mm-decode.el.gz:1031: (ignore-errors (delete-file (car object))) mm-decode.el.gz:1434: (delete-file file))))) mm-view.el.gz:366: (delete-file file)) mml-smime.el.gz:140: (delete-file tmp)) mml-smime.el.gz:143: (delete-file tmp)) mml2015.el.gz:858: (delete-file signature-file) mml2015.el.gz:863: (delete-file signature-file) ---------------- In my view the current implementation of this feature is far from optimal. It is almost sure that every occurrence of delete-file should not move things to trash bin. And it seems only a handful of commands need to move things to trash bin when deleting. Do you have a better way of fixing this bug? Thank you. I have been thinking whether it will be better to introduce a new function delete-file-soft that respects delete-by-moving-to-trash while leaving delete-file alone. Leo