GNU bug report logs - #22694
25.0.91; dired-mark-files-containing-regexp read file disk

Previous Next

Package: emacs;

Reported by: Tino Calancha <f92capac <at> gmail.com>

Date: Tue, 16 Feb 2016 12:45:02 UTC

Severity: wishlist

Found in version 25.0.91

Done: Tino Calancha <f92capac <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tino Calancha <f92capac <at> gmail.com>
To: 22694 <at> debbugs.gnu.org
Subject: bug#22694: 25.0.91; dired-mark-files-containing-regexp read file disk
Date: Tue, 16 Feb 2016 21:47:28 +0900 (JST)
[Message part 1 (text/plain, inline)]
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.

In GNU Emacs 25.0.91.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23)
Repository revision: b1a3ebedba88689d26f44cf7db338104b849ae99
[dired.patch (text/plain, attachment)]

This bug report was last modified 9 years and 31 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.