aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii2015-12-03 16:59:42 +0200
committerEli Zaretskii2015-12-03 16:59:42 +0200
commiteca277f937f4c51b83fa0f156b8081e88ea3f121 (patch)
treed762076988dc63596a07161e60924ea9d8e157d8 /etc
parent4d10a7d467b6b0927036387c0d4849b2f40abcee (diff)
downloademacs-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/NEWS12
1 files changed, 7 insertions, 5 deletions
diff --git a/etc/NEWS b/etc/NEWS
index bd7435b1760..fa43a7f9f6a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -181,11 +181,6 @@ for use in Emacs bug reports.
181hiding character but the default `.' can be used by let-binding the 181hiding character but the default `.' can be used by let-binding the
182variable `read-hide-char'. 182variable `read-hide-char'.
183 183
184** The new function `directory-name-p' can be used to check whether a file
185name (as returned from, for instance, `file-name-all-completions' is
186a directory file name. It returns non-nil if the last character in
187the 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.
190In particular, it now returns the average width of the font's 185In particular, it now returns the average width of the font's
191characters, which can be used for geometry-related calculations. 186characters, 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
1303of the Emacs process to binary I/O mode. 1298of 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
1302name (as returned from, for instance, `file-name-all-completions') is
1303a directory file name. It returns non-nil if the last character in
1304the name is a directory separator character (forward slash on GNU and
1305Unix 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
1306if the terminal cannot display curved quotes. 1308if the terminal cannot display curved quotes.
1307 1309