mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
* lisp/files.el (make-empty-file): Simplify interactive spec
This commit is contained in:
parent
a1bb496e24
commit
e0a5fcbac6
|
|
@ -6757,9 +6757,7 @@ Signal an error if unsuccessful."
|
|||
Optional arg PARENTS, if non-nil then creates parent dirs as needed.
|
||||
|
||||
If called interactively, then PARENTS is non-nil."
|
||||
(interactive
|
||||
(let ((filename (read-file-name "Create empty file: ")))
|
||||
(list filename t)))
|
||||
(interactive "FCreate empty file: \np")
|
||||
(when parents
|
||||
(when-let* ((paren-dir (file-name-directory filename)))
|
||||
(make-directory paren-dir :parents)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue