[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22694: 25.0.91; dired-mark-files-containing-regexp read file disk
From: |
Eli Zaretskii |
Subject: |
bug#22694: 25.0.91; dired-mark-files-containing-regexp read file disk |
Date: |
Tue, 16 Feb 2016 18:05:39 +0200 |
> Date: Tue, 16 Feb 2016 21:47:28 +0900 (JST)
> From: Tino Calancha <f92capac@gmail.com>
>
> When a buffer visiting the file on disk exists, the matching is performed
> on this buffer: if the buffer is out of sync with the file, the
> result may be wrong.
>
> emacs -Q /tmp/foo --eval='(progn (with-current-buffer "foo" (insert "baz"))
> (save-buffer))'
> C-x d RET
> M-! printf baz >> bar; for f in foo bar; do printf qux >> $f ; done RET
> g
> % g \`bazqux$ RET
> ;; Just match bar. It may signal an error if trying to read a non regular
> file.
>
>
> *) Files satisfying predicate `file-regular-p'.
> *) A buffer visiting the file on disk need to be updated before matching the
> input regexp.
Isn't this by design? Dired doesn't by default re-sync with the disk;
if you don't like this, you can turn on auto-revert in the Dired
buffer.