emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Thole <dthole@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Auto-saving/loading files (without prompts)
Date: Thu, 5 Mar 2009 12:41:57 -0600 (CST)	[thread overview]
Message-ID: <alpine.DEB.2.00.0903051232580.5373@thedarktrumpet.com> (raw)
In-Reply-To: <CE3E11C1-D2C2-4E63-BE9A-853C4200C5C0@uva.nl>

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 

Any ideas on how to handle this, or how to streamline this process at all?



  parent reply	other threads:[~2009-03-05 18:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-02 18:03 Switching between many contexts Daniel Clemente
2009-03-02 18:21 ` Samuel Wales
2009-03-02 18:34   ` Bernt Hansen
2009-03-03 11:27     ` Daniel Clemente
2009-03-03 13:05       ` Matthew Lundin
2009-03-03 13:31         ` Carsten Dominik
2009-03-03  6:20           ` Manuel Hermenegildo
2009-03-04  6:17           ` Carsten Dominik
2009-03-04 10:01             ` Daniel Clemente
2009-03-05 18:41           ` David Thole [this message]
2009-03-06 15:21             ` Auto-saving/loading files (without prompts) Jason F. McBrayer
2009-03-02 18:31 ` Switching between many contexts Bernt Hansen
2009-03-02 21:47 ` Matthew Lundin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.00.0903051232580.5373@thedarktrumpet.com \
    --to=dthole@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).