From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id SOLLHbHh3WRNSgEASxT56A (envelope-from ) for ; Thu, 17 Aug 2023 11:00:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GAbxHbHh3WTxJwEA9RJhRA (envelope-from ) for ; Thu, 17 Aug 2023 11:00:33 +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 017664B8B8 for ; Thu, 17 Aug 2023 11:00:33 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="R2/fBmk+"; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692262833; 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=WHH0D+INjO18WmK5GDAirELHf5D5zT3pmGeJSIOcvqo=; b=DMTMuf0xj9gmum/54h+l4JPHfI18mzNYNC/VFRWnE/IhsRB14KUtadg32WdXpbB1gdbl2J v35WSQnvrMCG46PtE3qaVHnucMZjNBS0tPvhn/zICmCWxtreiF8jLy752Jb869atCu4Q2I WkixmWnUJDsiKqczSXEAdZZN9Z05fxORLa2Or9ga1LK54POpN/Q+ef3TiaICMsLGO6Bjc8 gFECXPNtDmTQbkfXsJHtDai2dZiRk+5aU2Oej86tqAQ20QbvkT3X4YkXWfBuZL9HSkQPe5 f0/Q+mBJudiYFxiyo47x4gIY3DGF14yH3Zf/HOPZAA0JdbtAYTD+DzBJFgU/pA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692262833; a=rsa-sha256; cv=none; b=Z5kPEqH51NJgFnHKpq56CLGE244Bmau7ItSiMAwBcx6vmGfSo7ZfsY1AYOOghA7sEVuIwE O8nyU6U0trJS51+RMVGh44EZ/8H+WUDKEviX8bdENrztjmxWKlQ3scixQzhL0hKmcYX5GH GVSGgD4JD1AmqDzzL5wEAPpuyPIVSED3vhHmgB2zg7MJIEcSy2/NrRPRNZPHjnjIVlTeRq U2xfVAIIX8Ki/Khwvqct+hBOx3pEpOq7hOAI754escFDE15TR9p7XxCYzgV3hITi8DAkmb iynBRlL3GgMx4xjvU22610kR2ufLBpwRMNZWShLk1kW1S4sagAYBes7WPo540A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="R2/fBmk+"; 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=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWYrd-0004fo-NR; Thu, 17 Aug 2023 05:00:21 -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 1qWYrc-0004fR-0F for emacs-orgmode@gnu.org; Thu, 17 Aug 2023 05:00:20 -0400 Received: from mail-qv1-xf29.google.com ([2607:f8b0:4864:20::f29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qWYrY-0003Hp-7y for emacs-orgmode@gnu.org; Thu, 17 Aug 2023 05:00:18 -0400 Received: by mail-qv1-xf29.google.com with SMTP id 6a1803df08f44-64723bb9e25so3304046d6.0 for ; Thu, 17 Aug 2023 02:00:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692262815; x=1692867615; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WHH0D+INjO18WmK5GDAirELHf5D5zT3pmGeJSIOcvqo=; b=R2/fBmk+gKRA7+nJkHq7oxUxZqhIJ0GSkF9DG1RS1OTAkaIvszHGNcy5v+KjuC/yxC eTSLa2Myw3kTu1rga2akPp5yIXR+vIutXKFWP6AC3DGF6KKwDZNuI7gi+mFTjxj5aO69 GbSOhtkljKYbjesbn6Kbo6HtOuQiWGufEovBVSu8WJd4wPa2Wm+wPYfgfAxVZIO+bTwu hB0xC5N6ZyqCPw9N8j8vRhvtHO0SfCY9lmIY0e/c5m/1Y+3TUt40X8N/iGfIAJ4pFTtm ogHQILWf7qGOktFdeVyZ6ZyLO/AEz0igoWsoyPw4hnlkCJ3GhHi4h7pOWEaESXHfcvAJ DGkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692262815; x=1692867615; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WHH0D+INjO18WmK5GDAirELHf5D5zT3pmGeJSIOcvqo=; b=c9upvqgA5FQ40ZRIhGseIIylYH/x/jSRYqxTI14PIHSCDrhEPbIxdsv1xQoqyiYT5X jJP+92N2MABHUVU7xEFTY+YVwoUF3rDCQSjRJMUD2szbP0B1U+WgVKqnFGjbxzkA8zEQ +euEww7uqBc9VuA3SbXH5CZpxKgLaRyKGTm9HNnS6MSZw/9n9sOtIbNp6eAOOXkIBAen nfD9BjqtxkdKPPQ4xzZ9xwXrLoboSHqm2XOrjgtG5gM+1djzcsOpEW0MoVOlsKg2OcXg 0twJP+X+SveMSe21Xg60XsnmogAKTRQDYgOqDueIti2sEwjwgyLkitj9v33gMw2TPSjz bqpQ== X-Gm-Message-State: AOJu0YyT4BPZbjHJSBzbVqKTTTWrfDVc14Uf6Tgi4d7TBGUV8Q0aLFGp yYCeZa0F25YOGB4JNrN3Vff7vrfAek6rS9iG93o= X-Google-Smtp-Source: AGHT+IH/e9uUktIgbScMRVrNXNV0cHqQKI/777Lz7qzs9DFAvRuYA43QjM28Njon1TadkN4q39Gg712lZTjXIQ2gt5c= X-Received: by 2002:ad4:5e8c:0:b0:635:da80:e53a with SMTP id jl12-20020ad45e8c000000b00635da80e53amr3061706qvb.12.1692262814755; Thu, 17 Aug 2023 02:00:14 -0700 (PDT) MIME-Version: 1.0 References: <877cpvqkcb.fsf@localhost> <871qg3qj8q.fsf@localhost> <87jztvou08.fsf@localhost> In-Reply-To: From: Michael Dauer Date: Thu, 17 Aug 2023 11:00:03 +0200 Message-ID: Subject: Re: BUG: org-cut-special on inlinetask kill until point-max To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000f0b16b06031aa328" Received-SPF: pass client-ip=2607:f8b0:4864:20::f29; envelope-from=mick.dauer@gmail.com; helo=mail-qv1-xf29.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.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-Migadu-Spam-Score: -9.37 X-Spam-Score: -9.37 X-Migadu-Queue-Id: 017664B8B8 X-Migadu-Scanner: mx0.migadu.com X-TUID: KRBdaq8XdRtV --000000000000f0b16b06031aa328 Content-Type: text/plain; charset="UTF-8" I probably mis-interpreted the code. Because then I would also fail for normal headings. Just thinking about the symptoms I think the issue Is that (org-end-of-subtree) works with type 'headline. And inlinetask is a different type, right? IMO org-mode should consistently treat inlinetasks including the END line as a branch. Then org-cut-special would do something useful on them, i.e. cutting the inlinetask includinging its contents and the END line. Am Do., 17. Aug. 2023 um 10:42 Uhr schrieb Michael Dauer < mick.dauer@gmail.com>: > I looked directly into the code and I think I found the issue: > (org-copy-subtree) calls (org-end-of-subtree) without providing an > element. But without an element this function just jumps to (point-max). > I would expect a different behavior or (org-end-of-subtree). Since element > is optional it should take the element at point. > > > Am Mi., 16. Aug. 2023 um 18:02 Uhr schrieb Ihor Radchenko < > yantar92@posteo.net>: > >> Michael Dauer writes: >> >> > No. Here also * h2 gets killed by org-cut-special. >> >> You may need to pull the latest main. >> >> > What is REPRO_ARGS? org-onlinetask.el is included org repo anyway? >> >> See https://orgmode.org/manual/Feedback.html#Feedback >> REPRO_ARGS are just extra arguments passed to Emacs when opening it in a >> clean environment in current Org git repo. >> >> -- >> Ihor Radchenko // yantar92, >> Org mode contributor, >> Learn more about Org mode at . >> Support Org development at , >> or support my work at >> > --000000000000f0b16b06031aa328 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I probably mis-interpreted the code. Because then I would = also fail for normal headings. Just thinking about the symptoms I think the= issue Is that (org-end-of-subtree) works with type 'headline. And inli= netask=C2=A0is a different type, right?

IMO org-mode sho= uld consistently treat inlinetasks including the END line as a branch. Then= org-cut-special would do something useful=C2=A0on them, i.e. cutting the i= nlinetask includinging=C2=A0its contents and the END line.

<= div class=3D"gmail_quote">
Am Do., 17.= Aug. 2023 um 10:42=C2=A0Uhr schrieb Michael Dauer <mick.dauer@gmail.com>:
I looked directly into t= he code and I think I found the issue:
(org-copy-subtree) calls (org-en= d-of-subtree) without providing an element. But without an element this fun= ction just jumps to (point-max).
I would expect a different behavior or= (org-end-of-subtree). Since element is optional it should take the element= at point.


<= div dir=3D"ltr" class=3D"gmail_attr">Am Mi., 16. Aug. 2023 um 18:02=C2=A0Uh= r schrieb Ihor Radchenko <yantar92@posteo.net>:
Michael Dauer <mick.dauer@gmail.com> writes:

> No. Here also * h2 gets killed by org-cut-special.

You may need to pull the latest main.

> What is REPRO_ARGS? org-onlinetask.el is included org repo anyway?

See https://orgmode.org/manual/Feedback.html#Feedba= ck
REPRO_ARGS are just extra arguments passed to Emacs when opening it in a clean environment in current Org git repo.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>
--000000000000f0b16b06031aa328--