renard / o-blog

Standalone orgmode blog exporter. DEPECATED, NOT MAINTAINED
http://renard.github.com/o-blog-v2
260 stars 58 forks source link

Trying to publish sample-blog #34

Closed pharos-alexandria closed 12 years ago

pharos-alexandria commented 12 years ago

While trying to publish the sample.org-file I get the message "timestamp delimiter start was not found" and the following warnings:

Warning (org): ???: Error evaluating (progn
= tags surrounds it.

#+begin_src html
<h1><lisp>(ob:blog-title BLOG)
): (invalid-read-syntax #)
Warning (org): ???: Error evaluating (progn

        (loop for p in (ob:get-posts nil 10)
              do (insert (format "<li><a href=\"%s/%s\">%s</a></li> "
                                 (ob:path-to-root)
                                 (ob:post-htmlfile p)
                                 (ob:post-title p))))

): (void-variable POSTS)
Warning (org): ???: Error evaluating (progn

        (progn
          ;; Get previous post
          (let ((ppost (ob:get-post-by-id (1+ (ob:post-id POST)))))
            (if ppost
                (insert (format "<li class=\"prev\"><a href=\"%s/%s\">%s</a></li>"
                                (ob:path-to-root)
                                (ob:post-htmlfile ppost)
                                (ob:post-title ppost)))
              (insert "<li>&nbsp;</li>")))
          ;; Get next post
          (let ((npost (ob:get-post-by-id (1- (ob:post-id POST)))))
            (if npost
                (insert (format "<li class=\"next\"><a href=\"%s/%s\">%s</a></li>"
                                (ob:path-to-root)
                                (ob:post-htmlfile npost)
                                (ob:post-title npost)))
              (insert "<li>&nbsp;</li>"))))

): (void-variable POST)
Warning (org): ???: Error evaluating (progn
(ob:post-content-html (ob:get-snippet "About"))
): (void-variable SNIPPETS)
Warning (org): ???: Error evaluating (progn
 (ob:format-date (ob:post-timestamp POST)) 
): (void-variable POST)
Warning (org): ???: Error evaluating (progn
 (ob:format-date (ob:post-timestamp POST) "%A %B, %d %Y at %H:%M:%S") 
): (void-variable POST)

In the out-directory there are no blog posts and the menu says: "Lisp error in nil: (error ob:post-title accessing a non-ob:post)"

Whats going wrong? Thanks for any help!

priyadarshan commented 12 years ago

I tried with o-blog version 1.2-77-g56e2d4e, following the directions at http://renard.github.com/o-blog/index.html, and got the exact same site as the previous link, with message:

Blog /Users/priyadarshan/repositories/o-blog/example/sample.org published in 22.092s

I use GNU Emacs 24.1.50.1. I am not sure what may be wrong with your setup.

pharos-alexandria commented 12 years ago

I get this message, too: Blog ~/Desktop/example/sample.org published in 27.906s But the export is not identical to http://renard.github.com/o-blog/index.html, as I said. I am at GNU Emacs 24.1.50.3 and use Org-mode 7.8.11.

renard commented 12 years ago

Hi,

If you got line like

Blog /Users/renard/.emacs.d/el-get/o-blog/example/sample.org published in 8.335s

This means everything run fine from o-blog point of view. Some strange configuration might compromise the site generation (still don't know why).

Be sure to have this configuration:

ELISP> (org-version)
"7.8.11"
ELISP> (emacs-version)
"GNU Emacs 24.1.50.1 (x86_64-apple-darwin11.3.0, NS apple-appkit-1138.32)\n of 2012-06-28 on lion.local"
ELISP> (o-blog-version)
"o-blog version 1.2-78-g5ac21a1"

BTW can you please try with the debug setting as explained at http://renard.github.com/o-blog/bug-report.html

Thanks

pharos-alexandria commented 12 years ago

Hi, following the debug setting it works – but unfortunately not with my regular setup. I will investigate further... Thanks for your help!

renard commented 12 years ago

Hi Ok thus can we close this issue?

renard commented 12 years ago

if you want you can send me your config and I will try to find out what's going on.

Or better do you have it on GH?

pharos-alexandria commented 12 years ago

Thanks for the offer! I think I have found the cause for my problem: In my config-file I had defined my own keywords

(setq org-todo-keywords (quote ((sequence "TODO(t)" "BEGONNEN(b!)" "|" "ZUDELEGIEREN(z@/!)" "DELEGIERT(d@/!)" "WARTEN(w@/!)" "ERLEDIGT(e!)")
 (sequence  "IRGENDWANN(I@/!)" "OFFEN(O@/!)" "|" "GESTRICHEN(g@/!)")))

i.e. I had not defined a DONE-status, after adding

(sequence "|" "DONE(z)")

to org-todo-keywords everything is working fine...

renard commented 12 years ago

Ok thank you for your support.

Can you please check version de5fefd I made some change to temporary restore org-to-keywords.

BTW I didn't manage to get your described bug.

pharos-alexandria commented 12 years ago

No, the new version does not change the behaviour with my setup. It still only works with explicitly having (sequence "|" "DONE(z)") added to org-todo-keywords.