From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MKwJONrH5GKB8QAAbAwnHQ (envelope-from ) for ; Sat, 30 Jul 2022 07:55:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UNcAN9rH5GIrdAAAG6o9tA (envelope-from ) for ; Sat, 30 Jul 2022 07:55:38 +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 63C62FDE6 for ; Sat, 30 Jul 2022 07:55:38 +0200 (CEST) Received: from localhost ([::1]:38454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHfRp-00032h-FG for larch@yhetil.org; Sat, 30 Jul 2022 01:55:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHfQf-00031F-Oe for emacs-orgmode@gnu.org; Sat, 30 Jul 2022 01:54:26 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:46761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHfQe-000070-A8 for emacs-orgmode@gnu.org; Sat, 30 Jul 2022 01:54:25 -0400 Received: by mail-pg1-x52a.google.com with SMTP id d7so2471959pgc.13 for ; Fri, 29 Jul 2022 22:54:23 -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=l3tY9Rtz9Znnd9Db5P7hwiUBkTbd43HJJBYoTW02qgE=; b=g9veLR2Oy2fJxofkafbvJXks+HpRaAGbgWTdT+IUH4eh2GAps7iXHe8VAMfNzWlfA4 /ZvJ6A+9gBtE72JojWvnMUBOx7A07m51oBzympFu5qCVY1Zk+VWkZLsO/N+ZmWki8yCH wzIr0LE+wDIL/YsYEETM2FhFi96UHJxu7sVdt8dt88fjUHS6VIMYNtK9/s/dAM9rj7dD 3tz2KzJ2OrdaWvLLVFkQO2akdmWQgwM5+DK6n2ZZlkIFJmEmLPebrJtrsYKzH+nnqn79 0eKfkS5LmhvqqOqWTmev7RFfM4+ASS/bD10KcqZr/SennblvRnQ4bpCR9VpX0W53tlvj Gk0Q== 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=l3tY9Rtz9Znnd9Db5P7hwiUBkTbd43HJJBYoTW02qgE=; b=Y5qwFF/F0Y0HDMe1YjOFJLJYM58o8JJ5iBcdUW4cN7xmZzKRkJeMSikLmVyW174NdF b6mCa9yJPuqegcacnLFsxgxyT5WxvAIZfsxUMo5DaD6fkGrpiE7f1oRwi0XKLsx18kBJ u2Y7LkzXwRBstt7XsoZE0gBxD+3dBnUaTonwsMhcKRKY4tIDo+qT5JnMu+KCLUTfySZ8 hAfumry7myxYDp39C6moBNqlPMKAe44ElNrruFR1I38yxM+/gQjSyU6MsQZys/fOxC9U tngr9hlmOO14GXcId559tvhYWJxXM5zYRZDZ43/fymcfs9j3s6DULalIJDoYnfgB51ay Efhg== X-Gm-Message-State: AJIora++xJJ3Z3MtUN1CpcBZvg/354hrRtFCoPOw564XC61prbU/QVPe sfrqIDHPi/kliMcnImKSKvw= X-Google-Smtp-Source: AGRyM1uwPZmgSHH0A0EZj9x1FPp0pr/dbmQzJXjqyaDOyXejgc8e2cFtzmefCVhIIP4syNZqhrhTMQ== X-Received: by 2002:a63:f502:0:b0:41a:5a7e:e5b4 with SMTP id w2-20020a63f502000000b0041a5a7ee5b4mr5343731pgh.240.1659160462819; Fri, 29 Jul 2022 22:54:22 -0700 (PDT) Received: from localhost ([1.83.155.1]) by smtp.gmail.com with ESMTPSA id n5-20020a170902e54500b0016d21c1b265sm4693503plf.275.2022.07.29.22.54.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jul 2022 22:54:22 -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: <87czdni2e0.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> Date: Sat, 30 Jul 2022 13:55:24 +0800 Message-ID: <87k07vta9f.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::52a; envelope-from=yantar92@gmail.com; helo=mail-pg1-x52a.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, RCVD_IN_DNSWL_NONE=-0.0001, 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=1659160538; 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=l3tY9Rtz9Znnd9Db5P7hwiUBkTbd43HJJBYoTW02qgE=; b=gkdSyqBXFS9xtsl+fc5ouQG4dNo1wFvQtabUkOHmUJFVhjIE7A57ToGsuhh++tX7SLAEMx 3lC4Dfzbb9JMQHw1GzzvhY16QC1u5PdKQ3+QcSAu66kbhqyCQWL83ciWYeXwyBH2MY7kbC fcldz+1JXrAF3Scv+2NMPgUAhCfxiMW2/jc7S4n4gise2b42laBATFqD/hKmURWg6TI79p gDda4r2grdVy5aY/vnIVvTHBg6bSpkFUgEYIRqAl6qYRyakTVVz8lfKCS8Xgfd2ZV2bM9Q 7MbNEosmGU+20AiKOXVqAdoqmmhnrBwG7rT255cjWZHDWzm2S3NStMWV3ZcIvg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659160538; a=rsa-sha256; cv=none; b=vB81+DUuRJk1/FyZmxtGVBKyLtRdaomiLCxf9wS2OXJVshUkFdlikFrQGraQ/SKMPN4Kqg ANBtcdD7oMXSITllBVHanhjG0pZvoUn60ajJnJmqqlqxcYbcvLlyTdYxaLrEZ+fcc/iPll no9J8fTjziSIrEyhtn55+sBRmf+Qz03i8J85XGCoqDkV9sw1hTBGwETGGGjOcBemqFfE9q KNwM7snk5u3mmJEZZh/T97RiYx9/sU8Pm+ZR5ZnBas1Yww/NKO5VN5Pigedi/VyEDiJXm7 mkaD88q1Q4FYKkZZ04JiJp1LS/ALVen+r+yY+AXMJPL9pCiTPVmwJ3ryISEjEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=g9veLR2O; 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: -3.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=g9veLR2O; 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: 63C62FDE6 X-Spam-Score: -3.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: x7F8PVGcBkqE Uwe Brauer writes: >> Uwe Brauer writes: > > Thanks for the patch (this is against the latest master I presume?) >> Thanks for the heads-up! >> Comment blocks are not supposed to contain Org markup, and thus it indeed >> makes sense to support them in org-edit-special and in structure >> templates. > >> See the attached patch. > > I test and report back: BTW > > 1. The feature I require can only be achieved by using a =C2=ABsrc=C2= =BB block > not a comment block. A bit contra intuitive I say I am sorry, but I am not familiar with the feature you are referring to. Either way, both src and comment blocks are supposed to contain arbitrary non-parseable text, which should not contribute to the statistics? calculations. > 2. Suppose I once mark a lot of headings and add a src block (which > add the required =C2=AB,=C2=BB to the *, how do I later get rid of= the src > block *and* the =C2=AB,=C2=BB 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. Best, Ihor