After a few hours struggling with parenthesises, I finally managed to patch weblogger.el and xml-rpc.el to have those critical missing functionalities.
Now the default is to post as “Draft” when i use C-c C-n or C-c C-p so i can just prepare some text and save it for later. Changing publish state should be done explicitly with C-x C-s which calls the weblogger-publish-entry function, for not changing it C-c C-c.
Note that i said changing the published state, because at least on WordPress it switches from Draft to Published but also from Published to Draft with C-x C-s … i am unsure about the behaviour of other APIs.
I will have to do some work on this latter this week end …
Most importantly is the support for categories. It now display the categories in the header as “Keywords:” which you can set to one or many as a “, ” separated list. For example this post is “Keywords: Emacs, intarweb”.
The only thing i don’t see how to implement right now is auto-completion for the category names. Perhaps an emacs guru could have a look …
Another *minor* issue is that the API doesn’t provide any way to create new categories, which means that i *will* have to go on that slow web interface just for that. But how often do i need to change my categories anyway ?
Finally, on the would-be-nice list are clickable links in the header that open the preview page or post page. The URL is there, it just lack some hook in Emacs. Then attachment processing … the API seems to support it.
I also thought of markup support, but i guess it should just be installed in the blog site, processing “markup X” to HTML to “markup X” seems to be the perfect way to invoke Cthulhu bugs. So i would rather have mmm-mode support and use Emacs HTML capabilities.
I found that i almost don’t need HTML, at least on WordPress and for “just text” posts, because it formats paragraphs nicely without P tags.
This time the files are uploaded in my Emacs Hacks page.
Happy blogging !