From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-html link building diff Date: Mon, 26 Apr 2010 07:24:51 +0200 Message-ID: References: <734f7527c1662e217d1ec2ad053118b2.squirrel@mail.panix.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6HEA-0002yr-Tq for emacs-orgmode@gnu.org; Mon, 26 Apr 2010 01:51:31 -0400 Received: from [140.186.70.92] (port=47110 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6HE9-0002xN-8s for Emacs-orgmode@gnu.org; Mon, 26 Apr 2010 01:51:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6HE6-0007L0-Vy for Emacs-orgmode@gnu.org; Mon, 26 Apr 2010 01:51:29 -0400 Received: from ey-out-1920.google.com ([74.125.78.144]:64628) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6HE6-0007Hs-RO for Emacs-orgmode@gnu.org; Mon, 26 Apr 2010 01:51:26 -0400 Received: by ey-out-1920.google.com with SMTP id 13so133485eye.34 for ; Sun, 25 Apr 2010 22:51:26 -0700 (PDT) In-Reply-To: <734f7527c1662e217d1ec2ad053118b2.squirrel@mail.panix.com> 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: "Tom Breton (Tehom)" Cc: Emacs-orgmode@gnu.org 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? Thanks! - Carsten > > There are more things that could be done - it's only used by some of > the cond branches, the others are unchanged. But "publish early and > often", so here it is. > > I will append the changes as a diff, since I can't push to the org > repository ("fatal: The remote end hung up unexpectedly") > > Tom Breton (Tehom) > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten