From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aB1WC4BygWDsOAAAgWs5BA (envelope-from ) for ; Thu, 22 Apr 2021 14:56:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aI0IB4BygWBpTgAA1q6Kng (envelope-from ) for ; Thu, 22 Apr 2021 12:56:32 +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 31158178BB for ; Thu, 22 Apr 2021 14:56:31 +0200 (CEST) Received: from localhost ([::1]:47220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZYse-00032E-I8 for larch@yhetil.org; Thu, 22 Apr 2021 08:56:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZYrb-000328-M8 for emacs-orgmode@gnu.org; Thu, 22 Apr 2021 08:55:23 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:33565) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZYrZ-0002Kw-Ec for emacs-orgmode@gnu.org; Thu, 22 Apr 2021 08:55:23 -0400 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay12.mail.gandi.net (Postfix) with ESMTPSA id DD5C7200004; Thu, 22 Apr 2021 12:55:17 +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> <87o8ead42u.fsf@nicolasgoaziou.fr> <875z0fzkww.fsf@posteo.net> Mail-Followup-To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= , orgmode Date: Thu, 22 Apr 2021 14:55:16 +0200 In-Reply-To: <875z0fzkww.fsf@posteo.net> ("Juan Manuel =?utf-8?Q?Mac=C3=AD?= =?utf-8?Q?as=22's?= message of "Wed, 21 Apr 2021 16:01:35 +0000") Message-ID: <87v98e4gy3.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.178.232; envelope-from=mail@nicolasgoaziou.fr; helo=relay12.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=1619096191; 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=AKBfg3oRvjLOlD0VzAnd0VqTW+C3xIcKxj0jYtLkjbo=; b=QgvegvBFc8tHX9ZglfseKcFeD+bW+WfzlvE9gFeqvRRmmHTeOVYlPQmOjhWdmwXpGIdG5S 7vYO4l5KvUVeshhfMEkQOIM2an6yTWT6NM2uogS4XaK+Sbs2s1jXkTAvvx0PbDFssjrARo PxyHmXM5M0m5jWIjexESCdiJQaemYy0UWodjKrQIs6kTotTt/w1mx3vZZk5T2tkpbyPb2+ B2p9pGB9MHg5h448mS7M0X/d+/W41hyJhVrtw0F6AgjmmnVSIluFcv/M0LFhN58nb2XZ42 k7EECL7MyCJQ6rVFgcPlZvArd065aC1y0l+GvXVjzzgB0uuCpGsRPp603KaMEQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619096191; a=rsa-sha256; cv=none; b=ZksqooEwcP0izWyyTrhfA+Z7fk/gQ6yGxr7FEnMY7nMK1V01dMHFWFRJra4H6yvfwI4mQA HsVtL2ljPQA8KPdb95nGXUY2ajOYONOdn1fRHvFFWatteSsoWprj8wIVlIsuhL2/QTSL3A 7SgodBbSO/lhu2geWSL7//3JK0YSl7wUNW48J9LNGZzt7yf3hFBtKmMIy6B4ZriQDecLNp f/M+iJI/SxbCcUiVd/M62J/8YKMLOCY/85dGIV7xUYtyUzy4+dzvBMN8r2iHv9C/IR8JCE UblIsUDDTJsi7QOBpIK94nVKmLJgwFes4Xorz0874nHZ1DT/7EVTiO0U4ZlOdA== ARC-Authentication-Results: i=1; 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-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: 31158178BB X-Spam-Score: -2.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6CQ3AVC5Fr5B Hello, Juan Manuel Mac=C3=ADas writes: > I think it's a very interesting idea. I've made this sketch (at least > as a proof of concept), what do you think of the approach? I think there are a few things to fix. For example, the separator may need to be stored in the properties of the macro. Otherwise, interpreting data back would return to comma-separated arguments, which may not be desirable, although correct. Also, I would limit separator to a single character. You also need to exclude space characters. > Example (and code below): > > #+macro: foo (eval (format "%s and %s" $1 $2)) > > {{{foo(xxx,zzz\, yyy)}}} > > {{{foo|(xxx|zzz, aaa)}}} > > {{{foo@(xxx@zzz, sss)}}} > > {{{foo|(xxx|zzz\| aaa)}}} > > {{{foo@(xxx@zzz\@ sss)}}} This change will need to be tested extensively in "test-org-element.el" and "test-org-macro.el". However, as a start, I suggest starting a new thread about a suggested change in the syntax, with a clear title, examples, and code. Then we can leave time for users to react to it. Do you want to take care of it? Regards, --=20 Nicolas Goaziou