I just found out you can easily post Drupal blog entries from within
Emacs by using the wonderful 'weblogger.el'. Here's what you have to do:
- Enable the 'Blog API' module in your Drupal installation and
configure permissions and the blog types which should be accessible via
XML-RPC.
- Go to the Weblogger EmacsWiki
page and get yourself weblogger.el and xml-rpc.el.
- Install
both in your load-path and require weblogger in your .emacs.
- Now
call weblogger-setup-weblog and use
https://your-drupal-site/xmlrpc.php as URL for accessing
the Drupal XML-RPC API, then provide username and password.
- Now
call weblogger-start-entry and start writing.
- Use C-x C-s
to post.
That's it! Now you can for instance create blog entries with the
fantastic markup from Orgmode, and directly post it via
weblogger-mode. There's just one problem: how can you set the taxonomy
tags for the posting? Simply putting it into the 'keywords' section
didn't work. It seems like you cannot do that via XML-RPC in Drupal, but
luckily there's a little Drupal module called
'inline tags', which
lets you flag the posting through a special tag
[tags]Emacs[/tags]
Note that the module requires Drupal 6, but it wasn't very hard to make
it work under Drupal 5 (which I'm still using) - let me know if you need
it.