Re: BUG: org-lint false missing arguments for macro with optional arguments

2021-08-12 Thread Maxim Nikulin
On 30/06/2021 20:30, Michael Dauer wrote: I've the following: (defun ct-action-plan (&optional up recently-done) ... (push '("action_plan" . "(eval (ct-action-plan $1 $2))") org-export-global-macros) Didn't you report that adding macros directly to `org-export-global-macros' are not supporte

Re: BUG: org-lint false missing arguments for macro with optional arguments

2021-08-12 Thread Ihor Radchenko
Michael Dauer writes: > If I did not miss it there is no way to specify arguments as optional for a > macro definition. You are right. > Is this a bug? Any ideas for a work-around to avoid confusion for my users. AFAIU it is not a bug, but rather a missing feature. Best, Ihor

BUG: org-lint false missing arguments for macro with optional arguments

2021-06-30 Thread Michael Dauer
Hi, If I did not miss it there is no way to specify arguments as optional for a macro definition. I've the following: (defun ct-action-plan (&optional up recently-done) ... (push '("action_plan" . "(eval (ct-action-plan $1 $2))") org-export-global-macros) The arguments of the function are specif