aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorRichard M. Stallman2000-03-09 13:59:23 +0000
committerRichard M. Stallman2000-03-09 13:59:23 +0000
commitf74bbbbf5574dd0be3237a179da1ead133ffc89f (patch)
treea2a64c4a3c505783ab41b879caa83af00792c896 /lispref
parent80460654af8a30ad86faef024caac091db9026a7 (diff)
downloademacs-f74bbbbf5574dd0be3237a179da1ead133ffc89f.tar.gz
emacs-f74bbbbf5574dd0be3237a179da1ead133ffc89f.zip
*** empty log message ***
Diffstat (limited to 'lispref')
-rw-r--r--lispref/files.texi17
1 files changed, 12 insertions, 5 deletions
diff --git a/lispref/files.texi b/lispref/files.texi
index b313c7f64cc..dd102eb66dc 100644
--- a/lispref/files.texi
+++ b/lispref/files.texi
@@ -1328,15 +1328,22 @@ be an integer). Only the low 12 bits of @var{mode} are used.
1328@defun set-default-file-modes mode 1328@defun set-default-file-modes mode
1329This function sets the default file protection for new files created by 1329This function sets the default file protection for new files created by
1330Emacs and its subprocesses. Every file created with Emacs initially has 1330Emacs and its subprocesses. Every file created with Emacs initially has
1331this protection. On Unix and GNU/Linux, the default protection is the 1331this protection, or a subset of it (@code{write-region} will not give a
1332bitwise complement of the ``umask'' value. 1332file execute permission even if the default file protection allows
1333execute permission). On Unix and GNU/Linux, the default protection is
1334the bitwise complement of the ``umask'' value.
1333 1335
1334The argument @var{mode} must be an integer. On most systems, only the 1336The argument @var{mode} must be an integer. On most systems, only the
1335low 9 bits of @var{mode} are meaningful. 1337low 9 bits of @var{mode} are meaningful. You can use the Lisp construct
1338for octal character codes to enter @var{mode}; for example,
1339
1340@example
1341(set-default-file-modes ?\644)
1342@end example
1336 1343
1337Saving a modified version of an existing file does not count as creating 1344Saving a modified version of an existing file does not count as creating
1338the file; it does not change the file's mode, and does not use the 1345the file; it preserves the existing file's mode, whatever that is. So
1339default file protection. 1346the default file protection has no effect.
1340@end defun 1347@end defun
1341 1348
1342@defun default-file-modes 1349@defun default-file-modes