From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: tired of seeing "Directory has changed on disk; type g to update Dired" Date: Sun, 20 Apr 2003 08:27:51 +0800 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <878yu7e00f.fsf@jidanni.org> Reply-To: Dan Jacobson NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050800794 31166 80.91.224.249 (20 Apr 2003 01:06:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Apr 2003 01:06:34 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 20 03:06:32 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1973Hs-00086X-00 for ; Sun, 20 Apr 2003 03:06:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1973Hs-0007lT-03 for gnu-bug-gnu-emacs@m.gmane.org; Sat, 19 Apr 2003 21:06:32 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 1973Hb-0007MO-00 for bug-gnu-emacs@gnu.org; Sat, 19 Apr 2003 21:06:15 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1973HY-0007Ef-00 for bug-gnu-emacs@gnu.org; Sat, 19 Apr 2003 21:06:14 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1973HY-00079p-00 for bug-gnu-emacs@gnu.org; Sat, 19 Apr 2003 21:06:12 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1973Gh-00084f-00 for ; Sun, 20 Apr 2003 03:05:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1973Gh-00084W-00 for ; Sun, 20 Apr 2003 03:05:19 +0200 Original-Lines: 69 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4843 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4843 Way back in 2000-09-02 Kin Cho gnu.emacs.sources | Are you tired of seeing this message: | | Directory has changed on disk; type g to update Dired | | Please try the following little advice. Feedbacks/suggestions are | welcome! Jari> hi, This feature will be present in next Emacs as I submitted Jari> patches to it... In 2001, Dan> I'm betting that emacs doesn't have an option to do the updating for Dan> the user instead of showing him this message. Eli> It does: look for auto-revert mode. Dan> OK, only found in Help, not found in Emacs Info, Dired, Dired-x Dan> Info... perhaps add mention of it there and .emacs usage example for Dan> those who only want to use it to do the above dired case... OK, I added to .emacs (add-hook 'dired-mode-hook 'turn-on-auto-revert-mode) Can you believe that I'm now checking every dired buffer every auto-revert-interval. All I want to do is have it do the "g" for me instead of telling me. Even though Jari might have stuck a change into dired.el, one can't tell without special training. One thing for sure, no documentation was ever enhanced. The user is told he must make friends with the "g" key, even if his computer is Pentium Grade. Yes, looking in dired.el I see stuff about how one wouldn't want to do this on ange-ftp etc. etc. Sounds good. How do I sign up? Is repeated reminders about hitting the "g" key some kind of G-spot titillation? How can I opt-out? I was going to write the below, but then I thought I should check search on Gargle first. ---------- Regarding dired. "if DIRNAME is already in a dired buffer, that buffer is used without refresh." And indeed in the code, before (message ... "Directory has changed on disk; type \\[revert-buffer] to update Dired"), one sees no hint of a variable that would relieve us having to type the g to do revert-buffer, so we could be like Windows where Explorer shows the current condition, I recall. I remember there was a variable that would make it refresh anyway if not current, but now after an hour search I can't find it. Also what if I just switch-to-buffer. Some folks would want to freshen automatically to in this case too, while others would only want automatic freshening after C-x d, therefore any new variable to control auto refreshing should have grades for describing just how much refreshing on wants. Also say I want to turn on auto refreshing except with ange-ftp, or with directories longer than 5 screens in length. -- http://jidanni.org/ Taiwan(04)25854780