From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thole Subject: Auto-saving/loading files (without prompts) Date: Thu, 5 Mar 2009 12:41:57 -0600 (CST) Message-ID: References: <87ocwjzts2.fsf@CPU107.opentrends.net> <20524da70903021021m3403e57etf9b796aab7371a73@mail.gmail.com> <87vdqrrcxw.fsf@gollum.intra.norang.ca> <87zlg27snk.fsf@CPU107.opentrends.net> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LfIWF-0002kL-OZ for emacs-orgmode@gnu.org; Thu, 05 Mar 2009 13:42:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LfIWD-0002hS-9s for emacs-orgmode@gnu.org; Thu, 05 Mar 2009 13:42:06 -0500 Received: from [199.232.76.173] (port=40707 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfIWC-0002hD-No for emacs-orgmode@gnu.org; Thu, 05 Mar 2009 13:42:04 -0500 Received: from vs1202.rosehosting.com ([206.196.111.202]:41754 helo=thedarktrumpet.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LfIWC-0002CY-DS for emacs-orgmode@gnu.org; Thu, 05 Mar 2009 13:42:04 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by thedarktrumpet.com (Postfix) with ESMTPS id 2330D219C015 for ; Thu, 5 Mar 2009 12:41:58 -0600 (CST) 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: emacs-orgmode@gnu.org Hey all, One thing I noticed about org mode I'm hoping to resolve. Basically with using git, and having something pull into the specific org file, the contents of the file change often. The problem I'm having is that what I'd like to do is to refresh the buffer, and reload this file on specific intervals. When changes are made to the file - say a state changes or something like that, I want to automatically save back to the file near immediately. I'm trying to reduce the amount of race conditions I have in if I run from the following type of workflow: - Load agenda - clock in, out, add notes - refresh file from ticket tracker - Try to save file - fail because file potentially changed. I'd like to try and get it to work as the following: - Load agenda - auto save file every 20 seconds or so: clock in, out, add notes - Refresh file from ticket tracker (this is done, already merges with current org file) - reloads buffers automatically (no prompt on "this file has changed", automatically reload first then allow the edit to go through again. - auto save file and repeat the above 2 steps. I'm not totally sure if this would work, but right now what I do is: - Load agenda - Edit agenda as necessary - Save Manually - run python script to pull redmine stuff which will save it to the same file, merged. - hit refresh, confirm a few times that I want to reload the file and continue from step 2 on. The main thing I'd like to fix if the overal solution doesn't work is a way to reload the file without confirming. So if I try to refresh the agenda buffer that it would automatically reload the file too, without confirmation. I have an emacs lisp command I created that does this for me. Any ideas on how to handle this, or how to streamline this process at all? Thanks, David