From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrey Torba Newsgroups: gmane.emacs.help Subject: [emacs] problem in `delete-directory' with enabled `delete-by-removing-to-trash' Date: Sat, 3 Apr 2010 17:02:50 +0300 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0014852e5b4029739c0483558df4 X-Trace: dough.gmane.org 1270315966 21613 80.91.229.12 (3 Apr 2010 17:32:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Apr 2010 17:32:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 03 19:32:42 2010 Return-path: Envelope-to: geh-help-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 1Ny7D8-0003o8-3l for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Apr 2010 19:32:42 +0200 Original-Received: from localhost ([127.0.0.1]:52257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ny7D7-0001QR-JV for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Apr 2010 13:32:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ny3w8-0000v6-71 for help-gnu-emacs@gnu.org; Sat, 03 Apr 2010 10:02:56 -0400 Original-Received: from [140.186.70.92] (port=47289 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ny3w5-0000tv-WD for help-gnu-emacs@gnu.org; Sat, 03 Apr 2010 10:02:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ny3w4-0002lU-LW for help-gnu-emacs@gnu.org; Sat, 03 Apr 2010 10:02:53 -0400 Original-Received: from mail-ew0-f209.google.com ([209.85.219.209]:38140) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ny3w4-0002lJ-GZ for help-gnu-emacs@gnu.org; Sat, 03 Apr 2010 10:02:52 -0400 Original-Received: by ewy1 with SMTP id 1so281677ewy.15 for ; Sat, 03 Apr 2010 07:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=ejuEmho7NPjnLcyttH9aIksQqs1AGVG7SI5+2u8tmtg=; b=EqZrO+CGp7e8b6wSNTPHlLDOSDM1hC3yhi6imctfBQpLZWwaW6GrvBtzv5W8blKcHS O8bh6APsYUCeIi108nJ5vunx2y1IOe3Xrh7RqvTRQSQfoD+LpFYlfhRF/ckuUeYBbxOg sV3DKbq17MkfUGyh3THcmk11vGHWnew8XJho8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gV138at9WIcLlDxIWBM1DFrmis38gxtkJ8lLDCkPkBfIJUY+oT0nYapdOOwAWcZP7O uei0V+O5RzU7XhwZ6mHXXnZjri3PJfWeoT5o1lt/ZKrZ/OdMOLaKMbPL4nWxPFUKRnEI Hf9S5WPDDaZ5PzAS0+IoW8EMg6fdHT8vm7+Zc= Original-Received: by 10.213.102.19 with HTTP; Sat, 3 Apr 2010 07:02:50 -0700 (PDT) Original-Received: by 10.213.60.13 with SMTP id n13mr1821000ebh.36.1270303370604; Sat, 03 Apr 2010 07:02:50 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sat, 03 Apr 2010 13:32:04 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72589 Archived-At: --0014852e5b4029739c0483558df4 Content-Type: text/plain; charset=ISO-8859-1 Hi All, There is a strange behavior of `delete-directory' function with enabled flag `delete-by-removing-to-trash'. It deletes files one by one instead of applying `move-file-to-trash' to the directory? As a result emacs deletes big directories slowly and after deleting there are many files in the trash directory, so it is impossible to restore. Directory structure: ddd/ ccc/ 1.txt There are three files in the trash after deleting `ddd' instead of one: ddd/ ccc/ 1.txt How to solve the problem? As a solution i see making advice function for `delete-directory'. -- Regards, Andrey --0014852e5b4029739c0483558df4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi All,
There is a strange be= havior of `delete-directory' function with
enabled flag `delete-by-removing-to-trash'. It deletes files one by
= one instead of applying `move-file-to-trash' to the directory? As a
= result emacs deletes big directories slowly and after deleting there
are many files in the trash directory, so it is impossible to restore.
<= br>Directory structure:
ddd/
=A0 =A0ccc/
=A0 =A0 =A0 =A01.txt
<= br>There are three files in the trash after deleting `ddd' instead ofone:
ddd/
ccc/
1.txt

How to solve the problem? As a solution i see = making advice function
for `delete-directory'.

--
Regards, Andrey
--0014852e5b4029739c0483558df4--