Mercurial > emacs
comparison lispref/files.texi @ 50501:3bf63c244c44
(Kinds of Files): Correct return value of file-symlink-p.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 09 Apr 2003 01:30:40 +0000 |
parents | 23a1cea22d13 |
children | 417a9e80f335 |
comparison
equal
deleted
inserted
replaced
50500:8fcca6e6a7a1 | 50501:3bf63c244c44 |
---|---|
857 This section describes how to distinguish various kinds of files, such | 857 This section describes how to distinguish various kinds of files, such |
858 as directories, symbolic links, and ordinary files. | 858 as directories, symbolic links, and ordinary files. |
859 | 859 |
860 @defun file-symlink-p filename | 860 @defun file-symlink-p filename |
861 @cindex file symbolic links | 861 @cindex file symbolic links |
862 If the file @var{filename} is a symbolic link, the @code{file-symlink-p} | 862 If the file @var{filename} is a symbolic link, the |
863 function returns the file name to which it is linked. This may be the | 863 @code{file-symlink-p} function returns the link target as a string. |
864 name of a text file, a directory, or even another symbolic link, or it | 864 (Determining the file name that the link points to from the target is |
865 may be a nonexistent file name. | 865 nontrivial.) |
866 | 866 |
867 If the file @var{filename} is not a symbolic link (or there is no such file), | 867 If the file @var{filename} is not a symbolic link (or there is no such file), |
868 @code{file-symlink-p} returns @code{nil}. | 868 @code{file-symlink-p} returns @code{nil}. |
869 | 869 |
870 @example | 870 @example |