From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Gray Subject: Re: Agenda and Reloading Changed Files Date: Tue, 20 Oct 2009 12:25:41 +0200 Message-ID: <86my3mpdju.fsf@portan.ibr.cs.tu-bs.de> References: <863a5frn3f.fsf@pmade.com> <87hbtuvqkz.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0C4s-0001LP-22 for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 06:36:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0C4n-0001KH-4L for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 06:36:29 -0400 Received: from [199.232.76.173] (port=36721 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0C4m-0001KC-TB for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 06:36:24 -0400 Received: from lo.gmane.org ([80.91.229.12]:43263) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N0C4m-00024m-By for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 06:36:24 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1N0C1O-0001kO-IC for emacs-orgmode@gnu.org; Tue, 20 Oct 2009 12:32:54 +0200 Received: from portan.ibr.cs.tu-bs.de ([134.169.34.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Oct 2009 12:32:54 +0200 Received: from chrismgray by portan.ibr.cs.tu-bs.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Oct 2009 12:32:54 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bernt Hansen wrote: > Make sure you don't have any unsaved information in _any_ org files in > emacs before you run this to sync your emacs buffers with the on disk > files -- otherwise you'll lose information. I got burned by that a couple of times, so now I use a script that does the following: --8<---------------cut here---------------start------------->8--- emacsclient -e "(save-some-buffers t)" for dir in $DIRS; do cd "$dir" git pull done emacsclient -e "(org-revert-all-org-buffers)" --8<---------------cut here---------------end--------------->8--- Cheers, Chris