From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Russell Newsgroups: gmane.emacs.help Subject: Re: watching files Date: Mon, 21 Nov 2005 14:32:38 -0500 Organization: Cisco Systems Inc. Message-ID: <87y83hn6eh.fsf@cisco.com> References: <87ek5cagj2.wl@nospam.anselm.chemie.fu-berlin.de> <4380d95a$0$24985$9b622d9e@news.freenet.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1132602414 22579 80.91.229.2 (21 Nov 2005 19:46:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Nov 2005 19:46:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 21 20:46:45 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EeHc0-00042e-9B for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Nov 2005 20:46:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EeHa0-0007F6-3Y for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Nov 2005 14:43:56 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!peer01.west.cox.net!cox.net!hwmnpeer01.phx!hwmedia!hw-filter.phx!fe10.phx.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:AsPqnG9hoRjals6WF4hk6f+89xo= Cache-Post-Path: sj-nntpcache-3!unknown@dhcp-10-86-164-253.cisco.com X-Cache: nntpcache 2.4.0b2 (see http://www.nntpcache.org/) Original-Lines: 49 Original-NNTP-Posting-Host: 171.69.11.153 Original-X-Complaints-To: newsadmin@cisco.com Original-X-Trace: fe10.phx 1132601558 171.69.11.153 (Mon, 21 Nov 2005 12:32:38 MST) Original-NNTP-Posting-Date: Mon, 21 Nov 2005 12:32:38 MST Original-Xref: shelby.stanford.edu gnu.emacs.help:135626 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:31225 Archived-At: Andreas Seik writes: > Anselm Helbig wrote: > > Hallo Anselm, > > Thank You for your help, it seems that emacs is missing an important > feature. When you switch on auto-revert-mode emacs will overwrite unchanged > buffers without notice, and does nothing with changed buffers when the > correspondig file changes. > An interactive mode seems to be missing :-( in all my emacs experience, every time a file is edited outside of emacs as soon as I type any key in that files buffer in emacs I am asked if I want to revert the file because the contents have changed on disk. This does not happen for you? It sounds like just what you want. John > > viele Grüße > Andreas > >>> I would like to habe emacs check, when ever i reopen a buffer, if the >>> correspondig file on disk has changed meanwile. Emacs shold ask me, if i >>> want to relode the newer version. >>> I thik this feater existsts, but i can't find the switch. >> >> hallo andreas, >> >> emacs checks if there have been changes to the file you are editing >> when you try to save it. that's what rgb meant. >> >> there's a minor mode you can active, `auto-revert-mode', which checks >> in certain intervals if the file you are editing changed and then >> loads the new version. i'm not sure if it asks you when there is a >> conflict, i remember that i lost some changes i did when i was still >> using it. at least there were problems when you're working on a remote >> server which is a little out of sync with your system clock (a few >> seconds may be trouble enough if you save often). >> >> to try it for all buffers now, drop this into your .emacs: >> >> (global-auto-revert-mode 1) >> >> grüße, >> >> anselm