From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brett Viren Subject: Re: Overriding org-html-headline or other export functions? Date: Mon, 29 May 2017 15:14:32 -0400 Message-ID: <86lgpf1nmv.fsf@bnl.gov> References: <8637bn3l9o.fsf@bnl.gov> <87d1ar4inq.fsf@jane> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFQ7k-0004bI-Hx for emacs-orgmode@gnu.org; Mon, 29 May 2017 15:14:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFQ7f-00042W-LB for emacs-orgmode@gnu.org; Mon, 29 May 2017 15:14:40 -0400 Received: from smtpgw.bnl.gov ([2620:10a:0:3::30]:40578 helo=smtpout3.bnl.gov) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFQ7f-00042E-FV for emacs-orgmode@gnu.org; Mon, 29 May 2017 15:14:35 -0400 In-Reply-To: <87d1ar4inq.fsf@jane> (Marcin Borkowski's message of "Mon, 29 May 2017 20:33:45 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Marcin Borkowski Cc: "emacs-orgmode@gnu.org" Marcin Borkowski writes: > It's been a while since I did that, but AFAIR deriving a new, slightly > midified backend may be exactly what you want, since you seem to need to > modify just one of the exporter functions. Right, by my concern is I'm copy-pasting a large function just to change basically one line. I understand that instead of simply stepping on org-* function namespace with my copy, I can rename my copy and make a derived exporter with my modified function registered as a filter. But that doesn't get away from now having a chunk of code that is at risk of diverging away as Org's original develops further. -Brett.