From: Leo <sdl.web@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#6070: 23.1.96; delete-by-moving-to-trash
Date: Sat, 01 May 2010 13:43:28 +0100 [thread overview]
Message-ID: <xbailjc3bxn3.fsf@cam.ac.uk> (raw)
In-Reply-To: <m1iq78fley.fsf@cam.ac.uk>
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
next prev parent reply other threads:[~2010-05-01 12:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-01 1:41 bug#6070: 23.1.96; delete-by-moving-to-trash Leo
2010-05-01 2:19 ` Chong Yidong
2010-05-01 4:00 ` Leo
2010-05-01 4:44 ` Leo
2010-05-01 12:43 ` Leo [this message]
2010-05-01 14:17 ` Eli Zaretskii
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=xbailjc3bxn3.fsf@cam.ac.uk \
--to=sdl.web@gmail.com \
--cc=bug-gnu-emacs@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.