From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrea Crotti Newsgroups: gmane.emacs.help Subject: auto-revert in VCS Date: Tue, 16 Feb 2010 10:57:34 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266314315 25263 80.91.229.12 (16 Feb 2010 09:58:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2010 09:58:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 16 10:58:33 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NhKCO-0006Cy-8q for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Feb 2010 10:58:32 +0100 Original-Received: from localhost ([127.0.0.1]:56478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhKCN-0004JJ-B3 for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Feb 2010 04:58:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhKBu-0004JD-Mz for help-gnu-emacs@gnu.org; Tue, 16 Feb 2010 04:58:02 -0500 Original-Received: from [140.186.70.92] (port=33039 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhKBt-0004J5-1K for help-gnu-emacs@gnu.org; Tue, 16 Feb 2010 04:58:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhKBs-00089H-F3 for help-gnu-emacs@gnu.org; Tue, 16 Feb 2010 04:58:00 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:60064) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhKBs-000893-8m for help-gnu-emacs@gnu.org; Tue, 16 Feb 2010 04:58:00 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NhKBn-0005rx-5s for help-gnu-emacs@gnu.org; Tue, 16 Feb 2010 10:57:55 +0100 Original-Received: from ip116-027.hgracht.rwth-aachen.de ([134.130.116.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Feb 2010 10:57:55 +0100 Original-Received: from andrea.crotti.0 by ip116-027.hgracht.rwth-aachen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Feb 2010 10:57:55 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip116-027.hgracht.rwth-aachen.de User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (darwin) Cancel-Lock: sha1:SwL9sV5vJd4QT8pNDjQpdBH9q8k= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:71883 Archived-At: I would like to have auto-revert activated when I work with branches. For example in git projects every time I change branch I have to revert buffer manually to start working on the new branch. So I wrote this in my conf: --8<---------------cut here---------------start------------->8--- (require 'autorevert) (setq auto-revert-check-vc-info t) (setq auto-revert-interval 3) ;; this could be cpu consuming (setq auto-revert-verbose t) (setq global-auto-revert-mode t) --8<---------------cut here---------------end--------------->8--- The problem is that emacs was sucking all my cpu power and that's not nice... I only need to enable auto-revert for files under revision control, and only on files which I'm visiting in some buffers (and the buffer is active), is that possible somehow?