From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp12.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 QAatER9PpGOtOAEAbAwnHQ
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 22 Dec 2022 13:35:43 +0100
Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp12.migadu.com with LMTPS
	id SLmIER9PpGMvFwAAauVa8A
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 22 Dec 2022 13:35:43 +0100
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 D8328B0B0
	for <larch@yhetil.org>; Thu, 22 Dec 2022 13:35:42 +0100 (CET)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1p8Kmi-0008TJ-Nq; Thu, 22 Dec 2022 07:34:52 -0500
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 <Alain.Cochard@unistra.fr>)
 id 1p8Kme-0008PQ-06
 for emacs-orgmode@gnu.org; Thu, 22 Dec 2022 07:34:48 -0500
Received: from smtpout02-ext4.partage.renater.fr ([194.254.241.31])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Alain.Cochard@unistra.fr>)
 id 1p8Kmb-00011I-Pq
 for emacs-orgmode@gnu.org; Thu, 22 Dec 2022 07:34:47 -0500
Received: from zmtaauth02.partage.renater.fr (zmtaauth02.partage.renater.fr
 [194.254.241.25])
 by smtpout20.partage.renater.fr (Postfix) with ESMTP id 4A872C0759
 for <emacs-orgmode@gnu.org>; Thu, 22 Dec 2022 13:34:39 +0100 (CET)
Received: from zmtaauth02.partage.renater.fr (localhost [127.0.0.1])
 by zmtaauth02.partage.renater.fr (Postfix) with ESMTPS id 44EB7A06F6
 for <emacs-orgmode@gnu.org>; Thu, 22 Dec 2022 13:34:39 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
 by zmtaauth02.partage.renater.fr (Postfix) with ESMTP id 32452A06FB
 for <emacs-orgmode@gnu.org>; Thu, 22 Dec 2022 13:34:39 +0100 (CET)
DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth02.partage.renater.fr 32452A06FB
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unistra.fr;
 s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3; t=1671712479;
 bh=kpoDdUTrn24yYJd6ZYu1LeMMITlA14eo++EuWT0FlPc=;
 h=MIME-Version:Message-ID:Date:From:To;
 b=QBQs5gjTV5XC4OMMhDfLT4KVLD2QfFeJPx+ULfN7uXnC/2+Pb9+74//a+cOmI3NEB
 uCmT4UouuiMmSHlJvLKTvCw7UsonhAvX4J27kPYKPsaq5oIhR3TMihFhMUfkya6lmK
 /wgSNazFVlHrKOINLgf50MFrVOWr4iAMMiKe9ZTl2p8UbDTQ64m1Y9x1AsiiynOlqO
 2vuhjLbcDNEc4qyIuTDWe2SZ0PBcs6ZltFw/YBcBfUTh415oLaCyPUGs0ihZXJCo4s
 fJsPJEC4C4suf2BSvgeYC070OqAZ+WOJrr/pktuSP9wahLttFAacPY2D/pNgxKvUL0
 f9yuUkjGqi0Vw==
Received: from zmtaauth02.partage.renater.fr ([127.0.0.1])
 by localhost (zmtaauth02.partage.renater.fr [127.0.0.1]) (amavisd-new,
 port 10026) with ESMTP id GUjA45CRu4Ce for <emacs-orgmode@gnu.org>;
 Thu, 22 Dec 2022 13:34:39 +0100 (CET)
Received: from 90.33.81.52 (unknown [194.254.241.249])
 by zmtaauth02.partage.renater.fr (Postfix) with ESMTPA id DDB18A06F6
 for <emacs-orgmode@gnu.org>; Thu, 22 Dec 2022 13:34:38 +0100 (CET)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Message-ID: <25508.20192.899342.932809@gargle.gargle.HOWL>
Date: Thu, 22 Dec 2022 13:34:40 +0100
From: Alain.Cochard@unistra.fr
To: emacs-orgmode@gnu.org
Subject: Problems with org-toggle-comment in or around inlinetasks
X-Mailer: VM 8.2.0b under 27.2 (x86_64-redhat-linux-gnu)
X-Virus-Scanned: clamav-milter 0.103.6 at clamav03
X-Virus-Status: Clean
X-Renater-Ptge-SpamState: clean
X-Renater-Ptge-SpamScore: 0
X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgedvhedrhedtgdegudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucftgffptefvgfftnecuuegrihhlohhuthemuceftddtnecunecujfgurhepgggtgffkfffhvffuofhrsehtqhertdertddunecuhfhrohhmpeetlhgrihhnrdevohgthhgrrhgusehunhhishhtrhgrrdhfrhenucggtffrrghtthgvrhhnpeetleeugefgjeekfefftefffffhfedvtefhteevfeevveefgeeuvdfgfeduvdelheenucfkphepudelgedrvdehgedrvdeguddrvdegleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleegrddvheegrddvgedurddvgeelpdhhvghlohepledtrdeffedrkedurdehvddpmhgrihhlfhhrohhmpeetlhgrihhnrdevohgthhgrrhgusehunhhishhtrhgrrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopegvmhgrtghsqdhorhhgmhhouggvsehgnhhurdhorhhg
Received-SPF: pass client-ip=194.254.241.31;
 envelope-from=Alain.Cochard@unistra.fr; helo=smtpout02-ext4.partage.renater.fr
