From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id APRaBm31bWAphQEAgWs5BA (envelope-from ) for ; Wed, 07 Apr 2021 20:09:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wDExAG31bWCAAwAAB5/wlQ (envelope-from ) for ; Wed, 07 Apr 2021 18:09:49 +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 925B81A9CF for ; Wed, 7 Apr 2021 20:09:48 +0200 (CEST) Received: from localhost ([::1]:49846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUCcd-0008Ng-C8 for larch@yhetil.org; Wed, 07 Apr 2021 14:09:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUCS6-0000tx-AV for emacs-orgmode@gnu.org; Wed, 07 Apr 2021 13:58:54 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:50679) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUCS1-0007gm-E2 for emacs-orgmode@gnu.org; Wed, 07 Apr 2021 13:58:53 -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 CCE87FF809; Wed, 7 Apr 2021 17:58:44 +0000 (UTC) From: Nicolas Goaziou To: Tom Gillespie Subject: Re: Bug: inconsistent escaping of coderef regexp References: <877dlmhuu9.fsf@nicolasgoaziou.fr> <877dlhod94.fsf@nicolasgoaziou.fr> Mail-Followup-To: Tom Gillespie , emacs-orgmode Date: Wed, 07 Apr 2021 19:58:43 +0200 In-Reply-To: (Tom Gillespie's message of "Sun, 4 Apr 2021 22:22:32 -0700") Message-ID: <875z0ym0x8.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=1617818988; 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=JSgC76/h8L8nC0u+cxrnXbNYK5Gx48BwCcWI9CyxPvw=; b=fIxYRMzMMD0GWQn93kcstmDr9YMlwnNt9ccgWEdm3Ci1v8jWb1Td3FovDZqWphTPycDMNd wDYv+nEaCMiVAxkEuuuvW3e/25c5ZQwzkodM9PZcoyWJhrGxq/ILKfhoFBMSr1LZgt/WQV 5pCHOlRrHsB23fWwKigvP8CXOrUNikAbf1paJgcK2h69EJ0UHzpEtwhxdrd/AmjjNJSy4Q muVgYmVfJMguJAaH7V8lZBQE8gyuvPcD66Qe2QRoltg6Uw+7hM78waXCRlRZA57I2coY1k Cq2CIJNDgR+zJl/9rvCjt5S3ZGp+ocupTx5ta1OEk3jPR1cQ86Wq+cpCwTOhTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617818988; a=rsa-sha256; cv=none; b=IhSW3V1KJq0N1DcMiFO0Nis30+N4ll7L4UxYCrW95lgkPRj4VJ+Cu+XXtETJL+khBcDwoP lqKu79uEVJdI5soPmBV7oLgyh7DNZx+l8+A+Ek7QFWK3pfcA/3LDq5VOY2tsF3TUgQqxB/ tSHsu5jQkahwwqunZcG0g+xzG4pQI0EH5WFBlN2xCecnPlqYAnd0XxlE1uWXKYsLLfmMRU 4roxHS0ulvg2xK/O5nemH441rWfBquboqsgzWwIND9WvcpU+nf1F4w5whKwCWd00Gf8PB0 xTRj6nNCnqsxBohW95GsxmfS9LEa4YNtMq+oiMvpE30tB0Dow/X4HH/iLv8aCQ== 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: 925B81A9CF X-Spam-Score: -2.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: GGsr9V017YNb Hello, Tom Gillespie writes: > We can decouple them, so not an issue. The attached patch implements > the header arg equivalents of -r and -l without making any changes to the > existing switch behavior. This is already conflating the two. I'd like to solve the issue at hand without having header args interfere at all. This can happen later, after a discussion on the ML. >> 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. > > I did a first pass implementation and realized that allowing users to > specify coderef-regexp is a bad idea. The attached patch fixes the > divergent behavior of org-bable-tangle-single-block and provides a > standard way to specify a :coderef-prefix regexp so that empty > comments can be stripped. Would you mind answering my questions first? I still don't follow you about the coderef prefix/regexp. Regards, -- Nicolas Goaziou