feature by customizing @code{find-file-wildcards}.
@vindex query-about-changed-file
- If you're asking to visit a file that's already in a buffer, but the
-file has changed externally, Emacs will ask you whether you want to
-re-load the file or not. If you set @code{query-about-changed-file}
-to @code{nil}, Emacs won't query you, but instead just display the
-buffer and issue a message telling you how to revert the buffer from
-the file.
+ If you're asking to visit a file that's already visited in a buffer,
+but the file has changed externally, Emacs normally asks you whether
+you want to re-read the file from disk. But if you set
+@code{query-about-changed-file} to @code{nil}, Emacs won't query you,
+but will instead just display the buffer's contents before the
+changes, and show an echo-area message telling you how to revert the
+buffer from the file.
@kindex C-x C-v
@findex find-alternate-file
+++
** New user option 'query-about-changed-file'.
If non-nil (the default), users are prompted as before when
-re-visiting a file that has changed externally. If nil, the user is
-not prompted, but instead the buffer is opened, and the user is given
-an instruction on how to revert the uffer.
+re-visiting a file that has changed externally after it was visited
+the first time. If nil, the user is not prompted, but instead the
+buffer is opened with its contents before the change, and the user is
+given instructions how to revert the buffer.
+++
** Improved support for terminal emulators that encode the Meta flag.
:type '(choice integer (const :tag "Never issue warning" nil)))
(defcustom query-about-changed-file t
- "If non-nil, query the user when opening a file that has changed.
-This happens if the file is already visited in a buffer, and the
-file has changed, and the user re-visits the file.
+ "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, the user isn't prompted, but instead given a warning
-after switching to the buffer."
+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"