Function: archive-chmod-entry
archive-chmod-entry is an interactive and byte-compiled function
defined in arc-mode.el.gz.
Signature
(archive-chmod-entry NEW-MODE)
Documentation
Change the protection bits associated with all marked or this member.
The new protection bits can either be specified as an octal number or as a relative change like "g+rw" as for chmod(2).
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/arc-mode.el.gz
(defun archive-chmod-entry (new-mode)
"Change the protection bits associated with all marked or this member.
The new protection bits can either be specified as an octal number or
as a relative change like \"g+rw\" as for chmod(2)."
(interactive "sNew mode (octal or symbolic): " archive-mode)
(if archive-read-only (error "Archive is read-only"))
(let ((func (archive-name "chmod-entry")))
(if (fboundp func)
(progn
(funcall func new-mode (archive-get-marked ?* t))
(archive-resummarize))
(error "Setting mode bits is not supported for this archive type"))))