emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 0becd64: Improve doc for file-name-absolute-p.


From: Paul Eggert
Subject: [Emacs-diffs] master 0becd64: Improve doc for file-name-absolute-p.
Date: Sat, 26 Aug 2017 16:45:31 -0400 (EDT)

branch: master
commit 0becd64d6320b68911cc84615650a84c021b12e3
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Improve doc for file-name-absolute-p.
---
 doc/lispref/files.texi | 2 +-
 src/fileio.c           | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index bb355f1..f701d68 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -2119,7 +2119,7 @@ backslash, or with a drive specification 
@address@hidden:/}, where
 
 @defun file-name-absolute-p filename
 This function returns @code{t} if file @var{filename} is an absolute
-file name, @code{nil} otherwise.
+file name or begins with @samp{~}, @code{nil} otherwise.
 
 @example
 @group
diff --git a/src/fileio.c b/src/fileio.c
index 76ea7da..fa69424 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2470,8 +2470,8 @@ This happens for interactive use with M-x.  */)
 
 DEFUN ("file-name-absolute-p", Ffile_name_absolute_p, Sfile_name_absolute_p,
        1, 1, 0,
-       doc: /* Return t if file FILENAME specifies an absolute file name.
-On Unix, this is a name starting with a `/' or a `~'.  */)
+       doc: /* Return t if FILENAME is an absolute file name or starts with 
`~'.
+On Unix, absolute file names start with `/'.  */)
   (Lisp_Object filename)
 {
   CHECK_STRING (filename);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]