From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22694: 25.0.91; dired-mark-files-containing-regexp read file disk Date: Tue, 16 Feb 2016 18:05:39 +0200 Message-ID: <83h9h8wsh8.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1455638785 20993 80.91.229.3 (16 Feb 2016 16:06:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2016 16:06:25 +0000 (UTC) Cc: 22694@debbugs.gnu.org To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 16 17:06:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aVi8j-0006lj-H0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Feb 2016 17:06:13 +0100 Original-Received: from localhost ([::1]:47409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVi8i-0007eg-IC for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Feb 2016 11:06:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVi8d-0007dk-TB for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2016 11:06:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVi8Y-0007Rh-8C for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2016 11:06:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVi8Y-0007Rd-3e for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2016 11:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aVi8X-0001ds-V7 for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2016 11:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Feb 2016 16:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22694 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22694-submit@debbugs.gnu.org id=B22694.14556387406284 (code B ref 22694); Tue, 16 Feb 2016 16:06:01 +0000 Original-Received: (at 22694) by debbugs.gnu.org; 16 Feb 2016 16:05:40 +0000 Original-Received: from localhost ([127.0.0.1]:38235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVi8B-0001dI-Nq for submit@debbugs.gnu.org; Tue, 16 Feb 2016 11:05:39 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42621) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVi8A-0001d6-1i for 22694@debbugs.gnu.org; Tue, 16 Feb 2016 11:05:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVi81-0007Mh-80 for 22694@debbugs.gnu.org; Tue, 16 Feb 2016 11:05:32 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVi81-0007Md-4r; Tue, 16 Feb 2016 11:05:29 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3075 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aVi80-0004L1-GL; Tue, 16 Feb 2016 11:05:28 -0500 In-reply-to: (message from Tino Calancha on Tue, 16 Feb 2016 21:47:28 +0900 (JST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113138 Archived-At: > Date: Tue, 16 Feb 2016 21:47:28 +0900 (JST) > From: Tino Calancha > > 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.