From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id cNp8GhlGLmWGgwEAauVa8A:P1 (envelope-from ) for ; Tue, 17 Oct 2023 10:30:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cNp8GhlGLmWGgwEAauVa8A (envelope-from ) for ; Tue, 17 Oct 2023 10:30:17 +0200 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 3D83D4607E for ; Tue, 17 Oct 2023 10:30:17 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=axXGbDSY; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697531417; 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:dkim-signature; bh=O/mXUpGxsDMusfLG7PFhc1atqCma1I9zu/+4ZGj1RZE=; b=pPTT5ohJJEYWgRspzbvUIOL4Gi+RxNtEswRWlVyxRQu06s7XbKdBLYhmjwpbVnWtqeYcuT 3nw+2OeMa1FNxLQdBK363cz1+9vHwzsuRUVF6iAZ2BF7UVCroYB0PPf/U3f2hy3362Z6wj g3JbUMMYBiDzanqEmcYQmUG/5J/EePRaD3ITxzKtg4QWhQdUO5J/b6XSuqJ4hyMrs2xo43 3A5iTwV48+Hkl2iww5UaQJbp1cVLbdADDV10xIkfFNlJdc8NU+trs4u1BL2l4+onCkuw63 SIoNbRRlEeBTDcNPCOehHMBGOlMSWCazYPW3Fii7r/1FtcdCIbYCLL1eHtIntw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697531417; a=rsa-sha256; cv=none; b=R9tEDsQssT/5eKe66VHqF+VCWLgAvV8IhWhyxoVsqrW+tZifNrDH+iknHYZKaebX0vZFpU w9lsyb+t8McwD7X6qQyIMFrHDBnyHpomajWMMBwT4kh5b7jeVivy7nJhTUJQexEZ2bvoPC 9xzE5gRsqkQG5UpLOLdo02HHh+bw0pCs5yHz9tvYyOZmuR9vCnOHC6EoAwPH3aPbHUIQEk D5BU6GAK7am94ROEqlNYERhNy5fZ6LS+UudcE2dmw60y93aif/ExZuQloyWNkgmo1ZKXQx lfsmrACYzGotKzyzksyubMrIj8qANchxnwblo94K/Ac95xl8fBPnAimEExuDIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=axXGbDSY; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsfSL-0004QN-MY; Tue, 17 Oct 2023 04:29:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsfSJ-0004QC-9c for emacs-orgmode@gnu.org; Tue, 17 Oct 2023 04:29:35 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsfSB-0004oj-69 for emacs-orgmode@gnu.org; Tue, 17 Oct 2023 04:29:35 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9F049240103 for ; Tue, 17 Oct 2023 10:29:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1697531363; bh=0CbiTXocrFe9oZ3HselkzyqPoZSfSxkpDMHx+Pi6v84=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=axXGbDSYJ4qglye1qJWeYQlgccJsywL1YpCUbZbq1494QhNsec4Ro/KSwehqhn0vT 6XdkI0j+nDwnYl5ejg1R0AayhBNtPDnjn3qezeAbCGA03IzyjxVGC843KpfqEXd80D dWpdf7H6aKKuZeP4ewxHT4strtVbe1tN+EvfogL3oBQR5IXqXrR9HU1407btggYpDc 12WB09CX7mUf2t+Pc5YfnVoOkEweqUv+k9p9CR4mLMpXwFbQflVjNhGhXF8qE25FMP Ht/vvODEVfDUY1Hc7si5eJxHldgJlQ/D4DgiEpf6csNUUEl9d+gTHQ8BXS5gr1/lYX UvczjoyWj4wUw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S8nFt4PZqz9rxS; Tue, 17 Oct 2023 10:29:22 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: Escape :end: inside #+begin_example In-Reply-To: References: Date: Tue, 17 Oct 2023 08:31:07 +0000 Message-ID: <87sf69fy5w.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -6.36 X-Migadu-Queue-Id: 3D83D4607E X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -6.36 X-TUID: 2mrgY/2abqKf Max Nikulin writes: > is there a way to quote a drawer inside a literal example that resides > in another drawer? Leading comma ",:end:", unlike for ",* Heading" or > ",#+end_src", is not stripped on export or C-c ' (`org-edit-special') > > :drawer: > #+begin_src elisp > ":src: > %s > :end: > " > #+end_src > :end: AFAIK, no. We should fix this. >From a quick glance, we need to update `org-element--unescape-substring', `org-escape-code-in-region', `org-escape-code-in-string', `org-unescape-code-in-region', and `org-unescape-code-in-string'. Also, the manual, and org-syntax document. I see no obvious downside in additional escaping, except lesser blocks with ,:... lines. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at