From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Andreas Leha <andreas.leha@med.uni-goettingen.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Block level specification for tex code html export method
Date: Sat, 05 Sep 2015 10:58:54 +0200 [thread overview]
Message-ID: <87h9n9jl81.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <oluh9namhb8.fsf@med.uni-goettingen.de> (Andreas Leha's message of "Fri, 04 Sep 2015 14:42:51 +0100")
Andreas Leha <andreas.leha@med.uni-goettingen.de> 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,
prev parent reply other threads:[~2015-09-05 8:57 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-10 8:11 Block level specification for tex code html export method Haochen Xie
2015-08-10 22:56 ` Andreas Leha
2015-08-11 8:47 ` Haochen Xie
2015-08-11 8:53 ` Fabrice Popineau
2015-08-11 16:24 ` Haochen Xie
2015-08-12 8:50 ` Andreas Leha
2015-08-12 12:51 ` Haochen Xie
2015-08-12 13:40 ` Andreas Leha
2015-09-03 11:42 ` Alan Schmitt
2015-09-03 12:30 ` Andreas Leha
2015-09-03 13:03 ` Haochen Xie
2015-09-03 20:39 ` Andreas Leha
2015-09-03 20:33 ` Eric S Fraga
2015-09-03 21:11 ` Andreas Leha
2015-09-03 21:38 ` Nicolas Goaziou
2015-09-04 6:15 ` Eric S Fraga
2015-09-04 6:23 ` Haochen Xie
2015-09-04 7:07 ` Eric S Fraga
2015-09-04 7:10 ` Alan Schmitt
2015-09-04 12:08 ` Andreas Leha
2015-09-04 12:48 ` Nicolas Goaziou
2015-09-04 13:42 ` Andreas Leha
2015-09-05 8:58 ` Nicolas Goaziou [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h9n9jl81.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=andreas.leha@med.uni-goettingen.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).