diff options
| author | Paul Eggert | 2011-12-27 22:59:21 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-12-27 22:59:21 -0800 |
| commit | 8d80ef01d987f052dc8ee641cc65189299e230de (patch) | |
| tree | bf9ed2c837b81581c60897094a21e29e80b185b9 /doc/lispref | |
| parent | 51281b3202901a846f7427e630a9615b1d55eac8 (diff) | |
| download | emacs-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.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 11 |
2 files changed, 8 insertions, 8 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 @@ | |||
| 1 | 2011-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 | |||
| 1 | 2011-12-23 Juanma Barranquero <lekktu@gmail.com> | 6 | 2011-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 | ||
| 1571 | The argument @var{mode} must be an integer. On most systems, only the | 1566 | The argument @var{mode} must be an integer. On most systems, only the |
| 1572 | low 9 bits of @var{mode} are meaningful. You can use the Lisp construct | 1567 | low 9 bits of @var{mode} are meaningful. You can use the Lisp construct |
| 1573 | for octal character codes to enter @var{mode}; for example, | 1568 | for 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 | ||
| 1579 | Saving a modified version of an existing file does not count as creating | 1574 | Saving a modified version of an existing file does not count as creating |