comparison lispref/files.texi @ 28074:25557ce6a3a0

*** empty log message ***
author Richard M. Stallman <rms@gnu.org>
date Thu, 09 Mar 2000 13:59:23 +0000
parents c41efa6c4be1
children c46c2efa3731
comparison
equal deleted inserted replaced
28073:d7a87f6a889f 28074:25557ce6a3a0
1326 1326
1327 @c Emacs 19 feature 1327 @c Emacs 19 feature
1328 @defun set-default-file-modes mode 1328 @defun set-default-file-modes mode
1329 This function sets the default file protection for new files created by 1329 This function sets the default file protection for new files created by
1330 Emacs and its subprocesses. Every file created with Emacs initially has 1330 Emacs and its subprocesses. Every file created with Emacs initially has
1331 this protection. On Unix and GNU/Linux, the default protection is the 1331 this protection, or a subset of it (@code{write-region} will not give a
1332 bitwise complement of the ``umask'' value. 1332 file execute permission even if the default file protection allows
1333 execute permission). On Unix and GNU/Linux, the default protection is
1334 the bitwise complement of the ``umask'' value.
1333 1335
1334 The argument @var{mode} must be an integer. On most systems, only the 1336 The argument @var{mode} must be an integer. On most systems, only the
1335 low 9 bits of @var{mode} are meaningful. 1337 low 9 bits of @var{mode} are meaningful. You can use the Lisp construct
1338 for octal character codes to enter @var{mode}; for example,
1339
1340 @example
1341 (set-default-file-modes ?\644)
1342 @end example
1336 1343
1337 Saving a modified version of an existing file does not count as creating 1344 Saving a modified version of an existing file does not count as creating
1338 the file; it does not change the file's mode, and does not use the 1345 the file; it preserves the existing file's mode, whatever that is. So
1339 default file protection. 1346 the default file protection has no effect.
1340 @end defun 1347 @end defun
1341 1348
1342 @defun default-file-modes 1349 @defun default-file-modes
1343 This function returns the current default protection value. 1350 This function returns the current default protection value.
1344 @end defun 1351 @end defun