Hello,

"Charles C. Berry" <[email protected]> writes:

> 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"))
>
> * heading 1
>
> {{{n2()}}}
>
>
> * heading 2                                                :noexport:notever:
>
> {{{n2()}}}
>
> * heading 3
> {{{n2()}}}
>

What about simply removing macros in :noexport: trees from
a pre-processing-hook?

Regards,

-- 
Nicolas Goaziou

Reply via email to