diff options
author | Tino Calancha <tino.calancha@gmail.com> | 2018-08-02 13:20:46 +0900 |
---|---|---|
committer | Tino Calancha <tino.calancha@gmail.com> | 2018-08-02 13:20:46 +0900 |
commit | e65ec81fc3e556719fae8d8b4b42f571c7e9f4fc (patch) | |
tree | 9a7f094620535b860c27b0f1763ebd1e33ba0163 /doc/lispref/files.texi | |
parent | d216d7d248199aa6c99cd642116717c5b301ae6d (diff) | |
download | emacs-e65ec81fc3e556719fae8d8b4b42f571c7e9f4fc.tar.gz emacs-e65ec81fc3e556719fae8d8b4b42f571c7e9f4fc.tar.bz2 emacs-e65ec81fc3e556719fae8d8b4b42f571c7e9f4fc.zip |
New commands to create an empty file
Similarly as `create-directory', `dired-create-directory',
the new commands create the parent dirs as needed (Bug#24150).
* lisp/files.el (make-empty-file): New command.
* lisp/dired-aux.el (dired-create-empty-file): New command.
(dired--find-topmost-parent-dir): New function extracted
from `dired-create-directory'.
(dired-create-directory, dired-create-empty-file): Use it.
* lisp/dired.el (dired-mode-map):
Add menu entry for `dired-create-empty-file'.
* doc/emacs/dired.texi (Misc Dired Features)
* doc/lispref/files.texi (Create/Delete Dirs): Update manual.
; * etc/NEWS: Announce the changes.
Diffstat (limited to 'doc/lispref/files.texi')
-rw-r--r-- | doc/lispref/files.texi | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 068cf054437..25fabe1ea5b 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi @@ -3005,10 +3005,16 @@ This command creates a directory named @var{dirname}. If @var{parents} is non-@code{nil}, as is always the case in an interactive call, that means to create the parent directories first, if they don't already exist. - @code{mkdir} is an alias for this. @end deffn +@deffn Command make-empty-file filename &optional parents +This command creates an empty file named @var{filename}. +As @code{make-directory}, this command creates parent directories +if @var{parents} is non-@code{nil}. +If @var{filename} already exists, this command signals an error. +@end deffn + @deffn Command copy-directory dirname newname &optional keep-time parents copy-contents This command copies the directory named @var{dirname} to @var{newname}. If @var{newname} is a directory name, |