aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert2013-06-10 13:26:20 -0700
committerPaul Eggert2013-06-10 13:26:20 -0700
commit08c0a604a289168bec624cb96c09adf357491890 (patch)
tree7e04693725a2e0b84528c8546c83ae0a49d393f5 /doc
parente7b41c4c9af593bec2e062a0a2a18d5ecf695e85 (diff)
downloademacs-08c0a604a289168bec624cb96c09adf357491890.tar.gz
emacs-08c0a604a289168bec624cb96c09adf357491890.zip
Documentation fix for 'ls' and hard links.
* compile.texi (Compilation Functions): * files.texi (File Attributes, Changing Files): Use current format for GNU 'ls' output. (File Attributes): Fix problem introduced in previous change: the link count is the number of hard links, not the number of hard links + 1.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog10
-rw-r--r--doc/lispref/compile.texi12
-rw-r--r--doc/lispref/files.texi42
3 files changed, 37 insertions, 27 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 7babba40f28..c1a4f1e0729 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,13 @@
12013-06-10 Paul Eggert <eggert@cs.ucla.edu>
2
3 Documentation fix for 'ls' and hard links.
4 * compile.texi (Compilation Functions):
5 * files.texi (File Attributes, Changing Files):
6 Use current format for GNU 'ls' output.
7 (File Attributes): Fix problem introduced in previous change:
8 the link count is the number of hard links, not the number
9 of hard links + 1.
10
12013-06-10 Xue Fuqiao <xfq.free@gmail.com> 112013-06-10 Xue Fuqiao <xfq.free@gmail.com>
2 12
3 * files.texi (File Attributes): Fix typo. 13 * files.texi (File Attributes): Fix typo.
diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi
index 522a88da61e..95f7341c19c 100644
--- a/doc/lispref/compile.texi
+++ b/doc/lispref/compile.texi
@@ -181,8 +181,8 @@ after compiling it. Interactively, @var{load} is the prefix argument.
181 181
182@example 182@example
183@group 183@group
184% ls -l push* 184$ ls -l push*
185-rw-r--r-- 1 lewis 791 Oct 5 20:31 push.el 185-rw-r--r-- 1 lewis lewis 791 Oct 5 20:31 push.el
186@end group 186@end group
187 187
188@group 188@group
@@ -191,9 +191,9 @@ after compiling it. Interactively, @var{load} is the prefix argument.
191@end group 191@end group
192 192
193@group 193@group
194% ls -l push* 194$ ls -l push*
195-rw-r--r-- 1 lewis 791 Oct 5 20:31 push.el 195-rw-r--r-- 1 lewis lewis 791 Oct 5 20:31 push.el
196-rw-rw-rw- 1 lewis 638 Oct 8 20:25 push.elc 196-rw-rw-rw- 1 lewis lewis 638 Oct 8 20:25 push.elc
197@end group 197@end group
198@end example 198@end example
199@end deffn 199@end deffn
@@ -232,7 +232,7 @@ If @var{noforce} is non-@code{nil}, this function does not recompile
232files that have an up-to-date @samp{.elc} file. 232files that have an up-to-date @samp{.elc} file.
233 233
234@example 234@example
235% emacs -batch -f batch-byte-compile *.el 235$ emacs -batch -f batch-byte-compile *.el
236@end example 236@end example
237@end defun 237@end defun
238 238
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index a376ac0d586..c4d51ebbfe5 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -1139,8 +1139,8 @@ both others and group, and that the sticky bit is set.
1139@end group 1139@end group
1140 1140
1141@group 1141@group
1142% ls -l diffs 1142$ ls -l diffs
1143 -rw-rw-rw- 1 lewis 0 3063 Oct 30 16:00 diffs 1143-rw-rw-rw- 1 lewis lewis 3063 Oct 30 16:00 diffs
1144@end group 1144@end group
1145@end example 1145@end example
1146 1146
@@ -1166,17 +1166,17 @@ target. However, they both recursively follow symbolic links at all
1166levels of parent directories. 1166levels of parent directories.
1167 1167
1168@defun file-nlinks filename 1168@defun file-nlinks filename
1169This function returns the number of names (i.e., hard link(s) + 1) 1169This function returns the number of names (i.e., hard links) that
1170that file @var{filename} has. If the file does not exist, then this 1170file @var{filename} has. If the file does not exist, this function
1171function returns @code{nil}. Note that symbolic links have no effect 1171returns @code{nil}. Note that symbolic links have no effect on this
1172on this function, because they are not considered to be names of the 1172function, because they are not considered to be names of the files
1173files they link to. 1173they link to.
1174 1174
1175@example 1175@example
1176@group 1176@group
1177% ls -l foo* 1177$ ls -l foo*
1178-rw-rw-rw- 2 rms 4 Aug 19 01:27 foo 1178-rw-rw-rw- 2 rms rms 4 Aug 19 01:27 foo
1179-rw-rw-rw- 2 rms 4 Aug 19 01:27 foo1 1179-rw-rw-rw- 2 rms rms 4 Aug 19 01:27 foo1
1180@end group 1180@end group
1181 1181
1182@group 1182@group
@@ -1477,9 +1477,9 @@ In the first part of the following example, we list two files,
1477 1477
1478@example 1478@example
1479@group 1479@group
1480% ls -li fo* 1480$ ls -li fo*
148181908 -rw-rw-rw- 1 rms 29 Aug 18 20:32 foo 148181908 -rw-rw-rw- 1 rms rms 29 Aug 18 20:32 foo
148284302 -rw-rw-rw- 1 rms 24 Aug 18 20:31 foo3 148284302 -rw-rw-rw- 1 rms rms 24 Aug 18 20:31 foo3
1483@end group 1483@end group
1484@end example 1484@end example
1485 1485
@@ -1494,10 +1494,10 @@ the files again. This shows two names for one file, @file{foo} and
1494@end group 1494@end group
1495 1495
1496@group 1496@group
1497% ls -li fo* 1497$ ls -li fo*
149881908 -rw-rw-rw- 2 rms 29 Aug 18 20:32 foo 149881908 -rw-rw-rw- 2 rms rms 29 Aug 18 20:32 foo
149981908 -rw-rw-rw- 2 rms 29 Aug 18 20:32 foo2 149981908 -rw-rw-rw- 2 rms rms 29 Aug 18 20:32 foo2
150084302 -rw-rw-rw- 1 rms 24 Aug 18 20:31 foo3 150084302 -rw-rw-rw- 1 rms rms 24 Aug 18 20:31 foo3
1501@end group 1501@end group
1502@end example 1502@end example
1503 1503
@@ -1519,10 +1519,10 @@ contents of @file{foo3} are lost.
1519@end group 1519@end group
1520 1520
1521@group 1521@group
1522% ls -li fo* 1522$ ls -li fo*
152381908 -rw-rw-rw- 3 rms 29 Aug 18 20:32 foo 152381908 -rw-rw-rw- 3 rms rms 29 Aug 18 20:32 foo
152481908 -rw-rw-rw- 3 rms 29 Aug 18 20:32 foo2 152481908 -rw-rw-rw- 3 rms rms 29 Aug 18 20:32 foo2
152581908 -rw-rw-rw- 3 rms 29 Aug 18 20:32 foo3 152581908 -rw-rw-rw- 3 rms rms 29 Aug 18 20:32 foo3
1526@end group 1526@end group
1527@end example 1527@end example
1528 1528