From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: Problem with interaction of auto-revert and auto-save-visited-file-name Date: Wed, 19 Dec 2007 02:00:40 +0000 (GMT) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Trace: ger.gmane.org 1198029660 27945 80.91.229.12 (19 Dec 2007 02:01:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2007 02:01:00 +0000 (UTC) To: Emacs Bugs Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 19 03:01:11 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J4oFC-0001Zx-UK for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Dec 2007 03:01:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4oEt-00074o-Fb for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Dec 2007 21:00:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4oEp-00074h-Ha for bug-gnu-emacs@gnu.org; Tue, 18 Dec 2007 21:00:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4oEo-00074U-O2 for bug-gnu-emacs@gnu.org; Tue, 18 Dec 2007 21:00:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4oEo-00074R-LW for bug-gnu-emacs@gnu.org; Tue, 18 Dec 2007 21:00:46 -0500 Original-Received: from pelican.sc3d.org ([216.184.201.86]) by monty-python.gnu.org with esmtps (SSL 3.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J4oEo-0008N5-Ao for bug-gnu-emacs@gnu.org; Tue, 18 Dec 2007 21:00:46 -0500 DomainKey-Signature: a=rsa-sha1; s=key1024; d=sc3d.org; c=nofws; q=dns; b=9k9BDOADvwkqBfYkPIIfMKRcG9diZXIRcgNvqlfwOAdhAukck53MI9VvlMSguExXx9X5OdL2OZ43k3VGCq3esp5euHzta5r98INW68Nog6rqbB/uayaJQi2azoJIET1RqfJhoMwoQ6w7lIluSSGuAPrd2wXezG6ONkaxKLB7dak= Original-Received: from drom (cpc1-popl1-0-0-cust343.popl.cable.ntl.com [81.106.81.88]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP (SSL) id YOT14043 for ; Tue, 18 Dec 2007 21:00:43 -0500 X-X-Sender: rrt@localhost.localdomain User-Agent: Alpine 0.999999 (DEB 847 2007-12-06) X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17192 Archived-At: I just set auto-save-visited-file-name, and I notice that it seems to cause problems with auto-revert-mode. The problem is that first, that auto-revert-mode notices that the file has been saved and reverts it, or puts up a prompt because I try to edit the file some more and it wants to know if I want to edit the reverted or non-reverted version and secondly, by reverting I lose my undo history. Is there some way that autorevert can be made to differentiate between files autosaved by Emacs and files updated externally? I'm using the 22.1 release. -- http://rrt.sc3d.org/ Extreme programming: burn your bridges when you come to them