Mercurial > emacs
comparison etc/NEWS @ 108806:511da81b16c5
Change delete-by-moving-to-trash so Lisp calls explicitly request trashing.
* src/fileio.c (Fdelete_file): Change meaning of optional arg to mean
whether to trash.
(internal_delete_file, Frename_file): Callers changed.
(delete_by_moving_to_trash): Doc fix.
(Fdelete_directory_internal): Don't move to trash.
* src/callproc.c (delete_temp_file):
* src/buffer.c (Fkill_buffer): Callers changed.
* src/lisp.h: Update prototype.
* lisp/diff.el (diff-sentinel):
* lisp/epg.el (epg--make-temp-file, epg-decrypt-string)
(epg-verify-string, epg-sign-string, epg-encrypt-string):
* lisp/jka-compr.el (jka-compr-partial-uncompress)
(jka-compr-call-process, jka-compr-write-region):
* lisp/server.el (server-sentinel): Remove optional arg from
delete-file, reverting 2010-05-03 change.
* lisp/dired.el (dired-delete-file): New arg TRASH.
(dired-internal-do-deletions): New arg TRASH. Use progress
reporter.
(dired-do-flagged-delete, dired-do-delete): Use trash.
* lisp/files.el (delete-directory): New arg TRASH.
* lisp/speedbar.el (speedbar-item-delete): Allow trashing.
* lisp/net/ange-ftp.el (ange-ftp-del-tmp-name, ange-ftp-delete-file)
(ange-ftp-rename-remote-to-remote)
(ange-ftp-rename-local-to-remote)
(ange-ftp-rename-remote-to-local, ange-ftp-load)
(ange-ftp-compress, ange-ftp-uncompress): Remove optional arg from
`delete-file'.
(ange-ftp-delete-directory): Add optional arg to `delete-file', to
allow trashing.
* lisp/net/tramp-compat.el (tramp-compat-delete-file): Rewrite to
handle new TRASH arg of `delete-file'.
* lisp/net/tramp-fish.el (tramp-fish-handle-delete-directory)
(tramp-fish-handle-delete-file)
(tramp-fish-handle-make-symbolic-link)
(tramp-fish-handle-process-file): Use null TRASH arg in
`tramp-compat-delete-file' call.
* lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler): Use null TRASH
arg in `tramp-compat-delete-file' call.
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-delete-file): Rename arg.
(tramp-gvfs-handle-write-region): Use null TRASH arg in
`tramp-compat-delete-file' call.
* lisp/net/tramp-imap.el (tramp-imap-handle-delete-file): Rename arg.
(tramp-imap-do-copy-or-rename-file): Use null TRASH arg in
`tramp-compat-delete-file' call.
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-file)
(tramp-smb-handle-file-local-copy, tramp-smb-handle-rename-file)
(tramp-smb-handle-write-region): Use null TRASH arg in
tramp-compat-delete-file call.
(tramp-smb-handle-delete-directory): Use tramp-compat-delete-file.
(tramp-smb-handle-delete-file): Rename arg.
* lisp/net/tramp.el (tramp-handle-delete-file): Change FORCE arg to TRASH.
(tramp-handle-make-symbolic-link, tramp-handle-load)
(tramp-do-copy-or-rename-file-via-buffer)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-handle-process-file, tramp-handle-call-process-region)
(tramp-handle-shell-command, tramp-handle-file-local-copy)
(tramp-handle-insert-file-contents, tramp-handle-write-region)
(tramp-delete-temp-file-function): Use null TRASH arg in
tramp-compat-delete-file call.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Thu, 27 May 2010 19:30:11 -0400 |
parents | bd94528648ad |
children | 87dad1e1c860 |
comparison
equal
deleted
inserted
replaced
108805:78199a49c4bf | 108806:511da81b16c5 |
---|---|
107 scroll a line instead of full screen. | 107 scroll a line instead of full screen. |
108 | 108 |
109 ** New property `scroll-command' should be set on a command's symbol to | 109 ** New property `scroll-command' should be set on a command's symbol to |
110 define it as a scroll command affected by `scroll-preserve-screen-position. | 110 define it as a scroll command affected by `scroll-preserve-screen-position. |
111 | 111 |
112 ** Trash changes | |
113 | |
114 *** `delete-by-moving-to-trash' now only affects commands that specify | |
115 trashing. This avoids inadvertently trashing temporary files. | |
116 | |
117 *** Calling `delete-file' or `delete-directory' with a prefix argument | |
118 now forces true deletion, regardless of `delete-by-moving-to-trash'. | |
119 | |
112 | 120 |
113 * Editing Changes in Emacs 24.1 | 121 * Editing Changes in Emacs 24.1 |
114 | 122 |
115 ** completion-at-point is now an alias for complete-symbol. | 123 ** completion-at-point is now an alias for complete-symbol. |
116 | 124 |
117 ** mouse-region-delete-keys has been deleted. | 125 ** mouse-region-delete-keys has been deleted. |
118 | |
119 ** If delete-file is called with a prefix argument, it really deletes, | |
120 regardless of the value of `delete-by-moving-to-trash'. | |
121 | |
122 | 126 |
123 * Changes in Specialized Modes and Packages in Emacs 24.1 | 127 * Changes in Specialized Modes and Packages in Emacs 24.1 |
124 | 128 |
125 ** Archive Mode has basic support to browse 7z archives. | 129 ** Archive Mode has basic support to browse 7z archives. |
126 | 130 |
235 | 239 |
236 ** frame-local variables cannot be let-bound any more. | 240 ** frame-local variables cannot be let-bound any more. |
237 ** prog-mode is a new major-mode meant to be the parent of programming mode. | 241 ** prog-mode is a new major-mode meant to be the parent of programming mode. |
238 ** define-minor-mode accepts a new keyword :variable. | 242 ** define-minor-mode accepts a new keyword :variable. |
239 | 243 |
240 ** delete-file now accepts an optional second arg, FORCE, which says | 244 ** `delete-file' and `delete-directory now accept optional arg TRASH. |
241 to always delete and ignore the value of delete-by-moving-to-trash. | 245 Trashing is performed if TRASH and `delete-by-moving-to-trash' are |
246 both non-nil. Interactively, TRASH defaults to t, unless a prefix | |
247 argument is supplied (see Trash changes, above). | |
242 | 248 |
243 ** buffer-substring-filters is obsoleted by filter-buffer-substring-functions. | 249 ** buffer-substring-filters is obsoleted by filter-buffer-substring-functions. |
244 | 250 |
245 ** New completion style `substring'. | 251 ** New completion style `substring'. |
246 | 252 |