]> git.eshelyaron.com Git - emacs.git/commit
New commands to create an empty file
authorTino Calancha <tino.calancha@gmail.com>
Thu, 2 Aug 2018 04:20:46 +0000 (13:20 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Thu, 2 Aug 2018 04:20:46 +0000 (13:20 +0900)
commite65ec81fc3e556719fae8d8b4b42f571c7e9f4fc
tree9a7f094620535b860c27b0f1763ebd1e33ba0163
parentd216d7d248199aa6c99cd642116717c5b301ae6d
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.
doc/emacs/dired.texi
doc/lispref/files.texi
etc/NEWS
lisp/dired-aux.el
lisp/dired.el
lisp/files.el