From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: [Accepted] org-export-preprocess-string: Use backend var Date: Sat, 19 Mar 2011 09:29:27 -0400 Message-ID: <87lj0bfdc8.fsf@fastmail.fm> References: <8162sgx8l7.fsf@gmail.com> <20110228112050.0F5D86A2C@myhost.localdomain> <81vd0472e9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=53648 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0wDi-0006Lw-Pz for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 09:29:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0wDh-0007eQ-A3 for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 09:29:30 -0400 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:42509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0wDh-0007eI-0g for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 09:29:29 -0400 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id 5E7DC209BC for ; Sat, 19 Mar 2011 09:29:28 -0400 (EDT) Received: from archeee (67-197-63-212.rh2.dyn.cm.comporium.net [67.197.63.212]) by mail.messagingengine.com (Postfix) with ESMTPSA id 2007B40034B for ; Sat, 19 Mar 2011 09:29:28 -0400 (EDT) In-Reply-To: <81vd0472e9.fsf@gmail.com> (Jambunathan K.'s message of "Mon, 28 Feb 2011 18:16:22 +0530") 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: emacs-orgmode@gnu.org Jambunathan K writes: > Bastien > >>> + ;; Backend-specific preprocessing >>> + (let* ((backend-name (symbol-name backend)) >>> + (f (intern (format "org-export-%s-preprocess" backend-name)))) >>> + (require (intern (concat "org-" backend-name)) nil) >>> + (funcall f parameters)) > > A few words of explanation from my side. > > Summary: Facilitate transparent plugging-in of per-backend > pre-processing logic to the org exporter. > > Jambunathan K. > This patch (0135cb9c) breaks Wes Hardaker's generic export (in contrib). Since the backend is nil, the following line causes org-export to try to require org-nil: (require (intern (concat "org-" backend-name)) nil) --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (file-error "Cannot open load file" "org-nil") require(org-nil nil) --8<---------------cut here---------------end--------------->8--- I ask because even though org-export-generic.el is a contributed package, an option to call it is hard-coded into org-export: --8<---------------cut here---------------start------------->8--- \[g] export using Wes Hardaker's generic exporter --8<---------------cut here---------------end--------------->8--- Best, Matt