because it recognizes abbreviations even as part of the name.
@end defun
-@defun file-parent-directory filename
+@defun file-name-parent-directory filename
This function returns the directory name of the parent directory of
@var{filename}. If @var{filename} is at the root directory of the
filesystem, it returns @code{nil}. A relative @var{filename} is
the frames are resized when the font size is changed.
+++
-** New function 'file-parent-directory'.
+** New function 'file-name-parent-directory'.
Get the parent directory of a file.
** New config variable 'syntax-wholeline-max' to reduce the cost of long lines.
(abbreviate-file-name
:no-eval (abbreviate-file-name "/home/some-user")
:eg-result "~some-user")
- (file-parent-directory
- :eval (file-parent-directory "/foo/bar")
- :eval (file-parent-directory "/foo/")
- :eval (file-parent-directory "foo/bar")
- :eval (file-parent-directory "foo"))
+ (file-name-parent-directory
+ :eval (file-name-parent-directory "/foo/bar")
+ :eval (file-name-parent-directory "/foo/")
+ :eval (file-name-parent-directory "foo/bar")
+ :eval (file-name-parent-directory "foo"))
"Quoted File Names"
(file-name-quote
:args (name)
(setq filename nil))))
components))
-(defun file-parent-directory (filename)
+(defun file-name-parent-directory (filename)
"Return the directory name of the parent directory of FILENAME.
If FILENAME is at the root of the filesystem, return nil.
If FILENAME is relative, it is interpreted to be relative