Thanks for your helping, Jason and Stefan. I fixed a patch according to it. (I read archives on http://lists.gnu.org/archive/html/emacs-devel/.) (I write again.) step to enable move-file-to-trash: cd src patch -i patch__enable_delete_to_trash.diff make all install Run emacs (load-file "move-file-to-trash.el") (setq delete-by-moving-to-trash t)