From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SaQzDgtIamBk7AAAgWs5BA (envelope-from ) for ; Mon, 05 Apr 2021 01:13:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KB4/BwtIamAnQQAAB5/wlQ (envelope-from ) for ; Sun, 04 Apr 2021 23:13:15 +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 8521E126D7 for ; Mon, 5 Apr 2021 01:13:14 +0200 (CEST) Received: from localhost ([::1]:32788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTBvd-0004vT-CZ for larch@yhetil.org; Sun, 04 Apr 2021 19:13:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTBvA-0004vH-Ln for emacs-orgmode@gnu.org; Sun, 04 Apr 2021 19:12:44 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:51343) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTBv9-0000sq-4W for emacs-orgmode@gnu.org; Sun, 04 Apr 2021 19:12:44 -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 0CEB8FF803; Sun, 4 Apr 2021 23:12:39 +0000 (UTC) From: Nicolas Goaziou To: Tom Gillespie Subject: Re: Bug: inconsistent escaping of coderef regexp References: <877dlmhuu9.fsf@nicolasgoaziou.fr> Mail-Followup-To: Tom Gillespie , emacs-orgmode Date: Mon, 05 Apr 2021 01:12:39 +0200 In-Reply-To: (Tom Gillespie's message of "Sun, 4 Apr 2021 15:01:42 -0700") Message-ID: <877dlhod94.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: emacs-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=1617577994; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=vD1ge/Jgw+g9YctHGAOekrejiMYGi1HPER7M6a44urU=; b=pdaSQeqXEXwHH10DFbOH7zspTWl21ZaS5dYCHzbIQPkm52T9uLbvVryc2fxGGuWp6+3HoV B5SZZEmtv5tDD6DCtqKQg69gQl8ed7A+cX4Y0gLF1xlAF0lAVuXZ1OqurekTSwnE6BAO1K mV/01S0mFaAtPmo9y6QFTpfYVwwc++0xrG5PlLe21OhvTp9goOYZ/Jp+rAoQGA0m9iEtbl uNY1S7Vd6jcLeIm6EckYRrrILFLY7Cnlv0evtvs4zve70dKoeEGDv5CI5mxiTE7IF33kTi A3f1VT9cfJsfHARF4sPgpl6egCy5bbtFup+9Y8HLkcnO5udV01a+Yvyl+sZppA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617577994; a=rsa-sha256; cv=none; b=YreaxPf6ZnQir9AUaZlZChsuqpHtCGfnvuEp50f72KsybVMRQIVQaCfecAhoi/4FvHPsag IS7XkeHx8LQeW5Ngu/weImKRVA80GZ18PqqoprXZ03HvM1xxleDIH6rjzqVRhFqc5xd0I9 bJN7eBUWR7msHviaUi+CxoH6lBaFUjCZUWTWz5JkoZqn5qOF3c5dSRoH0Z48Jav2VAGz7x 8t3SFURSQ+xIUZryVICPHrhetcNcAHLPXTzeBb/28RUaW6xkjBjbNWAeoRWz2F/Xwxf0RO YPKxmA7sXxrrPiAkhxM7j2EVTQIDOVK9HqTZz5h1uOojt63/EmdzQAGHZK7Q6g== 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: -0.94 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: 8521E126D7 X-Spam-Score: -0.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: SEjFfHmREXU1 Hello, Tom Gillespie writes: > After a bit of investigation I understand the issue better now. > There are two problems here. One is an easy single line change, > the other is a deeper issue, which is that it is impossible for the > user to specify their own coderef regexp that can be used in both > cases. No matter what change we make we are likely to break > existing org files if users relied on one behavior and not the other. [...] > If we want a temporary fix, a patch is attached, but I would suggest > against changing the behavior right now and instead work toward > a new, more consistent system using header args. If possible, I'd like not to conflate current issue with switches deprecation, which needs to be discussed separately. What do you mean by "it is impossible for the user to specify their own coderef regexp that can be used in both cases"? In particular, what is a coderef regexp in this context? I know about coderef format, but I don't think users are supposed to provide a regexp here. Regards, -- Nicolas Goaziou