Re: [Orgmode] Bug on file publish

2008-10-27 Thread Carsten Dominik
Hi Sebastian and Richard, I just pushed what I think fixes this bug, please verify. Thanks. - Carsten On Oct 27, 2008, at 12:55 AM, Sebastian Rose wrote: Hi, I tried to use (file-locked-p f) in org-publish-base-files-1, but I couldn't get it to work. (file-locked-p "~/notes/index.org") ;;

Re: [Orgmode] Bug on file publish

2008-10-26 Thread Carsten Dominik
Hi Sebastian, thanks for all this analysis. On Oct 27, 2008, at 12:55 AM, Sebastian Rose wrote: Hi, I tried to use (file-locked-p f) in org-publish-base-files-1, but I couldn't get it to work. (file-locked-p "~/notes/index.org") ;; => t if "~/notes/.#index.org" exists. .#index.org is on

Re: [Orgmode] Bug on file publish

2008-10-26 Thread Sebastian Rose
Hi, I tried to use (file-locked-p f) in org-publish-base-files-1, but I couldn't get it to work. (file-locked-p "~/notes/index.org") ;; => t if "~/notes/.#index.org" exists. .#index.org is only there, if I change the file without saving it. It's removed, if I save the buffer. A working qui

Re: [Orgmode] Bug on file publish

2008-10-26 Thread Sebastian Rose
Hi, in org-publish-get-base-files-1 (car (file-attributes "~/notes/.#index.org")) gives [EMAIL PROTECTED]:1225047914 !!! So we have to test, if fd-p is the name of an existing file in base-dir. That's it. (if (and fd-p --HERE-- recurse (not (string-match "^

Re: [Orgmode] Bug on file publish

2008-10-26 Thread Sebastian Rose
Just thinking aloud: "Opening directory", "no such file or directory", >> | "/home/shamrock/webs/mydomain/.#index.org" is exactly what grep always gives me in such e case (I often use `grep -lFr string dir'). sh> ls -l /home/sebastian/notes/.#index.org lrwxrwxrwx 1 sebastian sebastian 31 26.

Re: [Orgmode] Bug on file publish

2008-10-26 Thread Carsten Dominik
Hi Richard, Maybe this is some file locking mechanism? I am quite sure that Org does not create this file explicitly. Can you try to figure out exactly how things happen in org-publish-get- base-files-1, and which line exactly is causing the error to be triggered? - Carsten On Oct 25, 200

[Orgmode] Bug on file publish

2008-10-24 Thread Richard Riley
If I modify a file and then publish it using "C-c C-e f" without saving it I get an error of the form: , | File error: "Opening directory", "no such file or directory", | "/home/shamrock/webs/mydomain/.#index.org" ` I traced it through with edebug (how do you set a watch on a variable? I