all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: trunk r112909: * doc/lispref/files.texi (File Attributes): Fix typo.
       [not found] <E1Um08I-0002cs-91@vcs.savannah.gnu.org>
@ 2013-06-10 16:07 ` Glenn Morris
  2013-06-10 20:27   ` Paul Eggert
  0 siblings, 1 reply; 2+ messages in thread
From: Glenn Morris @ 2013-06-10 16:07 UTC (permalink / raw)
  To: Xue Fuqiao; +Cc: Emacs developers

Xue Fuqiao wrote:

> +	* files.texi (File Attributes): Fix typo.
[...]
> --- a/doc/lispref/files.texi	2013-02-24 19:45:17 +0000
> +++ b/doc/lispref/files.texi	2013-06-10 11:19:12 +0000
> @@ -1166,11 +1166,11 @@
>  levels of parent directories.
>  
>  @defun file-nlinks filename
> -This functions returns the number of names (i.e., hard links) that
> -file @var{filename} has.  If the file does not exist, then this function
> -returns @code{nil}.  Note that symbolic links have no effect on this
> -function, because they are not considered to be names of the files they
> -link to.
> +This function returns the number of names (i.e., hard link(s) + 1)
> +that file @var{filename} has.  If the file does not exist, then this
> +function returns @code{nil}.  Note that symbolic links have no effect
> +on this function, because they are not considered to be names of the
> +files they link to.


I disagree with this change, and with classing it as a typo.

mkdir /tmp/foo
cd /tmp/foo
touch 1
ln 1 2

stat 1
   -> Links: 2

find . -links 1 -type f
   # no results
find . -links 2 -type f
./2
./1

(file-nlinks "/tmp/foo/1")   ; -> 2



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: trunk r112909: * doc/lispref/files.texi (File Attributes): Fix typo.
  2013-06-10 16:07 ` trunk r112909: * doc/lispref/files.texi (File Attributes): Fix typo Glenn Morris
@ 2013-06-10 20:27   ` Paul Eggert
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggert @ 2013-06-10 20:27 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Xue Fuqiao, Emacs developers

On 06/10/13 09:07, Glenn Morris wrote:
> I disagree with this change, and with classing it as a typo.

Yes, the "hard link(s) + 1" is not correct, though the
change did fix a typo elsewhere.  I installed a fix
as part of trunk bzr 112915.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-10 20:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1Um08I-0002cs-91@vcs.savannah.gnu.org>
2013-06-10 16:07 ` trunk r112909: * doc/lispref/files.texi (File Attributes): Fix typo Glenn Morris
2013-06-10 20:27   ` Paul Eggert

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.