Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Andreo <andreytorba@gmail.com>
To: info-gnus-english@gnu.org
Subject: [emacs] problem in `delete-directory' with enabled  `delete-by-removing-to-trash'
Date: Sat, 3 Apr 2010 06:43:25 -0700 (PDT)	[thread overview]
Message-ID: <ddfb043a-be2c-43f1-a41f-d587324a6eb5@15g2000yqi.googlegroups.com> (raw)

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'.

                 reply	other threads:[~2010-04-03 13:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ddfb043a-be2c-43f1-a41f-d587324a6eb5@15g2000yqi.googlegroups.com \
    --to=andreytorba@gmail.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).