サイトマップ 更新履歴 ニュース Ｅｌｉｓｐセクション 利用手引   File modes are the filesystem
permission bits for who can read, write or execute a file.  In
DiredMode you can set these with M (dired-do-chmod). TarMode and
ArchiveMode have the same M key, in those cases operating on
archive members.  In Lisp there are functions file-modes to get
the modes and set-file-modes to set them.   If you’re an old-
school Unix user and just want to go “chmod 660” etc while
editing a file, then you might like the following M-x chmod.
(defun chmod (mode)   "Set the mode of the current file, in
octal, as per the chmod program. If the current file doesn't
exist yet the buffer is saved to create it."   (interactive
"sMode (3 or 4 octal digits): ")   (or (string-match
"[0-3]?[0-7][0-7][0-7]" mode)       (error "Invalid mode"))   ;;
make sure the file exists   (unless (file-exists-p (buffer-file-
name))   (set-file-modes (buffer-file-name) (string-to-number
mode 8)))  If you want “a+r” etc as accepted by the actual chmod
program then you’re probably best