emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patch about moving file (or directory) to the Recycle Bin on Windows


From: Stefan Monnier
Subject: Re: patch about moving file (or directory) to the Recycle Bin on Windows NT series
Date: Sun, 25 May 2008 07:22:44 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>>> (defvar trash-directory "~/.trash"
> Is this deliberate, to not interfere with the standard "~/.Trash" directory?

I don't think so.  So, feel free to replace it with ~/.Trash.

>>> (cond
>>> ((eq system-type 'windows-nt)
>>> (w32-move-file-to-trash filename))

> This might be better as
>   ((fboundp 'system-move-file-to-trash)
>     (system-move-file-to-trash filename))

> Then adding a proper implementation for the freedesktop.org standard will be
> as simple as defining such a function in the GTK (for example)
> code. Likewise for Mac OSX.

Sounds fine,


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]