From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: Blogging from org-mode Date: Mon, 17 Jan 2011 15:28:53 -0600 Message-ID: <4D34B495.9050507@ccbr.umn.edu> References: <448f55abac6a0c1da962076fb75d186d.squirrel@mail.panix.com> <4D34A07C.3030706@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=60989 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PewVS-0000hb-7f for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 16:20:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PewVQ-0002Hh-V7 for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 16:20:54 -0500 Received: from pegasus.biostat.wisc.edu ([144.92.73.35]:62670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PewVQ-0002Hc-Or for emacs-orgmode@gnu.org; Mon, 17 Jan 2011 16:20:52 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Wales Cc: "Tom Breton (Tehom)" , emacs-orgmode Hello, On 01/17/2011 03:02 PM, Samuel Wales wrote: > On 2011-01-17, Erik Iverson wrote: >> I also simply use weblogger.el >> (http://www.emacswiki.org/emacs/WebloggerMode) > > I made the mistake of trying this, thinking it had no dependencies > other than the other .el file so would be easier. It looks > potentially useful. > > I looked at 2 versions of this, and both had the same version number, > but the code was different. That's a slightly bad sign. > > http://launchpadlibrarian.net/40758914/weblogger.el > http://windows-config.googlecode.com/svn/trunk/.emacs_d/weblogger/weblogger.el > > Also, there is a compiler warning for obsolete variable, so the code > might be old? > > Finally, I couldn't figure out the basics. Just to confirm, this > takes HTML and posts it? It does not make this clear. Yes, you can set up a blog by first doing: M-x weblogger-setup-weblog RET But there were some quirks when I tried this with Drupal 6. I think I had to have at least one post already in the blog before it worked. But after that, I was able to weblogger with the function defined in the link below to post to Drupal. >> combined with a really easy function defined at >> http://www.randomsample.de/dru5/node/77 to post to blogs including Drupal. > > What does your really easy function do that weblogger.el does not do? Weblogger just sends the HTML to the blog, and lets you edit existing entries. It does not produce the actual HTML. The function from randomsample.de exports an Org-mode buffer to HTML and "massages" the HTML output to be of a form that blogs like. I.e., gets rid of the headers. Weblogger has nothing to do with org-mode per se, it just lets you post content to blogs that support XMLRPC. That's about as far as my knowledge goes, so I hope it helps. This method isn't completely clean, but it did work for me with Drupal 6 (but haven't gotten it to work yet in Drupal 7...) As usual, there's more than a few ways to do things, so the more options the better in my opinion.