From: Maxim Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Possibility of using alternative separators in macros
Date: Tue, 18 May 2021 00:03:12 +0700 [thread overview]
Message-ID: <s7u7kh$bm8$1@ciao.gmane.io> (raw)
In-Reply-To: <87o8dascw4.fsf@christianmoe.com>
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.
next prev parent reply other threads:[~2021-05-17 17:10 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-30 13:26 [PATCH] Possibility of using alternative separators in macros Juan Manuel Macías
2021-05-01 8:30 ` Bastien
2021-05-01 10:04 ` Nicolas Goaziou
2021-05-01 10:17 ` Bastien
2021-05-01 10:18 ` Bastien
2021-05-01 21:50 ` Juan Manuel Macías
2021-05-02 21:08 ` Christian Moe
2021-05-12 11:49 ` Maxim Nikulin
2021-05-16 19:21 ` Christian Moe
2021-05-17 17:03 ` Maxim Nikulin [this message]
2021-05-17 18:51 ` Christian Moe
2021-05-02 12:13 ` Eric S Fraga
2021-05-11 11:01 ` Eric S Fraga
2021-05-11 16:12 ` Juan Manuel Macías
[not found] ` <87im3prvz8.fsf@ucl.ac.uk>
2021-05-11 18:25 ` Juan Manuel Macías
2021-05-15 13:29 ` Bastien
2021-05-15 20:14 ` Juan Manuel Macías
2021-05-15 20:25 ` Bastien
2021-05-15 21:05 ` Juan Manuel Macías
2021-05-16 12:17 ` Bastien
2021-05-16 16:48 ` Maxim Nikulin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='s7u7kh$bm8$1@ciao.gmane.io' \
--to=manikulin@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).