Variable: dired-create-empty-file-in-current-directory
dired-create-empty-file-in-current-directory is a customizable
variable defined in dired-aux.el.gz.
Value
nil
Documentation
Whether dired-create-empty-file acts on the current directory.
If non-nil, dired-create-empty-file creates a new empty file and adds
an entry for it (or its topmost new parent directory if created) under
the current subdirectory in the Dired buffer by default (otherwise, it
adds the new file (and new subdirectories if provided) to whichever
directory the user enters at the prompt). If nil,
dired-create-empty-file acts on the default directory by default.
This variable was added, or its default value changed, in Emacs 31.1.
Probably introduced at or before Emacs version 31.1.
Source Code
;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
(defcustom dired-create-empty-file-in-current-directory nil
"Whether `dired-create-empty-file' acts on the current directory.
If non-nil, `dired-create-empty-file' creates a new empty file and adds
an entry for it (or its topmost new parent directory if created) under
the current subdirectory in the Dired buffer by default (otherwise, it
adds the new file (and new subdirectories if provided) to whichever
directory the user enters at the prompt). If nil,
`dired-create-empty-file' acts on the default directory by default."
:type 'boolean
:group 'dired
:version "31.1")