From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: autoreverting remote files Date: Mon, 03 Aug 2009 05:39:57 +0200 Message-ID: <87zlaha7le.fsf@gmx.de> 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 1249270821 26259 80.91.229.12 (3 Aug 2009 03:40:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Aug 2009 03:40:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 03 05:40:14 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 1MXoPF-0008FJ-Rl for ged-emacs-devel@m.gmane.org; Mon, 03 Aug 2009 05:40:14 +0200 Original-Received: from localhost ([127.0.0.1]:39104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXoPE-0003wV-Pv for ged-emacs-devel@m.gmane.org; Sun, 02 Aug 2009 23:40:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXoP9-0003wQ-H0 for emacs-devel@gnu.org; Sun, 02 Aug 2009 23:40:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXoP4-0003vg-JC for emacs-devel@gnu.org; Sun, 02 Aug 2009 23:40:06 -0400 Original-Received: from [199.232.76.173] (port=49009 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXoP4-0003vd-CG for emacs-devel@gnu.org; Sun, 02 Aug 2009 23:40:02 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:57669) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MXoP3-0000wC-M8 for emacs-devel@gnu.org; Sun, 02 Aug 2009 23:40:02 -0400 Original-Received: (qmail invoked by alias); 03 Aug 2009 03:39:59 -0000 Original-Received: from p57A21BB1.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.27.177] by mail.gmx.net (mp028) with SMTP; 03 Aug 2009 05:39:59 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+hG7VwekKhqwPzBFR4jwWyRUw1XCtzRMg9pAXaqO NCY64mcQ1vji44 In-Reply-To: (Stefan Monnier's message of "Mon, 27 Jul 2009 13:41:55 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.7 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:113591 Archived-At: Stefan Monnier writes: >> 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. For the time being, I have enabled auto-revert-tail-mode for remote files. That seems to be the most wanted functionality. I've also changed the implementation of Tramp's insert-file-contents, that it copies only the requested characters, when BEG or END is specified. This shall provide the needed speed. The rest I haven't touched (yet); I want to wait for feedback first, if any. > Stefan Best regards, Michael.