Variable: confirm-nonexistent-file-or-buffer
confirm-nonexistent-file-or-buffer is a customizable variable defined
in files.el.gz.
Value
after-completion
Documentation
Whether confirmation is requested before visiting a new file or buffer.
If nil, confirmation is not requested.
If the value is after-completion, confirmation is requested
only if the user called minibuffer-complete right before
minibuffer-complete-and-exit.
Any other non-nil value means to request confirmation.
This affects commands like switch-to-buffer and find-file.
This variable was added, or its default value changed, in Emacs 23.1.
Probably introduced at or before Emacs version 23.1.
Source Code
;; Defined in /usr/src/emacs/lisp/files.el.gz
(defcustom confirm-nonexistent-file-or-buffer 'after-completion
"Whether confirmation is requested before visiting a new file or buffer.
If nil, confirmation is not requested.
If the value is `after-completion', confirmation is requested
only if the user called `minibuffer-complete' right before
`minibuffer-complete-and-exit'.
Any other non-nil value means to request confirmation.
This affects commands like `switch-to-buffer' and `find-file'."
:group 'find-file
:version "23.1"
:type '(choice (const :tag "After completion" after-completion)
(const :tag "Never" nil)
(other :tag "Always" t)))