aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-12-27 22:59:21 -0800
committerPaul Eggert2011-12-27 22:59:21 -0800
commit8d80ef01d987f052dc8ee641cc65189299e230de (patch)
treebf9ed2c837b81581c60897094a21e29e80b185b9
parent51281b3202901a846f7427e630a9615b1d55eac8 (diff)
downloademacs-8d80ef01d987f052dc8ee641cc65189299e230de.tar.gz
emacs-8d80ef01d987f052dc8ee641cc65189299e230de.zip
doc: Use clearer notations for permissions.
* doc/lispref/files.texi (File Attributes, Changing Files): Use a more-natural notation for octal numbers. * doc/misc/gnus.texi (Mail Source Customization, Mail Back End Variables): Use octal notation for file permissions, which are normally thought of in octal. (Mail Back End Variables): Use more-plausible modes in example.
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/files.texi11
-rw-r--r--doc/misc/ChangeLog7
-rw-r--r--doc/misc/gnus.texi6
4 files changed, 18 insertions, 11 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 5b90c2a1f9f..d4f9ab747ed 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12011-12-28 Paul Eggert <eggert@cs.ucla.edu>
2
3 * files.texi (File Attributes, Changing Files):
4 Use a more-natural notation for octal numbers.
5
12011-12-23 Juanma Barranquero <lekktu@gmail.com> 62011-12-23 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * variables.texi (Variables with Restricted Values): 8 * variables.texi (Variables with Restricted Values):
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index 86ecfd122ef..b6d0b5c7ed2 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -1115,16 +1115,11 @@ This function recursively follows symbolic links at all levels.
1115@end group 1115@end group
1116 1116
1117@group 1117@group
1118(set-file-modes "~/junk/diffs" 438) 1118(set-file-modes "~/junk/diffs" #o666)
1119 @result{} nil 1119 @result{} nil
1120@end group 1120@end group
1121 1121
1122@group 1122@group
1123(format "%o" 438)
1124 @result{} "666" ; @r{Convert to octal.}
1125@end group
1126
1127@group
1128% ls -l diffs 1123% ls -l diffs
1129 -rw-rw-rw- 1 lewis 0 3063 Oct 30 16:00 diffs 1124 -rw-rw-rw- 1 lewis 0 3063 Oct 30 16:00 diffs
1130@end group 1125@end group
@@ -1570,10 +1565,10 @@ the bitwise complement of the ``umask'' value.
1570 1565
1571The argument @var{mode} must be an integer. On most systems, only the 1566The argument @var{mode} must be an integer. On most systems, only the
1572low 9 bits of @var{mode} are meaningful. You can use the Lisp construct 1567low 9 bits of @var{mode} are meaningful. You can use the Lisp construct
1573for octal character codes to enter @var{mode}; for example, 1568for octal numbers to enter @var{mode}; for example,
1574 1569
1575@example 1570@example
1576(set-default-file-modes ?\644) 1571(set-default-file-modes #o644)
1577@end example 1572@end example
1578 1573
1579Saving a modified version of an existing file does not count as creating 1574Saving a modified version of an existing file does not count as creating
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index dcf816e7fd3..3b0e5251d5e 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,10 @@
12011-12-28 Paul Eggert <eggert@cs.ucla.edu>
2
3 * gnus.texi (Mail Source Customization, Mail Back End Variables):
4 Use octal notation for file permissions, which are normally
5 thought of in octal.
6 (Mail Back End Variables): Use more-plausible modes in example.
7
12011-12-20 Alan Mackenzie <acm@muc.de> 82011-12-20 Alan Mackenzie <acm@muc.de>
2 9
3 * cc-mode.texi: Update version string 5.31 -> 5.32. 10 * cc-mode.texi: Update version string 5.31 -> 5.32.
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 8ed57699df5..86aaadf8ae8 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -15033,7 +15033,7 @@ number.
15033 15033
15034@item mail-source-default-file-modes 15034@item mail-source-default-file-modes
15035@vindex mail-source-default-file-modes 15035@vindex mail-source-default-file-modes
15036All new mail files will get this file mode. The default is 384. 15036All new mail files will get this file mode. The default is @code{#o600}.
15037 15037
15038@item mail-source-movemail-program 15038@item mail-source-movemail-program
15039@vindex mail-source-movemail-program 15039@vindex mail-source-movemail-program
@@ -15123,10 +15123,10 @@ default file modes the new mail files get:
15123 15123
15124@lisp 15124@lisp
15125(add-hook 'nnmail-pre-get-new-mail-hook 15125(add-hook 'nnmail-pre-get-new-mail-hook
15126 (lambda () (set-default-file-modes 511))) 15126 (lambda () (set-default-file-modes #o700)))
15127 15127
15128(add-hook 'nnmail-post-get-new-mail-hook 15128(add-hook 'nnmail-post-get-new-mail-hook
15129 (lambda () (set-default-file-modes 551))) 15129 (lambda () (set-default-file-modes #o775)))
15130@end lisp 15130@end lisp
15131 15131
15132@item nnmail-use-long-file-names 15132@item nnmail-use-long-file-names