aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChong Yidong2011-08-28 16:22:10 -0400
committerChong Yidong2011-08-28 16:22:10 -0400
commit04e2ce72d02518fd32f71e494c00313d4f86e9ee (patch)
tree4d942d127f9f85b30f8ec95013c3bc89766693c6 /doc
parentb9696605a311d77c32139aeb0dcce021cd8d05c4 (diff)
downloademacs-04e2ce72d02518fd32f71e494c00313d4f86e9ee.tar.gz
emacs-04e2ce72d02518fd32f71e494c00313d4f86e9ee.zip
Document trash changes in manual.
* doc/emacs/dired.texi (Dired Deletion): Shorten description of Trash. * doc/emacs/files.texi (Misc File Ops): Document new delete-by-moving-to-trash behavior. * doc/lispref/files.texi (Changing Files, Create/Delete Dirs): Document TRASH argument.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/ChangeLog5
-rw-r--r--doc/emacs/dired.texi10
-rw-r--r--doc/emacs/files.texi47
-rw-r--r--doc/lispref/ChangeLog3
-rw-r--r--doc/lispref/debugging.texi19
-rw-r--r--doc/lispref/files.texi42
6 files changed, 67 insertions, 59 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index b3330022cb3..7b940ba7b5a 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,5 +1,10 @@
12011-08-28 Chong Yidong <cyd@stupidchicken.com> 12011-08-28 Chong Yidong <cyd@stupidchicken.com>
2 2
3 * files.texi (Misc File Ops): Document new
4 delete-by-moving-to-trash behavior.
5
6 * dired.texi (Dired Deletion): Shorten description of Trash.
7
3 * misc.texi (emacsclient Options): Document server-port. 8 * misc.texi (emacsclient Options): Document server-port.
4 9
52011-08-27 Eli Zaretskii <eliz@gnu.org> 102011-08-27 Eli Zaretskii <eliz@gnu.org>
diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi
index d536547e293..eb2bcc109e8 100644
--- a/doc/emacs/dired.texi
+++ b/doc/emacs/dired.texi
@@ -201,12 +201,10 @@ delete nonempty directories including all their contents. That can
201be somewhat risky. 201be somewhat risky.
202 202
203@vindex delete-by-moving-to-trash 203@vindex delete-by-moving-to-trash
204 On some systems, there is a facility called the ``Trash'' or 204 If you change the variable @code{delete-by-moving-to-trash} to
205``Recycle Bin'', but Emacs does @emph{not} use it by default. Thus, 205@code{t}, the above deletion commands will move the affected files or
206when you delete a file in Dired, it is gone forever. However, you can 206directories into the operating system's Trash, instead of deleting
207tell Emacs to use the Trash for file deletion, by changing the 207them outright. @xref{Misc File Ops}.
208variable @code{delete-by-moving-to-trash} to @code{t}. @xref{Misc
209File Ops}, for more information about the Trash.
210 208
211@node Flagging Many Files 209@node Flagging Many Files
212@section Flagging Many Files at Once 210@section Flagging Many Files at Once
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index 793a11e62ed..d337ed3694e 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -1272,11 +1272,11 @@ this, it runs the program specified by
1272 The command @kbd{M-x delete-directory} prompts for a directory name 1272 The command @kbd{M-x delete-directory} prompts for a directory name
1273using the minibuffer, and deletes the directory if it is empty. If 1273using the minibuffer, and deletes the directory if it is empty. If
1274the directory is not empty, you will be asked whether you want to 1274the directory is not empty, you will be asked whether you want to
1275delete it recursively. On systems that have a ``Trash'' or ``Recycle 1275delete it recursively. On systems that have a ``Trash'' (or ``Recycle
1276Bin'' feature, you can make this command move the specified directory 1276Bin'') feature, you can make this command move the specified directory
1277to the Trash or Recycle Bin, instead of deleting it outright, by 1277to the Trash instead of deleting it outright, by changing the variable
1278changing the variable @code{delete-by-moving-to-trash} to @code{t}. 1278@code{delete-by-moving-to-trash} to @code{t}. @xref{Misc File Ops},
1279@xref{Misc File Ops}, for more information about using the Trash. 1279for more information about using the Trash.
1280 1280
1281@node Comparing Files 1281@node Comparing Files
1282@section Comparing Files 1282@section Comparing Files
@@ -1546,25 +1546,30 @@ as saving files; see @ref{Customize Save}.
1546 1546
1547@findex delete-file 1547@findex delete-file
1548@cindex deletion (of files) 1548@cindex deletion (of files)
1549@vindex delete-by-moving-to-trash 1549 @kbd{M-x delete-file} prompts for a file and deletes it. If you are
1550 @kbd{M-x delete-file} deletes the specified file, like the @code{rm} 1550deleting many files in one directory, it may be more convenient to use
1551command in the shell. If you are deleting many files in one 1551Dired rather than @code{delete-file}. @xref{Dired}.
1552directory, it may be more convenient to use Dired rather than
1553@code{delete-file}. @xref{Dired}.
1554 1552
1555@cindex trash 1553@cindex trash
1556@cindex recycle bin 1554@cindex recycle bin
1557 On some systems, there is a facility called the ``Trash'' (or 1555 @kbd{M-x move-file-to-trash} moves a file into the operating
1558``Recycle Bin''); ``deleting'' a file normally means moving it into 1556system's @dfn{Trash} (or @dfn{Recycle Bin}). This is a facility
1559the Trash, and you can bring the file back from the Trash if you later 1557available on most operating systems; files that are moved into the
1560change your mind. By default, Emacs does @emph{not} use the Trash for 1558Trash can be brought back later if you change your mind.
1561file deletion---when Emacs deletes a file, it is gone forever. You 1559
1562can tell Emacs to use the Trash by changing the variable 1560@vindex delete-by-moving-to-trash
1563@code{delete-by-moving-to-trash} to @code{t}. This applies to file 1561 By default, Emacs deletion commands do @emph{not} use the Trash. To
1564deletion via @kbd{M-x delete-file}, as well as @kbd{M-x 1562use the Trash (when it is available) for common deletion commands,
1565delete-directory} (@pxref{Directories}) and file deletion in Dired 1563change the variable @code{delete-by-moving-to-trash} to @code{t}.
1566(@pxref{Dired Deletion}). In addition, you can explicitly move a file 1564This affects the commands @kbd{M-x delete-file} and @kbd{M-x
1567into the Trash with the command @kbd{M-x move-file-to-trash}. 1565delete-directory} (@pxref{Directories}), as well as the deletion
1566commands in Dired (@pxref{Dired Deletion}). Supplying a prefix
1567argument to @kbd{M-x delete-file} or @kbd{M-x delete-directory} makes
1568them delete outright, instead of using the Trash, regardless of
1569@code{delete-by-moving-to-trash}. The variable
1570@code{delete-by-moving-to-trash} does not affect file deletions that
1571happen as a side-effect of other Emacs commands (e.g. deletions of
1572temporary files); those are always true deletions.
1568 1573
1569@findex rename-file 1574@findex rename-file
1570 @kbd{M-x rename-file} reads two file names @var{old} and @var{new} using 1575 @kbd{M-x rename-file} reads two file names @var{old} and @var{new} using
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 2d46ad3f774..a778cd92518 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,5 +1,8 @@
12011-08-28 Chong Yidong <cyd@stupidchicken.com> 12011-08-28 Chong Yidong <cyd@stupidchicken.com>
2 2
3 * files.texi (Changing Files, Create/Delete Dirs): Document TRASH
4 argument.
5
3 * frames.texi (Layout Parameters): The defaults for the 6 * frames.texi (Layout Parameters): The defaults for the
4 menu-bar-lines and tool-bar-lines parameters depend on the mode. 7 menu-bar-lines and tool-bar-lines parameters depend on the mode.
5 8
diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi
index d9e807afb88..757906f286e 100644
--- a/doc/lispref/debugging.texi
+++ b/doc/lispref/debugging.texi
@@ -596,25 +596,6 @@ forms are elided.
596@end smallexample 596@end smallexample
597@end deffn 597@end deffn
598 598
599@ignore @c Not worth mentioning
600@defopt stack-trace-on-error
601@cindex stack trace
602This variable controls whether Lisp automatically displays a
603backtrace buffer after every error that is not handled. A quit signal
604counts as an error for this variable. If it is non-@code{nil} then a
605backtrace is shown in a pop-up buffer named @samp{*Backtrace*} on every
606error. If it is @code{nil}, then a backtrace is not shown.
607
608When a backtrace is shown, that buffer is not selected. If either
609@code{debug-on-quit} or @code{debug-on-error} is also non-@code{nil}, then
610a backtrace is shown in one buffer, and the debugger is popped up in
611another buffer with its own backtrace.
612
613We consider this feature to be obsolete and superseded by the debugger
614itself.
615@end defopt
616@end ignore
617
618@defvar debug-on-next-call 599@defvar debug-on-next-call
619@cindex @code{eval}, and debugging 600@cindex @code{eval}, and debugging
620@cindex @code{apply}, and debugging 601@cindex @code{apply}, and debugging
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index 4d992bd2c51..c83defb433c 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -1529,19 +1529,26 @@ This function is not available on systems that don't support symbolic
1529links. 1529links.
1530@end deffn 1530@end deffn
1531 1531
1532@deffn Command delete-file filename 1532@cindex trash
1533@vindex delete-by-moving-to-trash
1534@deffn Command delete-file filename &optional trash
1533@pindex rm 1535@pindex rm
1534This command deletes the file @var{filename}, like the shell command 1536This command deletes the file @var{filename}. If the file has
1535@samp{rm @var{filename}}. If the file has multiple names, it continues 1537multiple names, it continues to exist under the other names. If
1536to exist under the other names. 1538@var{filename} is a symbolic link, @code{delete-file} deletes only the
1537 1539symbolic link and not its target (though it does follow symbolic links
1538A suitable kind of @code{file-error} error is signaled if the file does 1540at all levels of parent directories).
1539not exist, or is not deletable. (On Unix and GNU/Linux, a file is 1541
1540deletable if its directory is writable.) 1542A suitable kind of @code{file-error} error is signaled if the file
1541 1543does not exist, or is not deletable. (On Unix and GNU/Linux, a file
1542If @var{filename} is a symbolic link, @code{delete-file} does not 1544is deletable if its directory is writable.)
1543replace it with its target, but it does follow symbolic links at all 1545
1544levels of parent directories. 1546If the optional argument @var{trash} is non-@code{nil} and the
1547variable @code{delete-by-moving-to-trash} is non-@code{nil}, this
1548command moves the file into the system Trash instead of deleting it.
1549@xref{Misc File Ops,,Miscellaneous File Operations, emacs, The GNU
1550Emacs Manual}. When called interactively, @var{trash} is @code{t} if
1551no prefix argument is given, and @code{nil} otherwise.
1545 1552
1546See also @code{delete-directory} in @ref{Create/Delete Dirs}. 1553See also @code{delete-directory} in @ref{Create/Delete Dirs}.
1547@end deffn 1554@end deffn
@@ -2524,7 +2531,9 @@ create parent directories if they don't exist. Interactively,
2524this happens by default. 2531this happens by default.
2525@end deffn 2532@end deffn
2526 2533
2527@deffn Command delete-directory dirname &optional recursive 2534@cindex trash
2535@vindex delete-by-moving-to-trash
2536@deffn Command delete-directory dirname &optional recursive trash
2528This command deletes the directory named @var{dirname}. The function 2537This command deletes the directory named @var{dirname}. The function
2529@code{delete-file} does not work for files that are directories; you 2538@code{delete-file} does not work for files that are directories; you
2530must use @code{delete-directory} for them. If @var{recursive} is 2539must use @code{delete-directory} for them. If @var{recursive} is
@@ -2533,6 +2542,13 @@ must use @code{delete-directory} for them. If @var{recursive} is
2533 2542
2534@code{delete-directory} only follows symbolic links at the level of 2543@code{delete-directory} only follows symbolic links at the level of
2535parent directories. 2544parent directories.
2545
2546If the optional argument @var{trash} is non-@code{nil} and the
2547variable @code{delete-by-moving-to-trash} is non-@code{nil}, this
2548command moves the file into the system Trash instead of deleting it.
2549@xref{Misc File Ops,,Miscellaneous File Operations, emacs, The GNU
2550Emacs Manual}. When called interactively, @var{trash} is @code{t} if
2551no prefix argument is given, and @code{nil} otherwise.
2536@end deffn 2552@end deffn
2537 2553
2538@node Magic File Names 2554@node Magic File Names