From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8AqoL27M5GKnBAAAbAwnHQ (envelope-from ) for ; Sat, 30 Jul 2022 08:15:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wNyALm7M5GJWOAAAG6o9tA (envelope-from ) for ; Sat, 30 Jul 2022 08:15:10 +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 7046E258C0 for ; Sat, 30 Jul 2022 08:15:10 +0200 (CEST) Received: from localhost ([::1]:50634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHfkj-0004JC-5w for larch@yhetil.org; Sat, 30 Jul 2022 02:15:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHfjw-0004J3-VQ for emacs-orgmode@gnu.org; Sat, 30 Jul 2022 02:14:21 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:53198) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHfjq-0003S2-5W for emacs-orgmode@gnu.org; Sat, 30 Jul 2022 02:14:20 -0400 Received: by mail-pj1-x1035.google.com with SMTP id ha11so6498416pjb.2 for ; Fri, 29 Jul 2022 23:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=Mc0wa/gRTpZcO5yem2qW3nnvSrdxcCrnUVmuVmlU89I=; b=kG/xJPB76NejKjtUtvf5nyXMLEgPtkKze57PkMU1+JeTxWTZ/TtZyqmdIGHzNWvKtc V03cctlHC8mEiyXC9nhiwgCjTIIi1U/pSrogkIRXyfDfFlu+6a6wXYdemjaA6sM1T7AU TrxjHrJG64vIoPtzMf5nsFetec0sF+aZUBulVaOA2bjJV24qncHe4RZPNr5/OBrY34pu 2OGsBw4IIiukPtqDw6G+Ve/Gv0A0KkbZ2OKwxwF7J0KOm0PrpBcGtjQ4By3UHGqoFU90 4kSv9EBAaveKBDyS5485+TlEwK64SeDvRYwi54dQ2hSPKhUgdA+WaFzIllnyZAi8N4Tc ZgPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=Mc0wa/gRTpZcO5yem2qW3nnvSrdxcCrnUVmuVmlU89I=; b=RYc9TAjN6sD3OxOK1c3hfzUatcMOpCMtuCgPFi6OqUj25tvLteSAQYVIx34zMYLR4Q rnP0IO4ITYFt1YuUa1PHbUezkUfslHr2+Jd8jvuTSE/V3e2R0UrunMhLPPtxE7JegHKX w9PGxsGv8HhFdqQ3GzKXEHx94ymO6m0x74Erz/sSD/58OSgN5sWI2uhse2Yo1/u+hQUk Mti8XNGt/r3AYWHsiustls2vngibhNWElM0ioPPhx9VmeL06kDCQ39mYvoU/RB1ZGeeZ IQjkPV9Zr5y0aSYeiKy/umjJQzNuzNjXZQdvCURPID49NBngIspYWKqjWrDguwSNaEA+ s4nw== X-Gm-Message-State: ACgBeo3oU0rhYhXqM1SwSUBgeGa0pg8iSPFr5yIgTWcHzAY128hQni9E OH+fPQ9HSjpn35+e0Q0OWpo= X-Google-Smtp-Source: AA6agR4ADOVBiNi/WtHgSPZSJmmUbFfW2EUHWaSqBfNcM9L0FiqxTRXIkviaX6Sd4h7/aoPjxknKjg== X-Received: by 2002:a17:90b:2786:b0:1f2:50ae:4241 with SMTP id pw6-20020a17090b278600b001f250ae4241mr8298185pjb.104.1659161652644; Fri, 29 Jul 2022 23:14:12 -0700 (PDT) Received: from localhost ([1.83.155.1]) by smtp.gmail.com with ESMTPSA id d12-20020a170903230c00b0016d6d1b610fsm4839828plh.98.2022.07.29.23.14.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jul 2022 23:14:12 -0700 (PDT) From: Ihor Radchenko To: Uwe Brauer Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Re: the comment environment does not work for checkboxes In-Reply-To: <87bkt7kumc.fsf@mat.ucm.es> References: <87a68s5vv9.fsf@mat.ucm.es> <87wnbw9wqm.fsf@web.de> <87y1wc3ruw.fsf@mat.ucm.es> <87tu6ztbjg.fsf@localhost> <87czdni2e0.fsf@mat.ucm.es> <87k07vta9f.fsf@localhost> <87bkt7kumc.fsf@mat.ucm.es> Date: Sat, 30 Jul 2022 14:15:13 +0800 Message-ID: <87h72zt9ce.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1035.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659161710; 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:dkim-signature; bh=Mc0wa/gRTpZcO5yem2qW3nnvSrdxcCrnUVmuVmlU89I=; b=VycqV3xaKkVtP7ytRvaRxTHr9cFg+64ulPpx2QWpi5otDHH7kOekWRJkaRhtWkzmlNYz2u XflLaTBvSQ8ACMPDH7spp3uiYR/YdWIIrgRbshWSfxtuuX3aklLBl3swBwNoL3TkHI5AYM 2P51WxXcc/TqAISBlR2WbbIwRGZOctd9aT43gN+gU51hjBIY/nrDVEZgtlmRueKB/oio9R MxnNRR4TOKGuDTFfexV7LbdU47oBvh5/FfZKtYcWyoO1Wi1NsY4nCRKEyzU6wErccvkBtm PrJ/ArGBAiqaIZLVm2MwL7Pt4OuFha24IIHaQdII4mQQDWFoZ1yjPRhhELwZGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659161710; a=rsa-sha256; cv=none; b=MjweKljXrFQHKngezjZHEymsbU9hPyHYejNxneIFBSAA2bTrTa5SXBeGAuC5tXUjXX1qND Rz4lEEdrTz74McgLRWu+H84FQiQopp92eXzBcLd0EkiXVenjX+pXsqOhjCMuoNVMkol4cl KdlMUNYxxm7jr3lCghTXQZgUyLBlwULEE+IX04YS2UyKkwX1F7Zs17yvZOMeewonry3QRd cXbm0BiFF0zpBwR7Pk5S33+Ul11XlxUUWLeT40tIrWHXnaeFwxcQrwpsNwwljlRJUkwhkv 2zUDNLrJYfdyXPFIKvhy+0H0xuG2DkPJ26Igrrqz6i7aHdMp+gImtMiMkSq2Kw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="kG/xJPB7"; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -5.23 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="kG/xJPB7"; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 7046E258C0 X-Spam-Score: -5.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: qgFf4/a4opE6 Uwe Brauer writes: >> Uwe Brauer writes: > >> I am sorry, but I am not familiar with the feature you are referring to. > > I applied your patch and did a bit of testing: works flawlessly. Thanks! >> Either way, both src and comment blocks are supposed to contain >> arbitrary non-parseable text, which should not contribute to the >> statistics? calculations. > > With your patch, I can confirm this, before it did not since *** was not = =C2=ABescaped=C2=BB To clarify, when you have * Heading #+begin_comment * Lorem ipsum #+end_comment it is not seen by Org as comment block. Instead, what Org "sees" is * Heading #+begin_comment * Lorem ipsum #+end_comment Headline markup has the top priority all the times. >> AFAIK, you cannot. At least, not using an existing command. What you can >> instead do is open C-c ' window, copy the unescaped text, exit the >> window, remove the block, and yank the unescaped text. > > I see, (patches are welcome I presume =F0=9F=98=89) Yup. Probably, we can make org-insert-structure-template more smart and remove the block when user selects the same block as the existing one. It should be controlled by defcustom though (t nil 'ask). Wrapping a comment block inside comment block can be a valid use case. Best, Ihor