Index: lisp/dired-aux.el =================================================================== RCS file: /sources/emacs/emacs/lisp/dired-aux.el,v retrieving revision 1.154 diff -c -r1.154 dired-aux.el *** lisp/dired-aux.el 13 Aug 2007 13:41:07 -0000 1.154 --- lisp/dired-aux.el 9 Sep 2007 20:23:25 -0000 *************** *** 253,261 **** ;;;###autoload (defun dired-do-chmod (&optional arg) "Change the mode of the marked (or next ARG) files. ! This calls chmod, thus symbolic modes like `g+w' are allowed." (interactive "P") ! (dired-do-chxxx "Mode" dired-chmod-program 'chmod arg)) ;;;###autoload (defun dired-do-chgrp (&optional arg) --- 253,272 ---- ;;;###autoload (defun dired-do-chmod (&optional arg) "Change the mode of the marked (or next ARG) files. ! Symbolic modes like `g+w' are allowed." (interactive "P") ! (let* ((files (dired-get-marked-files t arg)) ! (modes (dired-mark-read-string ! "Change mode of %s to: " nil ! 'chmod arg files)) ! (num-modes (if (string-match "^[0-7]+" modes) ! (string-to-number modes 8)))) ! (dolist (file files) ! (set-file-modes ! file ! (if num-modes num-modes ! (symbolic-file-modes-to-number modes (file-modes file))))) ! (dired-do-redisplay arg))) ;;;###autoload (defun dired-do-chgrp (&optional arg)