From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Dired auto-revert Date: Wed, 23 Sep 2009 12:05:14 +0300 Organization: JURTA Message-ID: <87ab0m2dnt.fsf@mail.jurta.org> References: <87hbv6gel6.fsf@gmail.com> <87iqfhbo6u.fsf@mail.jurta.org> <87iqfc2fy1.fsf_-_@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253699749 17005 80.91.229.12 (23 Sep 2009 09:55:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Sep 2009 09:55:49 +0000 (UTC) Cc: paul.r.ml@gmail.com, rms@gnu.org, joakim@verona.se, emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 23 11:55:42 2009 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 1MqOZZ-00034u-Rg for ged-emacs-devel@m.gmane.org; Wed, 23 Sep 2009 11:55:42 +0200 Original-Received: from localhost ([127.0.0.1]:43573 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqOZZ-0005gh-Bi for ged-emacs-devel@m.gmane.org; Wed, 23 Sep 2009 05:55:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqOXJ-00046i-Io for emacs-devel@gnu.org; Wed, 23 Sep 2009 05:53:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqOXE-00044I-2R for emacs-devel@gnu.org; Wed, 23 Sep 2009 05:53:20 -0400 Original-Received: from [199.232.76.173] (port=38701 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqOXD-00044D-QV for emacs-devel@gnu.org; Wed, 23 Sep 2009 05:53:15 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:36016 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqOXB-00048V-D9; Wed, 23 Sep 2009 05:53:13 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.97.132.cable.starman.ee [82.131.97.132]) by mx1.starman.ee (Postfix) with ESMTP id C74E83F4133; Wed, 23 Sep 2009 12:53:06 +0300 (EEST) In-Reply-To: (Drew Adams's message of "Mon, 21 Sep 2009 15:29:30 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/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:115542 Archived-At: >> Or maybe we should add a new option that defines whether revert >> automatically or just display a message. > > Yes, please, if we implement the possibility of auto-reverting, then let's keep > it only a possibility, not an obligation. IOW, let's also make it possible to > choose not to auto-revert. > > It might even be useful to give such control for specific directories or classes > of directories: have two options, analogous to `special-display-buffer-names' > and `special-display-regexps' (and `same-window-*'). > > `dired-auto-revert-names': > List of directories for which Dired auto-reverts. > > `dired-auto-revert-regexps': > List of regexps specifying which Dired buffers are auto-reverted. > > If both are nil, then there is no auto-reverting. > If `dired-auto-revert-regexps' is `(".")', then all Dired buffers are > auto-reverted. I thought just an option for remote files would be enough. Maybe it could be implemented as a regexp but better as a predicate for defcustom that tests `file-remote-p' and also could test the directory size, subdirectories presence in the same dired buffer, etc. -- Juri Linkov http://www.jurta.org/emacs/