From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: have dired always refresh on changed disk Date: Fri, 26 Sep 2014 13:17:12 -0700 Message-ID: References: <87d2ai6ulj.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1411762680 25168 80.91.229.3 (26 Sep 2014 20:18:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Sep 2014 20:18:00 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 26 22:17:53 2014 Return-path: Envelope-to: geh-help-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 1XXbxh-00083j-G6 for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Sep 2014 22:17:53 +0200 Original-Received: from localhost ([::1]:52083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXbxh-0000Y3-1u for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Sep 2014 16:17:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXbxU-0000Xe-Su for help-gnu-emacs@gnu.org; Fri, 26 Sep 2014 16:17:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXbxT-00077N-OK for help-gnu-emacs@gnu.org; Fri, 26 Sep 2014 16:17:40 -0400 Original-Received: from mail-vc0-x229.google.com ([2607:f8b0:400c:c03::229]:64830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXbxT-00071I-Hn for help-gnu-emacs@gnu.org; Fri, 26 Sep 2014 16:17:39 -0400 Original-Received: by mail-vc0-f169.google.com with SMTP id id10so8815860vcb.28 for ; Fri, 26 Sep 2014 13:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=glgd7LSuPezSXN0WdUpFmhZotJJRXkZaTYFhp7hNt1o=; b=RMwTdI5Fc9pccQM5IAeg3BLlvB4t1DZJqUXDIbI/GLkXPl7nwDkZcxdoLQmVIzrXnj 2jAw2zE60090epyWfWgHisDgXJLmFzdZHOMx85m71ajhxklu40/Nwcda5oSkKeTwig9p Pd/D7LlJ0vL1ekaDumDiKKYQaZXnGPveTLIJ10Pz1AgRSjwQGW1Lt3JyoIR7s3URdfCI w81xPuIkLT/O4z0yT3yDju04dxFJxH/xOcENXwi9YOZd14QVQ+zYdvCy+trtv0FGMQCf yQtOKm0Kp3f5+adK6DNJYdHdTdk1oPhtg6r2o1wRgUGCj+cHc1hnr0Sylf7nDgSxblAi Bvlw== X-Received: by 10.221.48.201 with SMTP id ux9mr50872vcb.68.1411762652947; Fri, 26 Sep 2014 13:17:32 -0700 (PDT) Original-Received: by 10.221.29.74 with HTTP; Fri, 26 Sep 2014 13:17:12 -0700 (PDT) In-Reply-To: <87d2ai6ulj.fsf@debian.uxu> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c03::229 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100163 Archived-At: Emanuel Berg wrote: > > dired often tells me the disk has changed and I should > hit "g" to refresh the buffer. > > Because dired knows it, it should be simple having it > always do it, automatically. (But: does dired *always* > know it?) [snip] > Can this be done easily or do I change the code? I think what you want is `auto-revert-mode'. The relevant settings I use are: (global-auto-revert-mode 1) (setq global-auto-revert-non-file-buffers t auto-revert-verbose nil) This will automatically revert (i.e. update from disk) all buffers, but you can of course limit it to Dired buffers by using the non-global variation with `dired-mode-hook'. -- John