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/emacs/dired.texi | |
parent | d216d7d248199aa6c99cd642116717c5b301ae6d (diff) | |
download | emacs-e65ec81fc3e556719fae8d8b4b42f571c7e9f4fc.tar.gz |
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/emacs/dired.texi')
-rw-r--r-- | doc/emacs/dired.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi index 007a943714a..1b03a3967aa 100644 --- a/doc/emacs/dired.texi +++ b/doc/emacs/dired.texi @@ -1468,6 +1468,11 @@ rotation is lossless, and uses an external utility called directory's name, and creates that directory. It signals an error if the directory already exists. +@findex dired-create-empty-file + The command (@code{dired-create-empty-file}) reads a +file name, and creates that file. It signals an error if +the file already exists. + @cindex searching multiple files via Dired @kindex M-s a C-s @r{(Dired)} @kindex M-s a M-C-s @r{(Dired)} |