diff options
| author | Eli Zaretskii | 2015-12-03 16:59:42 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-12-03 16:59:42 +0200 |
| commit | eca277f937f4c51b83fa0f156b8081e88ea3f121 (patch) | |
| tree | d762076988dc63596a07161e60924ea9d8e157d8 /doc | |
| parent | 4d10a7d467b6b0927036387c0d4849b2f40abcee (diff) | |
| download | emacs-eca277f937f4c51b83fa0f156b8081e88ea3f121.tar.gz emacs-eca277f937f4c51b83fa0f156b8081e88ea3f121.zip | |
Fix documentation and implementation of 'directory-name-p'
* lisp/files.el (directory-name-p): Modify to recognize
backslashes on MS-Windows and MS-DOS. Adjust the doc string
accordingly. Use '=', not char-equal, for comparison, as
letter-case cannot possibly be an issue here.
* doc/lispref/files.texi (Directory Names): Move the documentation
of directory-name-p here from "Relative File Names". Update the
description per the changes in implementation.
* etc/NEWS: Move the entry for 'directory-name-p' to its proper
place and mark it documented.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/files.texi | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index e8ed7ccd9f7..918bf5becbd 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -2030,11 +2030,6 @@ form. | |||
| 2030 | @end example | 2030 | @end example |
| 2031 | @end defun | 2031 | @end defun |
| 2032 | 2032 | ||
| 2033 | @defun directory-name-p filename | ||
| 2034 | This function returns non-@code{nil} if @var{filename} ends with a | ||
| 2035 | forward slash (@samp{/}) character. | ||
| 2036 | @end defun | ||
| 2037 | |||
| 2038 | @node Directory Names | 2033 | @node Directory Names |
| 2039 | @subsection Directory Names | 2034 | @subsection Directory Names |
| 2040 | @cindex directory name | 2035 | @cindex directory name |
| @@ -2076,6 +2071,13 @@ string (if it does not already end in one). | |||
| 2076 | @end example | 2071 | @end example |
| 2077 | @end defun | 2072 | @end defun |
| 2078 | 2073 | ||
| 2074 | @defun directory-name-p filename | ||
| 2075 | This function returns non-@code{nil} if @var{filename} ends with a | ||
| 2076 | directory separator character. This is the forward slash @samp{/} on | ||
| 2077 | Unix and GNU systems; MS-Windows and MS-DOS recognize both the forward | ||
| 2078 | slash and the backslash @samp{\} as directory separators. | ||
| 2079 | @end defun | ||
| 2080 | |||
| 2079 | @defun directory-file-name dirname | 2081 | @defun directory-file-name dirname |
| 2080 | This function returns a string representing @var{dirname} in a form | 2082 | This function returns a string representing @var{dirname} in a form |
| 2081 | that the operating system will interpret as the name of a file (a | 2083 | that the operating system will interpret as the name of a file (a |