From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: autorevert.el Date: 14 Mar 2004 21:58:19 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200403022319.i22NJbG01259@raven.dms.auburn.edu> <200403040508.i2458W811551@raven.dms.auburn.edu> <200403050400.i2540VQ21715@raven.dms.auburn.edu> <200403130310.i2D3A8w28676@raven.dms.auburn.edu> <200403150008.i2F083x04382@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1079319628 28317 80.91.224.253 (15 Mar 2004 03:00:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Mar 2004 03:00:28 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Mar 15 04:00:19 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B2iKx-0002UE-00 for ; Mon, 15 Mar 2004 04:00:19 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B2iKx-0004nW-00 for ; Mon, 15 Mar 2004 04:00:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B2iKT-0000Dn-KU for emacs-devel@quimby.gnus.org; Sun, 14 Mar 2004 21:59:49 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B2iK6-0008S1-AI for emacs-devel@gnu.org; Sun, 14 Mar 2004 21:59:26 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B2iJT-0007Gg-Vk for emacs-devel@gnu.org; Sun, 14 Mar 2004 21:59:19 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B2iJT-0007Et-3F for emacs-devel@gnu.org; Sun, 14 Mar 2004 21:58:47 -0500 Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id A18E220FEF; Sun, 14 Mar 2004 21:58:41 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 3291B8C8E4; Sun, 14 Mar 2004 21:58:41 -0500 (EST) Original-To: Luc Teirlinck In-Reply-To: <200403150008.i2F083x04382@raven.dms.auburn.edu> Original-Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-0.908, requis 5, BAYES_10 -0.91) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20476 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20476 > For dired buffers, visited-file-modtime works, even though > verify-visited-file-modtime does not. For non-file, non-vc, non-dired > buffers, the current code just reverts every auto-revert-interval > seconds without checking whether reverting is actually needed. That's just wrong in most cases. So we indeed need an `auto-revert-stale-function' which modes can set to (lambda () t) if they want, but they'll have to do it explicitly to say "yes I know it's suboptimal but for this case it's good enough". > For most of these buffers we might actually have to keep things that way, > since checking whether the buffer needs reverting could easily take longer > than reverting it. PCL-CVS offers a revert-buffer-function and it better not be refreshed every 5 seconds unless maybe you're working on a small project hosted locally. Stefan