From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: tags-search doesn't check files are up-to-date Date: Fri, 01 Feb 2008 18:46:38 -0500 Message-ID: <87fxwcutnl.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201909627 1841 80.91.229.12 (1 Feb 2008 23:47:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Feb 2008 23:47:07 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: "Chris Moore" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 02 00:47:28 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JL5bT-0006g5-8f for ged-emacs-devel@m.gmane.org; Sat, 02 Feb 2008 00:47:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JL5b1-00066u-Qk for ged-emacs-devel@m.gmane.org; Fri, 01 Feb 2008 18:46:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JL5ay-00066f-VA for emacs-devel@gnu.org; Fri, 01 Feb 2008 18:46:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JL5ay-00066O-D3 for emacs-devel@gnu.org; Fri, 01 Feb 2008 18:46:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JL5ay-00066L-5p for emacs-devel@gnu.org; Fri, 01 Feb 2008 18:46:56 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JL5ax-0000Nb-Sv for emacs-devel@gnu.org; Fri, 01 Feb 2008 18:46:55 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JL5ax-0004bZ-Kc for emacs-pretest-bug@gnu.org; Fri, 01 Feb 2008 18:46:55 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JL5au-0000NB-Is for emacs-pretest-bug@gnu.org; Fri, 01 Feb 2008 18:46:55 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JL5au-0000N5-9z for emacs-pretest-bug@gnu.org; Fri, 01 Feb 2008 18:46:52 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id BDEF44E489; Fri, 1 Feb 2008 18:46:38 -0500 (EST) In-Reply-To: (Chris Moore's message of "Fri\, 1 Feb 2008 19\:35\:21 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.90 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87966 gmane.emacs.pretest.bugs:20849 Archived-At: "Chris Moore" writes: > I was just trying to find something in an old IRC logfile. I went to > the directory holding the files with dired, marked the last week's > worth of logs and hit "A" (dired-do-search) to search them for the > string. > > Emacs told me "All files processed" - it didn't find the string. > > "grep" tells me differently - the string is there. > > It turns out that I had visited one of the logs when it still being > written a few days ago. Emacs had the first half of the file in a > buffer, and the string I wanted was in the 2nd half - on disk, but not > in the buffer. > > I would expect Emacs to say "File ... changed on disk. Reread from > disk? (yes or no) " when I try searching a file that's changed, but it > silently assumes I don't want to know that it is using an old copy. > > It's pretty simple to reproduce: make an empty file, visit it, append > 'xxx' to it outside of Emacs, mark the file in dired and search it for > 'xxx' using the "A" (dired-do-search) key. It won't find the 'xxx'. This can be fixed by setting tags-loop-revert-buffers to non-nil. Maybe dired-do-search and the other commands that use etags should automatically bind tags-loop-revert-buffers to t?