From: Chong Yidong Date: Sun, 16 Nov 2008 07:26:21 +0000 (+0000) Subject: (Directories): Describe delete-directory in text. X-Git-Tag: emacs-pretest-23.0.90~1788 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=387e551b805a70db270dcffb76b964d23953cad8;p=emacs.git (Directories): Describe delete-directory in text. (Misc File Ops): Document use of trash. --- diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index 95204eda2e2..4e49ecf17f3 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi @@ -1233,8 +1233,9 @@ using the minibuffer, and deletes the directory if it is empty. If the directory is not empty, this signals an error. On systems that have a ``Trash'' or ``Recycle Bin'' feature, you can make this command move the specified directory to the Trash or Recycle Bin, instead of -deleting it outright; to do so, change the variable -@code{delete-by-moving-to-trash} to @code{t}. +deleting it outright, by changing the variable +@code{delete-by-moving-to-trash} to @code{t}. @xref{Misc File Ops}, +for more information about using the Trash. @node Comparing Files @section Comparing Files @@ -1501,12 +1502,23 @@ as saving files; see @ref{Customize Save}. @cindex deletion (of files) @vindex delete-by-moving-to-trash @kbd{M-x delete-file} deletes the specified file, like the @code{rm} -command in the shell. On systems that have a ``Trash'' or ``Recycle -Bin'' feature, you can make this command move the specified file to -the Trash or Recycle Bin, instead of deleting it outright; to do so, -change the variable @code{delete-by-moving-to-trash} to @code{t}. If -you are deleting many files in one directory, it may be more -convenient to use Dired rather than @code{delete-file}. @xref{Dired}. +command in the shell. If you are deleting many files in one +directory, it may be more convenient to use Dired rather than +@code{delete-file}. @xref{Dired}. + +@cindex trash +@cindex recycle bin + On some systems, there is a facility called the ``Trash'' (or +``Recycle Bin''); ``deleting'' a file normally means moving it into +the Trash, and you can bring the file back from the Trash if you later +change your mind. By default, Emacs does @emph{not} use the Trash for +file deletion---when Emacs deletes a file, it is gone forever. You +can tell Emacs to use the Trash by changing the variable +@code{delete-by-moving-to-trash} to @code{t}. This applies to file +deletion via @kbd{M-x delete-file}, as well as @kbd{M-x +delete-directory} (@pxref{Directories}) and file deletion in Dired +(@pxref{Dired Deletion}). In addition, you can explicitly move a file +into the Trash with the command @kbd{M-x move-file-to-trash}. @findex rename-file @kbd{M-x rename-file} reads two file names @var{old} and @var{new} using