aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2011-08-28 16:22:10 -0400
committerChong Yidong2011-08-28 16:22:10 -0400
commit04e2ce72d02518fd32f71e494c00313d4f86e9ee (patch)
tree4d942d127f9f85b30f8ec95013c3bc89766693c6
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.
-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
-rw-r--r--etc/NEWS18
7 files changed, 77 insertions, 67 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
diff --git a/etc/NEWS b/etc/NEWS
index c208533b2e1..f563dde0b0c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -247,9 +247,6 @@ Emacs.pane.menubar.font: Courier-12
247Also, the first dash (which does not indicate anything) is just 247Also, the first dash (which does not indicate anything) is just
248displayed as a space. 248displayed as a space.
249 249
250** On Nextstep/OSX, the menu bar can be hidden by customizing
251ns-auto-hide-menu-bar.
252
253** Basic SELinux support has been added. 250** Basic SELinux support has been added.
254This requires Emacs to be linked with libselinux at build time. 251This requires Emacs to be linked with libselinux at build time.
255 252
@@ -305,10 +302,10 @@ scrolls the window so as to avoid positioning point inside the scroll
305margin. 302margin.
306 303
307** Trash changes 304** Trash changes
308 305+++
309*** `delete-by-moving-to-trash' now only affects commands that specify 306*** `delete-by-moving-to-trash' now only affects commands that specify
310trashing. This avoids inadvertently trashing temporary files. 307trashing. This avoids inadvertently trashing temporary files.
311 308+++
312*** Calling `delete-file' or `delete-directory' with a prefix argument 309*** Calling `delete-file' or `delete-directory' with a prefix argument
313now forces true deletion, regardless of `delete-by-moving-to-trash'. 310now forces true deletion, regardless of `delete-by-moving-to-trash'.
314 311
@@ -1006,7 +1003,8 @@ Emacs server instances.
1006** `call-process' allows a `(:file "file")' spec to redirect STDOUT to 1003** `call-process' allows a `(:file "file")' spec to redirect STDOUT to
1007a file. 1004a file.
1008 1005
1009** Removed the stack-trace-on-error variable. 1006---
1007** Variable `stack-trace-on-error' removed.
1010Also the debugger can now "continue" from an error, which means it will jump 1008Also the debugger can now "continue" from an error, which means it will jump
1011to the error handler as if the debugger had not been invoked instead of 1009to the error handler as if the debugger had not been invoked instead of
1012jumping all the way to the top-level. 1010jumping all the way to the top-level.
@@ -1019,8 +1017,8 @@ The variable is now used to load all kind of supported dynamic libraries,
1019not just image libraries. The previous name is still available as an 1017not just image libraries. The previous name is still available as an
1020obsolete alias. 1018obsolete alias.
1021 1019
1022** New variable syntax-propertize-function to set syntax-table properties. 1020** New variable `syntax-propertize-function'.
1023Replaces font-lock-syntactic-keywords which are now obsolete. 1021This replaces `font-lock-syntactic-keywords' which is now obsolete.
1024This allows syntax-table properties to be set independently from font-lock: 1022This allows syntax-table properties to be set independently from font-lock:
1025just call syntax-propertize to make sure the text is propertized. 1023just call syntax-propertize to make sure the text is propertized.
1026Together with this new variable come a new hook 1024Together with this new variable come a new hook
@@ -1045,6 +1043,7 @@ programming modes.
1045 1043
1046** define-minor-mode accepts a new keyword :variable. 1044** define-minor-mode accepts a new keyword :variable.
1047 1045
1046+++
1048** `delete-file' and `delete-directory' now accept optional arg TRASH. 1047** `delete-file' and `delete-directory' now accept optional arg TRASH.
1049Trashing is performed if TRASH and `delete-by-moving-to-trash' are 1048Trashing is performed if TRASH and `delete-by-moving-to-trash' are
1050both non-nil. Interactively, TRASH defaults to t, unless a prefix 1049both non-nil. Interactively, TRASH defaults to t, unless a prefix
@@ -1165,6 +1164,9 @@ with the USER_LIBS build variable.
1165 1164
1166** New make target `dist' to create binary distribution for MS Windows. 1165** New make target `dist' to create binary distribution for MS Windows.
1167 1166
1167** On Nextstep/OSX, the menu bar can be hidden by customizing
1168ns-auto-hide-menu-bar.
1169
1168 1170
1169---------------------------------------------------------------------- 1171----------------------------------------------------------------------
1170This file is part of GNU Emacs. 1172This file is part of GNU Emacs.