From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: org-html link building diff Date: Mon, 26 Apr 2010 12:03:05 +0200 Message-ID: <87633ewmxy.fsf@gmx.de> References: <734f7527c1662e217d1ec2ad053118b2.squirrel@mail.panix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6L9r-0003Nm-6L for emacs-orgmode@gnu.org; Mon, 26 Apr 2010 06:03:19 -0400 Received: from [140.186.70.92] (port=52026 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6L9n-0003MT-Q8 for Emacs-orgmode@gnu.org; Mon, 26 Apr 2010 06:03:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6L9m-0007pV-5X for Emacs-orgmode@gnu.org; Mon, 26 Apr 2010 06:03:15 -0400 Received: from mail.gmx.net ([213.165.64.20]:58358) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O6L9l-0007ox-Nz for Emacs-orgmode@gnu.org; Mon, 26 Apr 2010 06:03:14 -0400 In-Reply-To: (Carsten Dominik's message of "Mon, 26 Apr 2010 07:24:51 +0200") 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: Carsten Dominik Cc: Emacs-orgmode@gnu.org, "Tom Breton (Tehom)" Carsten Dominik writes: > On Apr 18, 2010, at 4:13 AM, Tom Breton (Tehom) wrote: > >> I've refactored `org-export-as-html', factored code to build links >> into `org-html-make-link'. >> >> This does two things that I needed: >> >> * It allows custom link types to build anchors. >> * How: Call org-html-make-link. Many parameters, see the function >> docstring. It returns a string containing an HTML link. >> * It adds the capability to convert links when exporting. >> * How: Around the export call, bind org-html-cvt-link-fn to a >> function that takes 1 parameter (filename) and returns a url as a >> string. >> >> I think it also makes the code cleaner. > > I am sure it does - the export function has grown like cancer in the run of > years. > Unfortunately, I right now do not have the time to study this carefully enough > to make sure this does not break anything. > > Tom, maybe you can update the patch to the current master. > > Are there any volunteers who can put this patch through the mill? Or Tom, maybe > you first want to implement the other stuff you are thinking about? Tom and Carsten, here's a volunteer for testing it. I've been looking in this export and publishing stuff frequently lately, and a clean-up would be great. Sebastian