From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0r.migadu.com with LMTPS id wJS+BdknjWCyLwEALuJCtg (envelope-from ) for ; Sat, 01 May 2021 12:05:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cCpfAdknjWCXFgAAbx9fmQ (envelope-from ) for ; Sat, 01 May 2021 10:05:13 +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 5AAD0F54A for ; Sat, 1 May 2021 12:05:12 +0200 (CEST) Received: from localhost ([::1]:47874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcmUp-0006qy-9N for larch@yhetil.org; Sat, 01 May 2021 06:05:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcmU8-0006qq-QA for emacs-orgmode@gnu.org; Sat, 01 May 2021 06:04:29 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:52893) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcmU6-0000om-IU; Sat, 01 May 2021 06:04:28 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 89A6A20004; Sat, 1 May 2021 10:04:22 +0000 (UTC) From: Nicolas Goaziou To: Bastien Subject: Re: [PATCH] Possibility of using alternative separators in macros References: <87wnsjx5rs.fsf@posteo.net> <87o8duyhxr.fsf@bzg.fr> Mail-Followup-To: Bastien , Juan Manuel =?utf-8?Q?Mac=C3=ADas?= , orgmode Date: Sat, 01 May 2021 12:04:21 +0200 In-Reply-To: <87o8duyhxr.fsf@bzg.fr> (Bastien's message of "Sat, 01 May 2021 10:30:40 +0200") Message-ID: <87sg36u5wa.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.183.200; envelope-from=mail@nicolasgoaziou.fr; helo=relay7-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , Cc: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= , orgmode 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=1619863512; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=NM0Yvl3Xw8P1stzFnqiGW/+fxPJddORTRRzaC/P+g28=; b=AVfl6YfAoxCGzph8I7//PmBKnQrJd7P/hRXmNKaFDcGaZzZgGWykV4GmMRFt+P/XpAOQEL LogRaiMEud9+N46BhqxWXAsM5o6vNeu9oeCrmwY1hhdkwGUS8C3CUCSNs9qRF2q+iXWxCA YyjzxJKebd58KsRNvqk+VjJk+ELaR4wxKOV6CNSTuQHzm3UUdTOnR0S43xDHPADZcUZmRt sf5CUoV7nCd22ObxnhbLQq+hYwvDTMlYOEAyTG2sWAUXfPR/nJ9cIRcSlYK5x5CeSRm8vO IffCrYkBJn+Vb/oU1eQ8cEwDTtHRli+hLLMZfxO/l+CDkHUIsdvqSPq2QxOS/A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619863512; a=rsa-sha256; cv=none; b=SxnAJxbIDH++DONlP6ilYCE0TEhddwaxp8glHKMB6boAsyhAPrAl/LXmN1BkYPY6G1Lnyc HyWmfsrctP450RIFD9KXzXQmbqvg0nRBiV6DRhJk29IgpP88I3B7WwlclTyEf4VdkKHWqm PTQ/jnaH8ciMfGLMNGZJzy8lg3N0SH5yVp4cCcH21lj96LMJgFMpOqsVB9+gFYHJeRnqJb 1jKhYETWvd2522cROfQVRz1YUeCvIebbvte6RExzpFDgHE8UgGzy6lJekb0HdZzIh+CsSQ ZNhN+vhQ7BLxbRTNoI4ge4YRmxpZubIYMM35YtbZgol08S/5Ytm8esb6ny49Vg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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: -2.46 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 5AAD0F54A X-Spam-Score: -2.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: yaOCYsapTXQ1 Hello, Bastien writes: > thank you for the patch. I understand the general idea, but I think > we should be careful not to overload the macro syntax - escaping the > coma seems okay to me. I'm closing this suggestion. > > I'm cc'ing Nicolas: if he thinks it's a useful addition, I won't of > course insist on rejecting it. This is a followup to a previous discussion in this mailing list, in which Juan Manuel explained his use-case for a different argument separator in macros. I noticed then that there was an opening for a backward compatible syntax extension for it. As I was also not certain it would be a good idea overall, I suggested him to start a new, more visible, thread with the proposal, and collect feedback. So, maybe it is a bit early to close it. BTW, I would like to amend the proposed syntax, so as to limit friction with the rest of Org. What would be more reasonable is the following: {{{macroname=C2=B7(...)}}} where =C2=B7 is either nothing or a _single_ printable non-alphanumeric non-space non-parenthesis character that isn't already meaningful in Org. For example, if for some reason, we limit ourselves to ASCII characters only, the set of allowed separators would be: ! % & , ; ? ` So, again, I'm not saying we should do this. TBH, I'm not convinced by the idea of duplicate syntax (comma-escaping and alternate characters) for the same thing. But hard-core macro users may have a word to say about it. WDYT? Regards, --=20 Nicolas Goaziou