Closed jave closed 10 years ago
This have been fixed in 8f673c7
Please change to #+GOOGLE_ANALYTICS: XXX
doesnt seem to work for me, did you try with org?
I tried both of these:
I did try to follow the oblog code for a bit, but couldnt see whats wrong.
Some random debuging follows.
The idea is that would be okay with just hard coding the ob:backend struct and run ob:publish on it. It seems hard to do though for some reason. I suppose I could just hand code the array.
(setq mupp (make-ob:backend:org :config-file "/home/joakim/Plans/Oblog.org" :publish-dir "/tmp/oblog") ) [cl-struct-ob:backend:org "/home/joakim/Plans/Oblog.org" nil nil nil "/tmp/oblog" "/home/joakim/.emacs.d/el-get/o-blog/templates/style" "/home/joakim/.emacs.d/el-get/o-blog/templates" nil nil nil nil nil nil nil ob:entry:sort-by-date "+TODO=\"DONE\"" "+PAGE={.+.html}" "+SNIPPET={.+}"]
ELISP> (%ob:set mupp :google-analytics "UA-50054319-1") nil
this works though. (%ob:set mupp 'publish-dir "test") "test"
(ob:get 'google-analytics (make-ob:backend :config-file "/home/joakim/Plans/Oblog.org" :google-analytics "mupp")) "mupp" ELISP> (ob:get 'google-analytics (make-ob:backend:org :config-file "/home/joakim/Plans/Oblog.org" :google-analytics "mupp")) * Eval error * Keyword argument :google-analytics not one of (:config-file :index-file :source-dir :source-files :publish-dir :style-dir :template-dir :articles :pages :snippets :tags :title :description :url :posts-sorter :articles-filter :pages-filter :snippets-filter)
I guess you should reload lisp files after upgrading o-blog version. This is mainly because ob:backend:org
depends on ob:backend
.
ELISP> (let ((mupp (make-ob:backend:org :config-file "/tmp/site-jave/jave-oblog.org" :publish-dir "/tmp/oblog")))
(ob:org:parse-config mupp)
(ob:get 'google-analytics mupp))
"UA-50054319-1"
ELISP>
your above example doesnt work for me, which it obviously should.
I have reloaded, redefined, examined load path shadows, rebuilt emacs, and offered a goat to the old gods. Still no success.
there is some kind of load order issue. If I explicitly redefine ob:backend, I can access the slot. Im not sure if this is a real issue, or what.
Strange I will try later to find a way to diagnose it.
I got this:
/Applications/Emacs.app/Contents/MacOS/Emacs --debug-init -Q -batch -L ~/.emacs.d/el-get/o-blog/lisp --eval "(progn (require 'o-blog) (require 'o-blog-backend-org))" --eval "(let ((mupp (make-ob:backend:org :config-file \"/tmp/jave/jave-oblog.org\" :publish-dir \"/tmp/oblog\"))) (ob:org:parse-config mupp) (message \"GA: %s\" (ob:get 'google-analytics mupp)))"
GA: UA-50054319-1
Do you manage to get something similar?
works for me now
previously this worked well
+ANALYTICS: UA-50054319-1
but no longer!