From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: revert all agenda buffers Date: Tue, 10 Feb 2009 23:37:19 +0100 Message-ID: <86CF8B7D-A5B6-4AEF-B446-23E04298E39A@uva.nl> References: <87ocxaiit2.wl%bremner@pivot.cs.unb.ca> <5A1F7173-7AB5-4AEC-A2D3-61F182E039B4@uva.nl> <715EF7E3-1393-40AA-83D2-7CC2E3D150BF@uva.nl> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LX1EK-0006ML-VH for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 17:37:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LX1EI-0006M9-K6 for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 17:37:23 -0500 Received: from [199.232.76.173] (port=60061 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LX1EI-0006M6-DS for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 17:37:22 -0500 Received: from nf-out-0910.google.com ([64.233.182.191]:59819) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LX1EH-0003wd-Ue for emacs-orgmode@gnu.org; Tue, 10 Feb 2009 17:37:22 -0500 Received: by nf-out-0910.google.com with SMTP id d3so22999nfc.26 for ; Tue, 10 Feb 2009 14:37:20 -0800 (PST) In-Reply-To: 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: Manish Cc: emacs-orgmode@gnu.org On Feb 10, 2009, at 9:00 PM, Manish wrote: > On Wed, Feb 11, 2009 at 1:21 AM, Carsten Dominik wrote: >> >> On Feb 10, 2009, at 8:49 PM, Manish wrote: >> >>> On Wed, Feb 11, 2009 at 12:54 AM, Carsten Dominik wrote: >>>> >>>> On Feb 10, 2009, at 1:21 PM, David Bremner wrote: >>>> >>>>> >>>>> Hi Org-wizards; >>>>> >>>>> I am using git to to sync my org files between various hosts. The >>>>> problem is that when I update the files on disk (i.e. with a git >>>>> pull) >>>>> then I have to manually revert each current org buffer (or, >>>>> restart >>>>> emacs, like that is going to happen :-) ). It would be nice if >>>>> there >>>>> was an analog of org-save-all-org-buffers that reverted them all >>>>> for >>>>> me. Am I missing an existing solution? >>>> >>>> 6.22b has now `org-revert-all-org-buffers'. I consider this command >>>> slightly dangerous, so you have to confirm with "yes". >>> >>> Org mode is my default mode and many buffers not necessarily part of >>> agenda >>> are open almost all the time. Will this command revert *all* Org >>> buffers >>> or >>> only the ones part of org-agenda-files? >> >> All of them. > > I take it that it has to. So far I haven't yet run into David's > situation so > I guess I am fine for the moment. But if I need to then I guess I > will need > to remember to save (from agenda view, so that all Org buffers are > saved) > before executing the git pull and revert command? Yes. The right way would be 1. save all org buffer 2. pull to get the merging right 3. revert the buffers. - Carsten