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 /etc | |
| 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 'etc')
| -rw-r--r-- | etc/NEWS | 12 |
1 files changed, 7 insertions, 5 deletions
| @@ -181,11 +181,6 @@ for use in Emacs bug reports. | |||
| 181 | hiding character but the default `.' can be used by let-binding the | 181 | hiding character but the default `.' can be used by let-binding the |
| 182 | variable `read-hide-char'. | 182 | variable `read-hide-char'. |
| 183 | 183 | ||
| 184 | ** The new function `directory-name-p' can be used to check whether a file | ||
| 185 | name (as returned from, for instance, `file-name-all-completions' is | ||
| 186 | a directory file name. It returns non-nil if the last character in | ||
| 187 | the name is a forward slash. | ||
| 188 | |||
| 189 | ** The function `font-info' now returns more details about a font. | 184 | ** The function `font-info' now returns more details about a font. |
| 190 | In particular, it now returns the average width of the font's | 185 | In particular, it now returns the average width of the font's |
| 191 | characters, which can be used for geometry-related calculations. | 186 | characters, which can be used for geometry-related calculations. |
| @@ -1302,6 +1297,13 @@ integers. | |||
| 1302 | ** New function `set-binary-mode' allows to switch a standard stream | 1297 | ** New function `set-binary-mode' allows to switch a standard stream |
| 1303 | of the Emacs process to binary I/O mode. | 1298 | of the Emacs process to binary I/O mode. |
| 1304 | 1299 | ||
| 1300 | +++ | ||
| 1301 | ** The new function `directory-name-p' can be used to check whether a file | ||
| 1302 | name (as returned from, for instance, `file-name-all-completions') is | ||
| 1303 | a directory file name. It returns non-nil if the last character in | ||
| 1304 | the name is a directory separator character (forward slash on GNU and | ||
| 1305 | Unix systems, forward- or backslash on MS-Windows and MS-DOS). | ||
| 1306 | |||
| 1305 | ** ASCII approximations to curved quotes are put in standard-display-table | 1307 | ** ASCII approximations to curved quotes are put in standard-display-table |
| 1306 | if the terminal cannot display curved quotes. | 1308 | if the terminal cannot display curved quotes. |
| 1307 | 1309 | ||