emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* BUG: org-lint reports macros defined in org-export-global-macros as undefined
@ 2021-06-30  9:40 Michael Dauer
  2021-07-01 13:45 ` Timothy
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Dauer @ 2021-06-30  9:40 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 432 bytes --]

Hi,

I have a lot of global macros defined in org-export-global-macros. Wherever
they are used in my org files org-lint reports them as undefined.

It seems that org-lint just checks against org-macro-templates (collected
with (org-macro-initialize-templates)) and a few default macros.

I'm going to work around this with a temporary advice filter-return on
(org-macro-initialize-templates). Any better ideas or even a fix?

thx
m

[-- Attachment #2: Type: text/html, Size: 564 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BUG: org-lint reports macros defined in org-export-global-macros as undefined
  2021-06-30  9:40 BUG: org-lint reports macros defined in org-export-global-macros as undefined Michael Dauer
@ 2021-07-01 13:45 ` Timothy
  0 siblings, 0 replies; 2+ messages in thread
From: Timothy @ 2021-07-01 13:45 UTC (permalink / raw)
  To: Michael Dauer; +Cc: emacs-orgmode


Hi Michael,

> I have a lot of global macros defined in org-export-global-macros. Wherever
> they are used in my org files org-lint reports them as undefined.
>
> It seems that org-lint just checks against org-macro-templates (collected
> with (org-macro-initialize-templates)) and a few default macros.

Unfortunately I have yet to look at the internals of org-lint, so I
can't provide any particular insight, but this does seem like something
which should be supported.

Hopefully someone else will have time to look into this :)

--
Timothy


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-01 13:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-30  9:40 BUG: org-lint reports macros defined in org-export-global-macros as undefined Michael Dauer
2021-07-01 13:45 ` Timothy

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).