aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2008-11-16 07:26:21 +0000
committerChong Yidong2008-11-16 07:26:21 +0000
commit387e551b805a70db270dcffb76b964d23953cad8 (patch)
tree337feaac649f2896e2f3bbe53d22363fecd110bb
parentf2d7be8842122be070521709d3cb21faecb4a8ee (diff)
downloademacs-387e551b805a70db270dcffb76b964d23953cad8.tar.gz
emacs-387e551b805a70db270dcffb76b964d23953cad8.zip
(Directories): Describe delete-directory in text.
(Misc File Ops): Document use of trash.
-rw-r--r--doc/emacs/files.texi28
1 files changed, 20 insertions, 8 deletions
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
1233the directory is not empty, this signals an error. On systems that 1233the directory is not empty, this signals an error. On systems that
1234have a ``Trash'' or ``Recycle Bin'' feature, you can make this command 1234have a ``Trash'' or ``Recycle Bin'' feature, you can make this command
1235move the specified directory to the Trash or Recycle Bin, instead of 1235move the specified directory to the Trash or Recycle Bin, instead of
1236deleting it outright; to do so, change the variable 1236deleting it outright, by changing the variable
1237@code{delete-by-moving-to-trash} to @code{t}. 1237@code{delete-by-moving-to-trash} to @code{t}. @xref{Misc File Ops},
1238for more information about using the Trash.
1238 1239
1239@node Comparing Files 1240@node Comparing Files
1240@section Comparing Files 1241@section Comparing Files
@@ -1501,12 +1502,23 @@ as saving files; see @ref{Customize Save}.
1501@cindex deletion (of files) 1502@cindex deletion (of files)
1502@vindex delete-by-moving-to-trash 1503@vindex delete-by-moving-to-trash
1503 @kbd{M-x delete-file} deletes the specified file, like the @code{rm} 1504 @kbd{M-x delete-file} deletes the specified file, like the @code{rm}
1504command in the shell. On systems that have a ``Trash'' or ``Recycle 1505command in the shell. If you are deleting many files in one
1505Bin'' feature, you can make this command move the specified file to 1506directory, it may be more convenient to use Dired rather than
1506the Trash or Recycle Bin, instead of deleting it outright; to do so, 1507@code{delete-file}. @xref{Dired}.
1507change the variable @code{delete-by-moving-to-trash} to @code{t}. If 1508
1508you are deleting many files in one directory, it may be more 1509@cindex trash
1509convenient to use Dired rather than @code{delete-file}. @xref{Dired}. 1510@cindex recycle bin
1511 On some systems, there is a facility called the ``Trash'' (or
1512``Recycle Bin''); ``deleting'' a file normally means moving it into
1513the Trash, and you can bring the file back from the Trash if you later
1514change your mind. By default, Emacs does @emph{not} use the Trash for
1515file deletion---when Emacs deletes a file, it is gone forever. You
1516can tell Emacs to use the Trash by changing the variable
1517@code{delete-by-moving-to-trash} to @code{t}. This applies to file
1518deletion via @kbd{M-x delete-file}, as well as @kbd{M-x
1519delete-directory} (@pxref{Directories}) and file deletion in Dired
1520(@pxref{Dired Deletion}). In addition, you can explicitly move a file
1521into the Trash with the command @kbd{M-x move-file-to-trash}.
1510 1522
1511@findex rename-file 1523@findex rename-file
1512 @kbd{M-x rename-file} reads two file names @var{old} and @var{new} using 1524 @kbd{M-x rename-file} reads two file names @var{old} and @var{new} using