From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] autorevert.el -- revert fix for Windows platform Date: Sat, 24 Mar 2007 11:52:16 +0100 Message-ID: <460502E0.8030507@gmx.at> References: <7it9frhi.fsf@cante.net> <87slbx9vcf.fsf@stupidchicken.com> <4602A730.8030408@gmail.com> <4602C1A1.50300@gnu.org> <3b3vsw76.fsf@cante.net> <46043A5D.7000702@gnu.org> <46045D95.3000501@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1174733592 20686 80.91.229.12 (24 Mar 2007 10:53:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Mar 2007 10:53:12 +0000 (UTC) Cc: Jari Aalto , emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 24 11:53:08 2007 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 1HV3rw-00031U-D5 for ged-emacs-devel@m.gmane.org; Sat, 24 Mar 2007 11:53:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HV3tw-0004BS-HT for ged-emacs-devel@m.gmane.org; Sat, 24 Mar 2007 05:55:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HV3ts-00048M-TL for emacs-devel@gnu.org; Sat, 24 Mar 2007 06:55:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HV3tp-00041g-LA for emacs-devel@gnu.org; Sat, 24 Mar 2007 06:55:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HV3tp-00041G-I6 for emacs-devel@gnu.org; Sat, 24 Mar 2007 05:55:05 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HV3ro-000081-59 for emacs-devel@gnu.org; Sat, 24 Mar 2007 06:53:00 -0400 Original-Received: (qmail invoked by alias); 24 Mar 2007 10:52:58 -0000 Original-Received: from N710P014.adsl.highway.telekom.at (EHLO [62.47.32.174]) [62.47.32.174] by mail.gmx.net (mp050) with SMTP; 24 Mar 2007 11:52:58 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+sSrAs8aWsUqY5nK0LvF0zwdwO9YATJ+hGVzUIGI +4znpIfi/eV7GX User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <46045D95.3000501@gnu.org> X-Y-GMX-Trusted: 0 X-detected-kernel: 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:68461 Archived-At: > It seems to me that auto-revert-tail-mode already exists to deal with > this specific use case. Doesn't this (defun auto-revert-tail-handler () (let ((size (nth 7 (file-attributes buffer-file-name))) ... (when (> size auto-revert-tail-pos) ... (insert-file-contents file nil auto-revert-tail-pos size))) (undo-boundary) (setq auto-revert-tail-pos size) ... suffer from the buffer-size file-size dichotomy as well? Or are we on the safe side here?