From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mTQHA4GjomDd9QAAgWs5BA (envelope-from ) for ; Mon, 17 May 2021 19:10:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qCS9OYCjomCEQwAA1q6Kng (envelope-from ) for ; Mon, 17 May 2021 17:10:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9C4AE23B75 for ; Mon, 17 May 2021 19:10:24 +0200 (CEST) Received: from localhost ([::1]:41296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ligl5-00047F-Jg for larch@yhetil.org; Mon, 17 May 2021 13:10:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ligeP-0000JJ-NH for emacs-orgmode@gnu.org; Mon, 17 May 2021 13:03:29 -0400 Received: from ciao.gmane.io ([116.202.254.214]:50498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ligeM-0002Ad-Bs for emacs-orgmode@gnu.org; Mon, 17 May 2021 13:03:29 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ligeF-0003HB-A4 for emacs-orgmode@gnu.org; Mon, 17 May 2021 19:03:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Maxim Nikulin Subject: Re: [PATCH] Possibility of using alternative separators in macros Date: Tue, 18 May 2021 00:03:12 +0700 Message-ID: References: <87wnsjx5rs.fsf@posteo.net> <87o8duyhxr.fsf@bzg.fr> <87sg36u5wa.fsf@nicolasgoaziou.fr> <87k0oinmy2.fsf@posteo.net> <87h7jkdesz.fsf@christianmoe.com> <87o8dascw4.fsf@christianmoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 In-Reply-To: <87o8dascw4.fsf@christianmoe.com> Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621271424; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=SIxvsiG59bP7Y10TpAkssyAj79ZUlKgJ00PxFHPrQCI=; b=D6K+39jNcIq4M/69kBi9A5+BKSmdFGeC+Aa8IsbygVA7FacZUll2rU3VTC7cHBjwVjzaxs ah/G2a0nEnhwPb1Hilzy74SSUKcLBSy80xfqb/H5wp9D8Nk39wHzUqlNkCUZPlK8TJgwyg 10wShPjreTjSCpsRdacEdAd4zOAFaCyeDZXLlCZ0WwWHWZOqE4Qqzdw8g7A5UkSUjUJsa+ rBoWVA9MA/PoanxjBlG+ROICMSveXdpo+EECTKwcf0+jMzks/HlNNgrp/j9Thk8Gvs9KeL ycfvqb/W4uPuxkHp4COTugJKWK5oYRSRXQ4wDJ1urRwMeBLmT/R5wMDRg9zZxg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621271424; a=rsa-sha256; cv=none; b=Zl7Hr/qfW8FPPj+ssRYNVf9CWw65tc8bs51t8ATPQg+Sl/5qw1xZzy/uqT55SpjFifosMg xtOm3w5anvy/gitK4qT/yhF2upa2fjzd6fR4f6Zv1Ul2C2XwUM/S+4D2mXqjLCIzhWw2R5 KQeR7X2bkc+oLOARF1gD+VOyekZjm0dFWiTbtD87VQqV3U/ByTq1eWxoqibLqxSpltM3Vj 7F5TbspEKxgTFsRnVehQCoNSEvndBiEV19/1CWZOK2FP+8Fku/6VS+yCZi0tfe3A9sx7wt yjoRSib95NbGoGHwQ3ohDmoO5daOj1KosIgh+nbt0VEHFYcW/nqiRVO2Eb4gJw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.34 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 9C4AE23B75 X-Spam-Score: -0.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: q34OAt4z9C1j 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.