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") ;;
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
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
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 "^
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.
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
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