X-Spam_score_int: -3
X-Spam_score: -0.4
X-Spam_bar: /
X-Spam_report: (-0.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_HELO_IP_MISMATCH=2.368, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no 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." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Reply-To: alain.cochard@unistra.fr
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
X-Migadu-Country: US
X-Migadu-Flow: FLOW_IN
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671712542; a=rsa-sha256; cv=none;
	b=QKpsHz3Uu+PIC0HHR836Xgf3hW24CdOp+IXsEHSAzlYJBu4TfrnjNfu89jfYmBWk6krZvw
	FY70jjlFI06EA6RaBb+tL4f0dqPcyAf1iSvbsS9jEkObFePwV81AS5oh+L0wCmCDJoDZNV
	gI/ow2dxMb7sLI0F09GATcBmBOMsPD+NXBeyCHd/GYfDiwR33/XABhh5ipAyK58NoNQt1G
	Qvr7w7ggOMeABAxl6R/wyGhZ122rDP7ar9H2pTaNSvRfljD/AG8X/vBn+fseiqdcEGePVJ
	qrDq7GfF81bb2mwQ20+vHHjgZWsGgMoo670BaMsDV4Oo75ju0EMMAw+34t8QXA==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.b=QBQs5gjT;
	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=none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1671712542;
	h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:mime-version:mime-version:
	 content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:list-id:list-help:
	 list-unsubscribe:list-subscribe:list-post:dkim-signature;
	bh=kpoDdUTrn24yYJd6ZYu1LeMMITlA14eo++EuWT0FlPc=;
	b=nDf8dMKKrp90s5z/WgbDpD8TNoN1VxqMy5vC2swZ7Znfz40ILNIVjYZNJcQzcAzczV9y/w
	Adr/tlHU81imbJQsgjTVxj4FyQ2mlpHDcHgPGjJuNAWnOUUmczrI+rUumbbqGu3TTNrMu7
	LCXlxhI5ZzqpZH2JnU8wJ5pxlYonMcVJbFq7RC9n5pfHFnPWlTsQ6ZjU6dfDiZP6M7iSXG
	SyX8u6p/silzEhZH5tw4xkTsHWzqfjeI6UvxDk3VTxrvPviADU/6jMUeOqaWYCqva1M/B9
	8XH6x9C1jcjkMJN5H6dlnMAM96PtQdUE9JnpN9beF65TBZSxSYDZuyZ8RalXqQ==
X-Spam-Score: -9.34
X-Migadu-Queue-Id: D8328B0B0
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.b=QBQs5gjT;
	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=none
X-Migadu-Scanner: scn0.migadu.com
X-Migadu-Spam-Score: -9.34
X-TUID: 8TsqijbmoJrj

Hello.

I do

   emacs -Q -l ~/.emacs.git

where the .emacs.git file contains only

   (add-to-list 'load-path "~/Org/Coch-git/org-mode/lisp")
   (require 'org-inlinetask)

This gives

   Org mode version 9.6 (release=5F9.6-118-g04d2cc.dirty @
   /home/cochard/Org/Coch-git/org-mode/lisp/)
   GNU Emacs 27.2 (build 1, x86=5F64-redhat-linux-gnu, GTK+ Version
   3.24.30, cairo version 1.17.4) of 2021-08-07

Then I have the file

   * h
   *************** ilt
   foo
   *************** END


With the cursor on 'ilt' or on 'foo', a 1st 'C-c ;' correctly
introduces a 'COMMENT' keyword in front of 'ilt.  But then, a 2nd 'C-c
;' introduces a 2nd 'COMMENT', a 3rd one introduces a 3rd 'COMMENT',
etc.

The same occurs if the cursor is on the blank line after 'END',
whereas (if I understand correctly) it should modify the '* h'
headline.  If the line is not blank, subsequent uses of 'C-c ;' do
toggle on and off the 'COMMENT' keyword on that headline, as I expect.

With the cursor on the first 'END', subsequent uses of 'C-c ;' also
introduce subsequent 'COMMENT' keywords, but in front of that 'END'.

--=20
EOST (=C9cole et Observatoire des Sciences de la Terre)=20
ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr
5 rue Ren=E9 Descartes   [bureau 110]  | Phone: +33 (0)3 68 85 50 44=20=

F-67084 Strasbourg Cedex, France     | [ slot available for rent ]