From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 9JJDJrZLfWAHcQAAgWs5BA (envelope-from ) for ; Mon, 19 Apr 2021 11:21:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gC2lILZLfWA/FwAAbx9fmQ (envelope-from ) for ; Mon, 19 Apr 2021 09:21:58 +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 F1CFC237CF for ; Mon, 19 Apr 2021 11:21:57 +0200 (CEST) Received: from localhost ([::1]:41094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYQ6N-0001V2-Uz for larch@yhetil.org; Mon, 19 Apr 2021 05:21:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYQ40-0000Uz-Bi for emacs-orgmode@gnu.org; Mon, 19 Apr 2021 05:19:28 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:49101) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYQ3y-0006FP-5d for emacs-orgmode@gnu.org; Mon, 19 Apr 2021 05:19:27 -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 relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 10229FF814; Mon, 19 Apr 2021 09:19:22 +0000 (UTC) From: Nicolas Goaziou To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Subject: Re: [PATCH] Startup option to separate macros arguments with an alternative string References: <87blchl4id.fsf@posteo.net> Mail-Followup-To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= , orgmode Date: Mon, 19 Apr 2021 11:19:21 +0200 In-Reply-To: <87blchl4id.fsf@posteo.net> ("Juan Manuel =?utf-8?Q?Mac=C3=AD?= =?utf-8?Q?as=22's?= message of "Thu, 18 Feb 2021 17:33:46 +0100") Message-ID: <87o8ead42u.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.199; envelope-from=mail@nicolasgoaziou.fr; helo=relay9-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_H2=-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: 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=1618824118; 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=3cdgIrr84ssRHRc6z9V+PyS1bmHN2dXB/gvWGaLvYvI=; b=t+b6wmP1++aMf6QPDqCCvOaR45gUFCcZEgrE+OspQIHozHqL6W4+y2iwluDwnEDrOTVI+t wVspzs6kT0yNCMa0XYVi/BRmoIJ/ytgB/YyVVYbY3vwBfwieYmKvi56IDsxXg9yxYZ6q// qHKOJn4zyl/sog/ejyPY5vwVHhpV/H7jRP7QMkltgpslxX6BcWz+sZyQkN+Hzkd73T/toj cFvb2tSbfLEaC8xmpqSjDu4h9ZCNK6WpLHSCxx0xviHoC57TOGcxVwSD98i9sH4nYxVPz7 pI+ymmXpdQv7GZKxPz8O/NoRWQxzNpIXNF5/hMeW6/TJbHkrYEiZuU42p6WAFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618824118; a=rsa-sha256; cv=none; b=kq6/r1pV+lQiK0nwLc7Tn5+QicEx7bStUIeZe/pGMn4Llnh/h5RV/3Tvpd1DArtZ7533lZ Mep0qsL3Ncfu4jshyhBbZvShjLCUg+VsclbPPiQfQsCu2CYoGfohuK0OTVSQ2bYwmFEv6z WxxIdxJRBhv7z+LN7urNb9dqjsznDmKnk0dOwwoaOvSkpj7hPdtzostoZVo0T+DfcFnmlp 4p0jmmxRFLSu9RZ2/SKy+vlQVGHCaVvag7+M2AahD+SxxSjZSmtEnxhh/XankpOEiYupHi pM7UOMOUgkVd7ifu70AK9l2biYPHJzDU2ZSQORCGBiyIH5MRzISe9pEg6hH5hQ== 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.44 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: F1CFC237CF X-Spam-Score: -2.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: Xsm+bwxCrLBN Hello, Juan Manuel Mac=C3=ADas writes: > I would like to propose this (possible) patch. > > With `#+STARTUP: macro-arg-sep-other' the macros arguments can be > separated by a string other than comma, whose value is defined in > `org-macro-arg-sep-other' (by default it is "'@"). Even though Org syntax partly is, I don't think parameterizable syntax is a way to go. I'd rather have less variables controlling it. (I'm looking at you `org-list-allow-alphabetical', and `org-plain-list-ordered-item-terminator'.) That being said, we can discuss syntax that is not depending upon some variable. For example macro names are written with a limited set of characters (alphanumeric, dash, underscore). We might allow the optional argument separator to be located right before the opening parenthesis, e.g., {{{macroname@(latin@Lorem ipsum dolor sit amet, ...)}}} {{{macroname|(latin|Lorem ipsum dolor sit amet, ...)}}} But see below. > Rationale for this patch: There are many contexts where the comma charact= er can be > inappropriate as an argument separator, since it has to be escaped > many times. That's true. But I wonder if you're hitting a limit of replacement macros use case. IMO, macros are good for short text. For bigger ones, you may want to use some Babel code, in the language of your choice. WDYT? Regards, --=20 Nicolas Goaziou