summaryrefslogtreecommitdiff
path: root/doc/emacs/dired.texi
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-04-20 17:52:25 +0300
committerEli Zaretskii <eliz@gnu.org>2016-04-20 17:52:25 +0300
commitaa03257cb341691562101fcae8a6d6d54d420a99 (patch)
tree115ed14a6e282cc04b31c3b064922ac3c7e67a62 /doc/emacs/dired.texi
parentce0d8c7f2d8187942a8b45c3a71c22c5f30fa37d (diff)
downloademacs-aa03257cb341691562101fcae8a6d6d54d420a99.tar.gz
Clarify documentation of 'dired-mark-files-containing-regexp'
* doc/emacs/dired.texi (Marks vs Flags): Clarify that for files visited in buffers, 'dired-mark-files-containing-regexp' searches the buffer rather than the file on disk. (Bug#22694) * lisp/dired.el (dired-mark-files-containing-regexp): Clarify that for files visited in buffers, 'dired-mark-files-containing-regexp' searches the buffer rather than the file on disk. (Bug#22694)
Diffstat (limited to 'doc/emacs/dired.texi')
-rw-r--r--doc/emacs/dired.texi8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi
index 8a72805f7fc..ea48a26500c 100644
--- a/doc/emacs/dired.texi
+++ b/doc/emacs/dired.texi
@@ -550,7 +550,13 @@ Mark (with @samp{*}) all files whose @emph{contents} contain a match for
the regular expression @var{regexp}
(@code{dired-mark-files-containing-regexp}). This command is like
@kbd{% m}, except that it searches the file contents instead of the file
-name.
+name. Note that if a file is visited in an Emacs buffer, this command
+will look in the buffer without revisiting the file, so the results
+might be inconsistent with the file on disk if its contents has changed
+since it was last visited. If you don't want this, you may wish
+reverting the files you have visited in your buffers, or turning on
+the @code{auto-revert} mode in those buffers, before invoking this
+command. @xref{Reverting}.
@item C-/
@itemx C-x u