]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve documentation of dired-do-chmod
authorStefan Kangas <stefankangas@gmail.com>
Mon, 14 Oct 2019 14:00:05 +0000 (16:00 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Mon, 14 Oct 2019 14:00:05 +0000 (16:00 +0200)
* lisp/dired-aux.el (dired-do-chmod): Doc fix.  The part about
MS-Windows was written by Eli Zaretskii.  (Bug#24897)

lisp/dired-aux.el

index bfc37c5cdef61ca089e0c9da05f78a74362fcc07..8bda25e9e3760f0b37265e9889922ad5372c1b5b 100644 (file)
@@ -365,9 +365,17 @@ List has a form of (file-name full-file-name (attribute-list))."
 ;;;###autoload
 (defun dired-do-chmod (&optional arg)
   "Change the mode of the marked (or next ARG) files.
-Symbolic modes like `g+w' are allowed.
-Type M-n to pull the file attributes of the file at point
-into the minibuffer."
+Both octal numeric modes like `644' and symbolic modes like `g+w'
+are supported.  Type M-n to pull the file attributes of the file
+at point into the minibuffer.
+
+See Info node `(coreutils)File permissions' for more information.
+Alternatively, see the man page for \"chmod\", using the command
+\\[man] in Emacs.
+
+Note that on MS-Windows only the `w' (write) bit is meaningful:
+resetting it makes the file read-only.  Changing any other bit
+has no effect on MS-Windows."
   (interactive "P")
   (let* ((files (dired-get-marked-files t arg nil nil t))
         ;; The source of default file attributes is the file at point.