Add file-parent-directory function
* doc/lispref/files.texi: Document the function. * etc/NEWS: Add its entry. * lisp/emacs-lisp/shortdoc.el: Add it to 'file-name' group. * lisp/files.el: implementation (bug#56355).
This commit is contained in:
parent
2a0740b95a
commit
1ac383bcb6
4 changed files with 34 additions and 0 deletions
|
@ -353,6 +353,13 @@ A FUNC form can have any number of `:no-eval' (or `:no-value'),
|
|||
(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 "~")
|
||||
:eval (file-parent-directory "/tmp/")
|
||||
:eval (file-parent-directory "foo/bar")
|
||||
:eval (file-parent-directory "foo")
|
||||
:eval (file-parent-directory "/"))
|
||||
"Quoted File Names"
|
||||
(file-name-quote
|
||||
:args (name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue