From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: autoreverting remote files Date: Mon, 27 Jul 2009 13:41:55 -0400 Message-ID: References: <873a8l2fa1.fsf@gmx.de> <87y6qbzgbr.fsf@gmx.de> <874osy96l0.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1248716542 12641 80.91.229.12 (27 Jul 2009 17:42:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jul 2009 17:42:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 27 19:42:08 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 1MVUDA-0001xI-8h for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 19:42:08 +0200 Original-Received: from localhost ([127.0.0.1]:56803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVUD9-0007qG-KJ for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 13:42:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVUD4-0007m7-LC for emacs-devel@gnu.org; Mon, 27 Jul 2009 13:42:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVUD0-0007aY-1Y for emacs-devel@gnu.org; Mon, 27 Jul 2009 13:42:02 -0400 Original-Received: from [199.232.76.173] (port=51185 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVUCz-0007aB-SJ for emacs-devel@gnu.org; Mon, 27 Jul 2009 13:41:57 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:47205 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVUCz-0000PR-Hd for emacs-devel@gnu.org; Mon, 27 Jul 2009 13:41:57 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AigFAJWDbUpFxJuZ/2dsb2JhbACBUdAehAwFhxU X-IronPort-AV: E=Sophos;i="4.43,277,1246852800"; d="scan'208";a="42303178" Original-Received: from 69-196-155-153.dsl.teksavvy.com (HELO pastel.home) ([69.196.155.153]) by ironport2-out.teksavvy.com with ESMTP; 27 Jul 2009 13:41:56 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id BCC177F56; Mon, 27 Jul 2009 13:41:55 -0400 (EDT) In-Reply-To: <874osy96l0.fsf@gmx.de> (Michael Albinus's message of "Mon, 27 Jul 2009 04:56:43 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:113236 Archived-At: >>> Sure. But `file-remote-p' does not know the difference. >> Not true: file-remote-p delegates the job to Tramp, and Tramp does know. > We've discussed it a year ago. file-remote-p is also used for > implementation dependent decisions; what we need is something like > "file-access-is-slow-p", AFAIC, file-remote-p is exactly what you call "file-access-is-slow-p". > which could also be true even for "local" files, if they are mounted, They're all "mounted", so I guess you mean "mounted from a remote server", in which case file-remote-p should indeed return non-nil (tho this is not implemented yet). > or because they are extremely HUGE. This seems to be out of the scope of file-remote-p (or file-access-is-slow-p), and is already well served by file-attributes, I believe. > Anyway, this is another discussion. I wanted to know whether I could > change autorevert.el; I haven't seen objections until now :-) It looks like a fine idea, yes. BTW, I don't understand why file-remote-p is checked in auto-revert-handler rather than in (global-)auto-revert-(tail-)mode. It's not like the remoteness of a buffer is going to change, is it? It would also make it possible for the user to force auto-revert-mode in some specific buffer even if the file is remote. Stefan