From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Block level specification for tex code html export method Date: Sat, 05 Sep 2015 10:58:54 +0200 Message-ID: <87h9n9jl81.fsf@nicolasgoaziou.fr> References: <87egifp7jb.fsf@ucl.ac.uk> <87h9nbmbe1.fsf@nicolasgoaziou.fr> <87bndimjtg.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZY9Hl-0003rW-1R for emacs-orgmode@gnu.org; Sat, 05 Sep 2015 04:57:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZY9Hj-0003JR-Vi for emacs-orgmode@gnu.org; Sat, 05 Sep 2015 04:57:20 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:40245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZY9Hj-0003JN-P8 for emacs-orgmode@gnu.org; Sat, 05 Sep 2015 04:57:19 -0400 In-Reply-To: (Andreas Leha's message of "Fri, 04 Sep 2015 14:42:51 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Leha Cc: emacs-orgmode@gnu.org Andreas Leha writes: > The same protection as in the previous version seems to take effect > here: > > (defmacro by-backend (&rest body) > `(case (if (boundp 'org-export-current-backend) org-export-current-backend nil) ,@body)) > > Are there any issues with this? Not really, but (if (boundp 'org-export-current-backend) org-export-current-backend nil) -> (org-bound-and-true-p org-export-current-backend) It should also be documented. In particular, outside any export process, you need to use ((nil) ...) or (t ...). > Could you elaborate why that might be better? Including it as a macro > like this has the up-side to be more general. Of course. I'm just pointing out that /if/ its only use is for :file directive, it might be better to include it there. Regards,