Mercurial > emacs
changeset 109488:ced3f5ab1023
* dired.el (dired-no-confirm): Document value t and fix defcustom (bug#6597).
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 22 Jul 2010 14:15:31 +0200 |
parents | 2d68a79d5213 |
children | b4b02bfd4d95 be6e78af486e 56a8db5db6ae |
files | lisp/ChangeLog lisp/dired.el |
diffstat | 2 files changed, 15 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Thu Jul 22 13:54:27 2010 +0200 +++ b/lisp/ChangeLog Thu Jul 22 14:15:31 2010 +0200 @@ -1,3 +1,8 @@ +2010-07-22 Juanma Barranquero <lekktu@gmail.com> + + * dired.el (dired-no-confirm): Document value t and fix defcustom to + accept it (bug#6597). Suggested by Drew Adams <drew.adams@oracle.com>. + 2010-07-22 Teemu Likonen <tlikonen@iki.fi> (tiny change) * dired.el (dired-mode-map): Use command remapping (bug#6632).
--- a/lisp/dired.el Thu Jul 22 13:54:27 2010 +0200 +++ b/lisp/dired.el Thu Jul 22 14:15:31 2010 +0200 @@ -2763,17 +2763,19 @@ (fit-window-to-buffer (get-buffer-window buf) nil 1))) (defcustom dired-no-confirm nil - "A list of symbols for commands Dired should not confirm. + "A list of symbols for commands Dired should not confirm, or t. Command symbols are `byte-compile', `chgrp', `chmod', `chown', `compress', `copy', `delete', `hardlink', `load', `move', `print', `shell', `symlink', -`touch' and `uncompress'." +`touch' and `uncompress'. +If t, confirmation is never needed." :group 'dired - :type '(set (const byte-compile) (const chgrp) - (const chmod) (const chown) (const compress) - (const copy) (const delete) (const hardlink) - (const load) (const move) (const print) - (const shell) (const symlink) (const touch) - (const uncompress))) + :type '(choice (const :tag "Confirmation never needed" t) + (set (const byte-compile) (const chgrp) + (const chmod) (const chown) (const compress) + (const copy) (const delete) (const hardlink) + (const load) (const move) (const print) + (const shell) (const symlink) (const touch) + (const uncompress)))) (defun dired-mark-pop-up (bufname op-symbol files function &rest args) "Return FUNCTION's result on ARGS after showing which files are marked.