emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] order of evaluation upon export: macros are evaluated too soon


From: Eric S Fraga
Subject: Re: [O] order of evaluation upon export: macros are evaluated too soon
Date: Thu, 08 Jun 2017 12:39:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

On Wednesday,  7 Jun 2017 at 18:43, Charles C. Berry wrote:

[...]

> Maybe implement somethng like this:
>
> #+BEGIN_SRC emacs-lisp
>    (defun n-noexport (x y)
>      (let ((tags (nth 5 (org-heading-components))))
>        (unless (and tags
>                  (string-match ":noexport:" tags))
>       (org-macro--counter-increment x y))))
> #+END_SRC
>
> #+MACRO: n2 (eval (n-noexport "$1" "$2"))

This is really straightforward and solves my problem perfectly.  Thank
you!

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.7-531-g530113

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]