Variable: dired-always-read-filesystem

dired-always-read-filesystem is a customizable variable defined in dired.el.gz.

Value

nil

Documentation

Non-nil means revert buffers visiting files before searching them.

By default, commands like dired-mark-files-containing-regexp will
search any buffers visiting the marked files without reverting them, even if they were changed on disk. When this option is non-nil, such buffers are always reverted in a temporary buffer before searching them: the search is performed on the temporary buffer, the original buffer visiting the file is not modified.

This variable was added, or its default value changed, in Emacs 26.1.

Probably introduced at or before Emacs version 26.1.

Source Code

;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defcustom dired-always-read-filesystem nil
  "Non-nil means revert buffers visiting files before searching them.
By default,  commands like `dired-mark-files-containing-regexp' will
search any buffers visiting the marked files without reverting them,
even if they were changed on disk.  When this option is non-nil, such
buffers are always reverted in a temporary buffer before searching
them: the search is performed on the temporary buffer, the original
buffer visiting the file is not modified."
  :type 'boolean
  :version "26.1"
  :group 'dired)