From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: BUG (?): org capture insist *.org file changed in disk, wipes file each time Date: Fri, 7 Jun 2013 16:29:30 -0400 Message-ID: References: <51B0DA49.8040205@ihm.name> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04103adfbd427d04de964953 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ul3Hz-000743-Pz for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 16:29:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ul3Hw-0005pa-H4 for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 16:29:35 -0400 Received: from mail-bk0-x233.google.com ([2a00:1450:4008:c01::233]:47886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ul3Hw-0005pT-6Z for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 16:29:32 -0400 Received: by mail-bk0-f51.google.com with SMTP id ji1so1707713bkc.10 for ; Fri, 07 Jun 2013 13:29:30 -0700 (PDT) In-Reply-To: <51B0DA49.8040205@ihm.name> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marc Ihm Cc: org mode --f46d04103adfbd427d04de964953 Content-Type: text/plain; charset=ISO-8859-1 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 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. >> > > --f46d04103adfbd427d04de964953 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi again all

So after further lon= g investigation it seems to me that the issues is caused from the capture t= emplate of all things. if i switch back to a basic capture template like th= is:

(setq or= g-capture-templates
=A0 =A0 =A0 '(("t" "Todo" entry (file+headline "~/Dropbox/Org/agenda/TODO.or= g" "Tasks")
=A0 =A0 =A0 =A0 =A0 =A0 =A0"* TODO = %?\n =A0%i\n =A0%a")
=A0 =A0 =A0 =A0 ("j" "Jo= urnal" entry (file+datetree "~/org/= journal.org")
=A0 =A0 =A0 =A0 =A0 =A0 =A0"* %?\nEntered on %U\n =A0%i\n =A0%a&q= uot;)))

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

(setq =
org-capture-templates
      (quote (          =20
              ("x" "todo_nix&q=
uot; entry (file+headline "/home/zeltak/=
Dropbox/Org/agenda/TOD=
O.org" "Linux")
               "* TODO %^{Description} %=
^g Added: %U" )
              ("o" "dl_movie&q=
uot; entry (file+headline "/home/zeltak/=
Dropbox/Org/agenda/TOD=
O.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&=
quot; entry (file+headline "/home/zeltak=
/Dropbox/Org/agenda/TO=
DO.org" "Comics")
               "* TODO %^{Description} %=
^g\nAdded: %U" )
              ("m" "dl_music&q=
uot; entry (file+headline "/home/zeltak/=
Dropbox/Org/agenda/TOD=
O.org" "Music")
               "* TODO %^{Description} %=
^g\nAdded: %U" )
              ("h" "todo_home&=
quot; entry (file+headline "/home/zeltak=
/Dropbox/Org/agenda/TO=
DO.org" "Home")
               "* TODO  %?\n%T" )
              ("u" "todo_uni&q=
uot; entry (file+headline "/home/zeltak/=
Dropbox/Org/agenda/TOD=
O.org" "Uni")
               "* TODO  %?\n%T" )
              ("f" "todo_food&=
quot; entry (file+headline "/home/zeltak=
/Dropbox/Org/agenda/TO=
DO.org" "Food")
               "*   %?\n%T\n%^{rating}p" )
              ("w" "org-protocol" entry (file "~/<=
span class=3D"" style>Dropbox/Org/refile/refile.org")
               "* TODO Review %c\n%U\n&q=
uot; :immediate-finish t)
              ("a" "Appointment" entry (file+headline &=
quot;~/Dropbox/Org/refile/TODO.org" "Cal")=20
              "* 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/refi=
le.org")
               "* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string \&q=
uot;<%Y-%m-%d %a .+1d/3d>\")\n:PROPERTIES:\n:STYLE: habit\n:REPE=
AT_TO_STATE: NEXT\n:END:\n"))))


i still dont know which one=
 is creating the issues
<=
br>
Any help would be massively appreciated as i have been fighting thi=
s for over a week with no solution :(
<=
br>
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 dropb= ox.

I do not use dropbox, but only rsync for synchronisation. I get the same me= ssage 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 drop= box.

But as you said, you have already tried without, so it can only be very hid= den 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.<= br>
So the issue is this. i have org mode configured and working well (see belo= w 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 cap= ture (that always works). it always happens from 2/3rd time i try to captur= e.
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 ema= cs/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 w= ipes 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.


--f46d04103adfbd427d04de964953--