# HG changeset patch # User Katsumi Yamaoka # Date 1279839023 0 # Node ID be6e78af486e5736a949adabc642662bc332e3fb # Parent 893ec0a03db8fe61109f82a44293b2946807fec3# Parent ced3f5ab1023e48faca9b140057ddcc23e73e1f0 Merge from mainline. diff -r 893ec0a03db8 -r be6e78af486e lisp/ChangeLog --- a/lisp/ChangeLog Wed Jul 21 22:51:18 2010 +0000 +++ b/lisp/ChangeLog Thu Jul 22 22:50:23 2010 +0000 @@ -1,3 +1,16 @@ +2010-07-22 Juanma Barranquero + + * dired.el (dired-no-confirm): Document value t and fix defcustom to + accept it (bug#6597). Suggested by Drew Adams . + +2010-07-22 Teemu Likonen (tiny change) + + * dired.el (dired-mode-map): Use command remapping (bug#6632). + +2010-07-22 Lawrence Mitchell + + * term/vt100.el (vt100-wide-mode): Fix :init-value keyword (bug#6620). + 2010-07-21 Michael Albinus * net/tramp.el (tramp-get-ls-command) diff -r 893ec0a03db8 -r be6e78af486e lisp/dired.el --- a/lisp/dired.el Wed Jul 21 22:51:18 2010 +0000 +++ b/lisp/dired.el Thu Jul 22 22:50:23 2010 +0000 @@ -1380,10 +1380,8 @@ (define-key map ">" 'dired-next-dirline) (define-key map "^" 'dired-up-directory) (define-key map " " 'dired-next-line) - (define-key map "\C-n" 'dired-next-line) - (define-key map "\C-p" 'dired-previous-line) - (define-key map [down] 'dired-next-line) - (define-key map [up] 'dired-previous-line) + (define-key map [remap next-line] 'dired-next-line) + (define-key map [remap previous-line] 'dired-previous-line) ;; hiding (define-key map "$" 'dired-hide-subdir) (define-key map "\M-$" 'dired-hide-all) @@ -1393,7 +1391,7 @@ (define-key map (kbd "M-s f C-s") 'dired-isearch-filenames) (define-key map (kbd "M-s f M-C-s") 'dired-isearch-filenames-regexp) ;; misc - (define-key map "\C-x\C-q" 'dired-toggle-read-only) + (define-key map [remap toggle-read-only] 'dired-toggle-read-only) (define-key map "?" 'dired-summary) (define-key map "\177" 'dired-unmark-backward) (define-key map [remap undo] 'dired-undo) @@ -2765,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. diff -r 893ec0a03db8 -r be6e78af486e lisp/term/vt100.el --- a/lisp/term/vt100.el Wed Jul 21 22:51:18 2010 +0000 +++ b/lisp/term/vt100.el Thu Jul 22 22:50:23 2010 +0000 @@ -45,7 +45,7 @@ "Toggle 132/80 column mode for vt100s. With positive argument, switch to 132-column mode. With negative argument, switch to 80-column mode." - :global t :initial-value (= (frame-width) 132) + :global t :init-value (= (frame-width) 132) (send-string-to-terminal (if vt100-wide-mode "\e[?3h" "\e[?3l")) (set-frame-width terminal-frame (if vt100-wide-mode 132 80)))