emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] BUG (?): org capture insist *.org file changed in disk, wipes fi


From: Xebar Saram
Subject: Re: [O] BUG (?): org capture insist *.org file changed in disk, wipes file each time
Date: Fri, 7 Jun 2013 16:29:30 -0400

Hi again all

So after further long investigation it seems to me that the issues is caused from the capture template of all things. if i switch back to a basic capture template like this:

(setq org-capture-templates
      '(("t" "Todo" entry (file+headline "~/Dropbox/Org/agenda/TODO.org" "Tasks")
             "* TODO %?\n  %i\n  %a")
        ("j" "Journal" entry (file+datetree "~/org/journal.org")
             "* %?\nEntered on %U\n  %i\n  %a")))

i dont seem to get the changed on disk error again. i have tried isolating the exact cause with no success. my config looks like this:

(setq org-capture-templates
      (quote (           
              ("x" "todo_nix" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "Linux")
               "* TODO %^{Description} %^g Added: %U" )
              ("o" "dl_movie" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "Movies")
               "* TODO %^{Description} %^g\nAdded: %U" )
              ("v" "dl_TV" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "TV")
               "* TODO %^{Description} %^g\nAdded: %U" )
              ("c" "dl_Comics" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "Comics")
               "* TODO %^{Description} %^g\nAdded: %U" )
              ("m" "dl_music" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "Music")
               "* TODO %^{Description} %^g\nAdded: %U" )
              ("h" "todo_home" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "Home")
               "* TODO  %?\n%T" )
              ("u" "todo_uni" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "Uni")
               "* TODO  %?\n%T" )
              ("f" "todo_food" entry (file+headline "/home/zeltak/Dropbox/Org/agenda/TODO.org" "Food")
               "*   %?\n%T\n%^{rating}p" )
              ("w" "org-protocol" entry (file "~/Dropbox/Org/refile/refile.org")
               "* TODO Review %c\n%U\n" :immediate-finish t)
              ("a" "Appointment" entry (file+headline "~/Dropbox/Org/refile/TODO.org" "Cal") 
              "* APPT %^{Description} %^g %? Added: %U")
              ("p" "Phone call" entry (file "~/Dropbox/Org/refile/refile.org")
               "* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t)
              ("h" "Habit" entry (file "~/Dropbox/Org/refile/refile.org")
               "* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string \"<%Y-%m-%d %a .+1d/3d>\")\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n"))))


i still dont know which one is creating the issues

Any help would be massively appreciated as i have been fighting this for over a week with no solution :(

best

Z





On Thu, Jun 6, 2013 at 2:51 PM, Marc Ihm <address@hidden> wrote:
Hi Z.

Sorry, but cannot think of a proper cause of your troubles other than dropbox.

I do not use dropbox, but only rsync for synchronisation. I get the same message that you get now and then, but each time I get it,
it is because I did synchronisation of my org-files from external sources, while emacs is still open.

So can only suspect, that your trouble comes from bad interaction with dropbox.

But as you said, you have already tried without, so it can only be very hidden and obscure.

Does this happen without a network connection ?


Best regards, Marc



On 06/05/2013 05:18 PM, Xebar Saram wrote:
Hi all

Im having serious issues with org-capture, ive tried everything i can think of including advice on #emacs but can find a solution/whats causing this.

So the issue is this. i have org mode configured and working well (see below config). the thing is that after the 2nd or 3rd capture (to create a todo) emacs gives the following error:

TODO.org changed on disk; really edit the buffer? (y, n, r or C-h) y
File on disk now will become a backup file if you save these changes.

It happens each time i relaunch emacs/org but never on the first time i capture (that always works). it always happens from 2/3rd time i try to capture.
I have tired many things with no succes. i have tried it both with org 8.03 and other org that comes with default emacs 24 (from the 7.x series) with no success.
i have checked carefully that no other app is accessing that file while emacs/org is editing it
i have moved the todo file and relevant org capture config to other folders (non dropbox/git/etc) and still the same issue occurs

another big issue is that sometime when i press Yes to the above error it wipes the whole todo file and puts only the latest capture

any help would be greatly appreciated

for reference here is my complete emacs conf file (in org mode format): https://paste.xinu.at/p27KN/

and the relevant capture part: https://paste.xinu.at/Autp/

Best

Z.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]