From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: TIL about use of eval in user Org macros.. Documentation?
Date: Mon, 25 Dec 2017 11:26:06 +0100 [thread overview]
Message-ID: <87tvwf14u9.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAFyQvY1htTzxL1OxVN-7zdaf-Ta4WV_Ja-1k3mp2vUunBbNNYg@mail.gmail.com> (Kaushal Modi's message of "Wed, 20 Dec 2017 22:30:16 +0000")
Hello,
Kaushal Modi <kaushal.modi@gmail.com> writes:
> #+MACRO: sec (eval (concat "<span class=\"section-num\">" (number-to-string
> (org-macro--counter-increment $1 $2)) "</span>"))
Or,
#+MACRO: sec @@html:<span class="section-num">@@{{{n($1,$2)}}}@@html:</span>@@
> 1. Can you please document the use of eval form in Org macro definitions in
> the Org manual(.org)? Its awesome wasn't evident to me until I read that
> commit message.
Done.
Regards,
--
Nicolas Goaziou
prev parent reply other threads:[~2017-12-25 10:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-20 22:30 TIL about use of eval in user Org macros.. Documentation? Kaushal Modi
2017-12-21 9:45 ` Rasmus
2017-12-22 20:10 ` Samuel Wales
2017-12-25 10:26 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tvwf14u9.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=kaushal.modi@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.