diff options
| -rw-r--r-- | doc/emacs/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/emacs/dired.texi | 10 | ||||
| -rw-r--r-- | doc/emacs/files.texi | 47 | ||||
| -rw-r--r-- | doc/lispref/ChangeLog | 3 | ||||
| -rw-r--r-- | doc/lispref/debugging.texi | 19 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 42 | ||||
| -rw-r--r-- | etc/NEWS | 18 |
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 @@ | |||
| 1 | 2011-08-28 Chong Yidong <cyd@stupidchicken.com> | 1 | 2011-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 | ||
| 5 | 2011-08-27 Eli Zaretskii <eliz@gnu.org> | 10 | 2011-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 | |||
| 201 | be somewhat risky. | 201 | be 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 |
| 206 | when you delete a file in Dired, it is gone forever. However, you can | 206 | directories into the operating system's Trash, instead of deleting |
| 207 | tell Emacs to use the Trash for file deletion, by changing the | 207 | them outright. @xref{Misc File Ops}. |
| 208 | variable @code{delete-by-moving-to-trash} to @code{t}. @xref{Misc | ||
| 209 | File 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 |
| 1273 | using the minibuffer, and deletes the directory if it is empty. If | 1273 | using the minibuffer, and deletes the directory if it is empty. If |
| 1274 | the directory is not empty, you will be asked whether you want to | 1274 | the directory is not empty, you will be asked whether you want to |
| 1275 | delete it recursively. On systems that have a ``Trash'' or ``Recycle | 1275 | delete it recursively. On systems that have a ``Trash'' (or ``Recycle |
| 1276 | Bin'' feature, you can make this command move the specified directory | 1276 | Bin'') feature, you can make this command move the specified directory |
| 1277 | to the Trash or Recycle Bin, instead of deleting it outright, by | 1277 | to the Trash instead of deleting it outright, by changing the variable |
| 1278 | changing 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. | 1279 | for 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} | 1550 | deleting many files in one directory, it may be more convenient to use |
| 1551 | command in the shell. If you are deleting many files in one | 1551 | Dired rather than @code{delete-file}. @xref{Dired}. |
| 1552 | directory, 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 | 1556 | system's @dfn{Trash} (or @dfn{Recycle Bin}). This is a facility |
| 1559 | the Trash, and you can bring the file back from the Trash if you later | 1557 | available on most operating systems; files that are moved into the |
| 1560 | change your mind. By default, Emacs does @emph{not} use the Trash for | 1558 | Trash can be brought back later if you change your mind. |
| 1561 | file deletion---when Emacs deletes a file, it is gone forever. You | 1559 | |
| 1562 | can 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 |
| 1564 | deletion via @kbd{M-x delete-file}, as well as @kbd{M-x | 1562 | use the Trash (when it is available) for common deletion commands, |
| 1565 | delete-directory} (@pxref{Directories}) and file deletion in Dired | 1563 | change the variable @code{delete-by-moving-to-trash} to @code{t}. |
| 1566 | (@pxref{Dired Deletion}). In addition, you can explicitly move a file | 1564 | This affects the commands @kbd{M-x delete-file} and @kbd{M-x |
| 1567 | into the Trash with the command @kbd{M-x move-file-to-trash}. | 1565 | delete-directory} (@pxref{Directories}), as well as the deletion |
| 1566 | commands in Dired (@pxref{Dired Deletion}). Supplying a prefix | ||
| 1567 | argument to @kbd{M-x delete-file} or @kbd{M-x delete-directory} makes | ||
| 1568 | them 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 | ||
| 1571 | happen as a side-effect of other Emacs commands (e.g. deletions of | ||
| 1572 | temporary 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 @@ | |||
| 1 | 2011-08-28 Chong Yidong <cyd@stupidchicken.com> | 1 | 2011-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 | ||
| 602 | This variable controls whether Lisp automatically displays a | ||
| 603 | backtrace buffer after every error that is not handled. A quit signal | ||
| 604 | counts as an error for this variable. If it is non-@code{nil} then a | ||
| 605 | backtrace is shown in a pop-up buffer named @samp{*Backtrace*} on every | ||
| 606 | error. If it is @code{nil}, then a backtrace is not shown. | ||
| 607 | |||
| 608 | When 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 | ||
| 610 | a backtrace is shown in one buffer, and the debugger is popped up in | ||
| 611 | another buffer with its own backtrace. | ||
| 612 | |||
| 613 | We consider this feature to be obsolete and superseded by the debugger | ||
| 614 | itself. | ||
| 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 | |||
| 1529 | links. | 1529 | links. |
| 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 |
| 1534 | This command deletes the file @var{filename}, like the shell command | 1536 | This command deletes the file @var{filename}. If the file has |
| 1535 | @samp{rm @var{filename}}. If the file has multiple names, it continues | 1537 | multiple names, it continues to exist under the other names. If |
| 1536 | to exist under the other names. | 1538 | @var{filename} is a symbolic link, @code{delete-file} deletes only the |
| 1537 | 1539 | symbolic link and not its target (though it does follow symbolic links | |
| 1538 | A suitable kind of @code{file-error} error is signaled if the file does | 1540 | at all levels of parent directories). |
| 1539 | not exist, or is not deletable. (On Unix and GNU/Linux, a file is | 1541 | |
| 1540 | deletable if its directory is writable.) | 1542 | A suitable kind of @code{file-error} error is signaled if the file |
| 1541 | 1543 | does not exist, or is not deletable. (On Unix and GNU/Linux, a file | |
| 1542 | If @var{filename} is a symbolic link, @code{delete-file} does not | 1544 | is deletable if its directory is writable.) |
| 1543 | replace it with its target, but it does follow symbolic links at all | 1545 | |
| 1544 | levels of parent directories. | 1546 | If the optional argument @var{trash} is non-@code{nil} and the |
| 1547 | variable @code{delete-by-moving-to-trash} is non-@code{nil}, this | ||
| 1548 | command moves the file into the system Trash instead of deleting it. | ||
| 1549 | @xref{Misc File Ops,,Miscellaneous File Operations, emacs, The GNU | ||
| 1550 | Emacs Manual}. When called interactively, @var{trash} is @code{t} if | ||
| 1551 | no prefix argument is given, and @code{nil} otherwise. | ||
| 1545 | 1552 | ||
| 1546 | See also @code{delete-directory} in @ref{Create/Delete Dirs}. | 1553 | See 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, | |||
| 2524 | this happens by default. | 2531 | this 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 | ||
| 2528 | This command deletes the directory named @var{dirname}. The function | 2537 | This 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 |
| 2530 | must use @code{delete-directory} for them. If @var{recursive} is | 2539 | must 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 |
| 2535 | parent directories. | 2544 | parent directories. |
| 2545 | |||
| 2546 | If the optional argument @var{trash} is non-@code{nil} and the | ||
| 2547 | variable @code{delete-by-moving-to-trash} is non-@code{nil}, this | ||
| 2548 | command moves the file into the system Trash instead of deleting it. | ||
| 2549 | @xref{Misc File Ops,,Miscellaneous File Operations, emacs, The GNU | ||
| 2550 | Emacs Manual}. When called interactively, @var{trash} is @code{t} if | ||
| 2551 | no 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 |
| @@ -247,9 +247,6 @@ Emacs.pane.menubar.font: Courier-12 | |||
| 247 | Also, the first dash (which does not indicate anything) is just | 247 | Also, the first dash (which does not indicate anything) is just |
| 248 | displayed as a space. | 248 | displayed as a space. |
| 249 | 249 | ||
| 250 | ** On Nextstep/OSX, the menu bar can be hidden by customizing | ||
| 251 | ns-auto-hide-menu-bar. | ||
| 252 | |||
| 253 | ** Basic SELinux support has been added. | 250 | ** Basic SELinux support has been added. |
| 254 | This requires Emacs to be linked with libselinux at build time. | 251 | This 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 | |||
| 305 | margin. | 302 | margin. |
| 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 |
| 310 | trashing. This avoids inadvertently trashing temporary files. | 307 | trashing. 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 |
| 313 | now forces true deletion, regardless of `delete-by-moving-to-trash'. | 310 | now 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 |
| 1007 | a file. | 1004 | a file. |
| 1008 | 1005 | ||
| 1009 | ** Removed the stack-trace-on-error variable. | 1006 | --- |
| 1007 | ** Variable `stack-trace-on-error' removed. | ||
| 1010 | Also the debugger can now "continue" from an error, which means it will jump | 1008 | Also the debugger can now "continue" from an error, which means it will jump |
| 1011 | to the error handler as if the debugger had not been invoked instead of | 1009 | to the error handler as if the debugger had not been invoked instead of |
| 1012 | jumping all the way to the top-level. | 1010 | jumping all the way to the top-level. |
| @@ -1019,8 +1017,8 @@ The variable is now used to load all kind of supported dynamic libraries, | |||
| 1019 | not just image libraries. The previous name is still available as an | 1017 | not just image libraries. The previous name is still available as an |
| 1020 | obsolete alias. | 1018 | obsolete alias. |
| 1021 | 1019 | ||
| 1022 | ** New variable syntax-propertize-function to set syntax-table properties. | 1020 | ** New variable `syntax-propertize-function'. |
| 1023 | Replaces font-lock-syntactic-keywords which are now obsolete. | 1021 | This replaces `font-lock-syntactic-keywords' which is now obsolete. |
| 1024 | This allows syntax-table properties to be set independently from font-lock: | 1022 | This allows syntax-table properties to be set independently from font-lock: |
| 1025 | just call syntax-propertize to make sure the text is propertized. | 1023 | just call syntax-propertize to make sure the text is propertized. |
| 1026 | Together with this new variable come a new hook | 1024 | Together 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. |
| 1049 | Trashing is performed if TRASH and `delete-by-moving-to-trash' are | 1048 | Trashing is performed if TRASH and `delete-by-moving-to-trash' are |
| 1050 | both non-nil. Interactively, TRASH defaults to t, unless a prefix | 1049 | both 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 | ||
| 1168 | ns-auto-hide-menu-bar. | ||
| 1169 | |||
| 1168 | 1170 | ||
| 1169 | ---------------------------------------------------------------------- | 1171 | ---------------------------------------------------------------------- |
| 1170 | This file is part of GNU Emacs. | 1172 | This file is part of GNU Emacs. |