Variable: query-about-changed-file
query-about-changed-file is a customizable variable defined in
files.el.gz.
Value
t
Documentation
If non-nil, query the user when re-visiting a file that has changed.
This happens if the file is already visited in a buffer, the file was changed externally, and the user re-visits the file.
If nil, don't prompt the user, but instead provide instructions for reverting, after switching to the buffer with its contents before the external changes.
This variable was added, or its default value changed, in Emacs 28.1.
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/files.el.gz
(defcustom query-about-changed-file t
"If non-nil, query the user when re-visiting a file that has changed.
This happens if the file is already visited in a buffer, the
file was changed externally, and the user re-visits the file.
If nil, don't prompt the user, but instead provide instructions for
reverting, after switching to the buffer with its contents before
the external changes."
:group 'files
:group 'find-file
:version "28.1"
:type 'boolean)