I finally got weblogger up and running without issues. This proved a bit of a challenge.
Since I had no idea what I was doing, figuring out why once weblogger errored you have to reset the whole thing. The easiest way to do this is just restart your emacs session. But, I made the mistake of experimenting with weblogger in my main session… *sigh*
Once you get a 404 from the webserver, the only way to get weblogger back on track is to (setq weblogger-weblog-alist nil).
Another thing is that the capability discovery mechanism is broken. I am not sure exactly why, but if your blog has capabilities not listed in the weblogger-capabilities then it fails. Since I run wordpress, my solutions was to run the following code:
Then do a C-h v foobar to get the list of capabilities. Edit the weblogger.el to list these in the weblogger-capabilities alist. I can now edit posts!
The other thing is that I kept getting “Newsgroup: is an invalid header” or something. My solution was to comment out the line that tries to add that header to the buffer. around line 394
Just to help you along here is the relevant part in my ~/.emacs:
(global-set-key “\C-cbs” ‘weblogger-start-post)
Right now it just works.
You can grab the patch at http://blogs.openaether.org/data/weblogger.el-wordpress.patch
- I should really hack weblogger so it doesn’t permanently fubar on error.
- getting the discovery fixed so one doesn’t have to manually create the alist would be real nice. weblogger uses mapcar,assoc, etc… it shouldn’t die according to my understanding, but it does
- I maintain two blogs. It would be nice to switch between them or select which one to post to
- fix up the message -> struct so it will use all of rss2