diff options
| author | Chong Yidong | 2008-11-16 07:26:21 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-11-16 07:26:21 +0000 |
| commit | 387e551b805a70db270dcffb76b964d23953cad8 (patch) | |
| tree | 337feaac649f2896e2f3bbe53d22363fecd110bb | |
| parent | f2d7be8842122be070521709d3cb21faecb4a8ee (diff) | |
| download | emacs-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.texi | 28 |
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 | |||
| 1233 | the directory is not empty, this signals an error. On systems that | 1233 | the directory is not empty, this signals an error. On systems that |
| 1234 | have a ``Trash'' or ``Recycle Bin'' feature, you can make this command | 1234 | have a ``Trash'' or ``Recycle Bin'' feature, you can make this command |
| 1235 | move the specified directory to the Trash or Recycle Bin, instead of | 1235 | move the specified directory to the Trash or Recycle Bin, instead of |
| 1236 | deleting it outright; to do so, change the variable | 1236 | deleting 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}, |
| 1238 | for 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} |
| 1504 | command in the shell. On systems that have a ``Trash'' or ``Recycle | 1505 | command in the shell. If you are deleting many files in one |
| 1505 | Bin'' feature, you can make this command move the specified file to | 1506 | directory, it may be more convenient to use Dired rather than |
| 1506 | the Trash or Recycle Bin, instead of deleting it outright; to do so, | 1507 | @code{delete-file}. @xref{Dired}. |
| 1507 | change the variable @code{delete-by-moving-to-trash} to @code{t}. If | 1508 | |
| 1508 | you are deleting many files in one directory, it may be more | 1509 | @cindex trash |
| 1509 | convenient 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 | ||
| 1513 | the Trash, and you can bring the file back from the Trash if you later | ||
| 1514 | change your mind. By default, Emacs does @emph{not} use the Trash for | ||
| 1515 | file deletion---when Emacs deletes a file, it is gone forever. You | ||
| 1516 | can tell Emacs to use the Trash by changing the variable | ||
| 1517 | @code{delete-by-moving-to-trash} to @code{t}. This applies to file | ||
| 1518 | deletion via @kbd{M-x delete-file}, as well as @kbd{M-x | ||
| 1519 | delete-directory} (@pxref{Directories}) and file deletion in Dired | ||
| 1520 | (@pxref{Dired Deletion}). In addition, you can explicitly move a file | ||
| 1521 | into 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 |