emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH] Possibility of using alternative separators in macros


From: Maxim Nikulin
Subject: Re: [PATCH] Possibility of using alternative separators in macros
Date: Tue, 18 May 2021 00:03:12 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 17/05/2021 02:21, Christian Moe wrote:
Maxim Nikulin writes:
On 03/05/2021 04:08, Christian Moe wrote:
[snip]
#+MACRO: allargshack (eval (format "- /%s/ :: %s" $1 (mapconcat
#'identity _ ",")))

{{{allargshack(one, two, three)}}}

I do not know if Eric can swap order of arguments of his credits
macro. Extracting namely last argument requires a bit more lisp code.

Yes, I didn't think that far. This would provide a comprehensive
backwards-compatible solution to the comma-escaping problem, though
perhaps not the most newbie-friendly one. It would also make macros more
flexible and powerful in the bargain (I'm sure people will think of
other uses for this than commas).

I agree that it would abuse arguments syntax, but I expect that namely newbies would not bother since it would "just work":

#+MACRO definition  - $1 ::$_

{{{definition(one, two, three}}}

It is more experienced users who may be confused why it works.




reply via email to

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