emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Xebar Saram <zeltakc@gmail.com>
To: Marc Ihm <marc@ihm.name>
Cc: org mode <emacs-orgmode@gnu.org>
Subject: Re: BUG (?): org capture insist *.org file changed in disk, wipes file each time
Date: Fri, 7 Jun 2013 16:29:30 -0400	[thread overview]
Message-ID: <CAOQHXPr8W3A=o8iF88mUgKqHbyQv=1gReKUALkp_BY9mwKMVKQ@mail.gmail.com> (raw)
In-Reply-To: <51B0DA49.8040205@ihm.name>

[-- Attachment #1: Type: text/plain, Size: 4894 bytes --]

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 <marc@ihm.name> 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.
>>
>
>

[-- Attachment #2: Type: text/html, Size: 9322 bytes --]

  reply	other threads:[~2013-06-07 20:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05 15:18 BUG (?): org capture insist *.org file changed in disk, wipes file each time Xebar Saram
2013-06-06 18:51 ` Marc Ihm
2013-06-07 20:29   ` Xebar Saram [this message]
2013-07-01 13:42     ` Bastien

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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='CAOQHXPr8W3A=o8iF88mUgKqHbyQv=1gReKUALkp_BY9mwKMVKQ@mail.gmail.com' \
    --to=zeltakc@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=marc@ihm.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).