emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* BUG (?): org capture insist *.org file changed in disk, wipes file each time
@ 2013-06-05 15:18 Xebar Saram
  2013-06-06 18:51 ` Marc Ihm
  0 siblings, 1 reply; 4+ messages in thread
From: Xebar Saram @ 2013-06-05 15:18 UTC (permalink / raw)
  To: org mode

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

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: 2473 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG (?): org capture insist *.org file changed in disk, wipes file each time
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Marc Ihm @ 2013-06-06 18:51 UTC (permalink / raw)
  To: Xebar Saram; +Cc: org mode

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG (?): org capture insist *.org file changed in disk, wipes file each time
  2013-06-06 18:51 ` Marc Ihm
@ 2013-06-07 20:29   ` Xebar Saram
  2013-07-01 13:42     ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Xebar Saram @ 2013-06-07 20:29 UTC (permalink / raw)
  To: Marc Ihm; +Cc: org mode

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG (?): org capture insist *.org file changed in disk, wipes file each time
  2013-06-07 20:29   ` Xebar Saram
@ 2013-07-01 13:42     ` Bastien
  0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2013-07-01 13:42 UTC (permalink / raw)
  To: Xebar Saram; +Cc: Marc Ihm, org mode

Hi Xebar,

Xebar Saram <zeltakc@gmail.com> writes:

> i have tried isolating the exact cause with no success.

What if you move your files outside of the Dropbox directory
(and update the capture templates accordingly)?

-- 
 Bastien

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-07-01 13:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2013-07-01 13:42     ` Bastien

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