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: Jason Rumney
Subject: Re: patch about moving file (or directory) to the Recycle Bin on Windows NT series
Date: Sun, 25 May 2008 10:59:28 +0100
User-agent: Thunderbird 2.0.0.14 (Windows/20080421)

Stefan Monnier wrote:

(defvar trash-directory "~/.trash"

Is this deliberate, to not interfere with the standard "~/.Trash" directory?

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





reply via email to

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