From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GP0SI5uSNWMJkAAAbAwnHQ (envelope-from ) for ; Thu, 29 Sep 2022 14:42:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gOo1I5uSNWPABAAAauVa8A (envelope-from ) for ; Thu, 29 Sep 2022 14:42:03 +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 4783E16324 for ; Thu, 29 Sep 2022 14:42:02 +0200 (CEST) Received: from localhost ([::1]:40456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odsrY-0004y6-Pz for larch@yhetil.org; Thu, 29 Sep 2022 08:42:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odrqN-00038X-7M for emacs-orgmode@gnu.org; Thu, 29 Sep 2022 07:36:43 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:33487) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odrqL-0008Vi-ER for emacs-orgmode@gnu.org; Thu, 29 Sep 2022 07:36:42 -0400 Received: by mail-lf1-x12b.google.com with SMTP id d42so1856280lfv.0 for ; Thu, 29 Sep 2022 04:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=9qPK4JpHdovNZ96DBHoiGRJI3nCkjBRQFGtuawS5f/g=; b=DAlbsx1IDCF2DwEzzupAThJcjs2tZOcmLcnaG4n1kFzi6bgy9g1pthyxp16bt13B8M kg/FZvqcbt3CI1bpn9+jmR9MnbEGpEAs1cbCeMRL0c0WnCzBQKnxCr+cMehHsX2pRl9Q m2ZEUiNcAfez3LyZGf9ptA8imFKbXnJnmXlp4jFz05/F1sBVxcyE5FXmKd/UHwTIn4m6 861rNVqv4G2KwElAPQOVxhDRx22ZBV1pxkl1diRYKlHz8X1CBZXgIweTww3zvbkZpLSw 1X04cb01GafKq3B2fvfMSHoKH6k9fYtlhq3wJ34KIRDbo7a7InW6lTlYtPWObgc+8ePl ndyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=9qPK4JpHdovNZ96DBHoiGRJI3nCkjBRQFGtuawS5f/g=; b=seMqfB1T+uohp6jHNte6xjgk/+t3PlW7r7TFbrhA/IaCVcoKpn/87nB9p1vB+QW7Tn BCZTzHaop3wkHffJajR/E6KCVVG6L5u/UwiCJoJsxyjmKRRs7fqfaTaj3DFfXq9m4dnh dha9EH3uqagdHBUsGsl9+uPJbAIJFbSfTOH9SvZYYywmboQRCZZ8xo9tbCJqjC2fmZmL oI/FpVUhqHNLshXj8JzgLRfSOd53CYIYPM6SZqmdECtMI9okvnigE56K6sB43ZlI1LMG df6CKU50NL2tF5gHElxgXqVq9QQeKznNK6F6V1waik7XUD+LV7X6PXQ/YBOa+9hQjB3V P6rQ== X-Gm-Message-State: ACrzQf2Xiqa+K20X0LXRTteDzEspbhcAa3DtXHgFakyo6JmJbWtwZ3wO 0Uktst07dj2PtVRY6sbYx9qX1nkzNdamefo8qw8= X-Google-Smtp-Source: AMsMyM5jXvRrnzFUQHiiFQPJM3K0Jm7cC2tQ5FZmXlb4qWrIye3PUr71+OFA2gMkoEa9Vn/QdoeQV4T1WfswiHgQduw= X-Received: by 2002:a05:6512:798:b0:497:aa2b:8b10 with SMTP id x24-20020a056512079800b00497aa2b8b10mr1262675lfr.636.1664451399441; Thu, 29 Sep 2022 04:36:39 -0700 (PDT) MIME-Version: 1.0 References: <87v8p65sy9.fsf@localhost> In-Reply-To: <87v8p65sy9.fsf@localhost> From: Michael Dauer Date: Thu, 29 Sep 2022 13:36:27 +0200 Message-ID: Subject: Re: org-element API does not identify inlinetasks (correctly) To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="00000000000068e0c405e9cf4af6" Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=mick.dauer@gmail.com; helo=mail-lf1-x12b.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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664455322; 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=9qPK4JpHdovNZ96DBHoiGRJI3nCkjBRQFGtuawS5f/g=; b=okqPokLbgmOB32iYTpbQ3KVYLYlysMpZUgNEvYEOpxJxHz4KmHsgayhr/F3ETWZKC4z2iW eUhySkmBakl87QBfzljhkqRjdqkDFwaQHH8AHIm/ZozfBV2gIUfrisWszTX0LYu9L1x6ch 32UPnkE3KM51/HY/BJLjp2PC7ipc4qTADwBPfd98rFuZ898vudqbP8rgAb1RGR6cS6LAb7 9RRbO2+mH9qempLLBu11/ovBXa932cvzXxLEXTA7WpvePTPmsIpYoLBl42IlKqkbHpqBO7 oU0G7TUgX4ccNyCR0uw2KtMEUhR7dO9rWuwmdj6nx0atUjnX4OvSYd+I1lS0vg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664455322; a=rsa-sha256; cv=none; b=TC8n8n9TRbO9vEeZR5q7rA8I42YY+ygnBbLK1QVtwZYtJlHPHAA2AZWcxIO905IEQECr/F TR2k64S8dFz+wTg/PP9hiulzyR0U4oCM22LhjItNxQWCQOJZSxiQ1MXkEqyMg6+BO1/Uoz CxdMsFMjp6nK/hrpaE7wWyIeu6XvC9ST6Kky4GEhh2BaqnjDhQv/j2CReuOHzCPQLsz4hI /g+OXwsZ7IuiJZq4Nh74b/95bytBTKfqFSqJ8q5JpXiZMdTWuqxoXYpdRh1LTCnTyvzQ58 0RPpB6Sk+8ZrrgwWfM14GJtzLojB5S3VCNJOi7Csm9Dfe5mZwQCJmihINe39Cw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=DAlbsx1I; 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: -2.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=DAlbsx1I; 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: 4783E16324 X-Spam-Score: -2.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: I7LwQU980c5x --00000000000068e0c405e9cf4af6 Content-Type: text/plain; charset="UTF-8" There is a (require 'org-inlinetask), and I use inlinetasks a lot. Am Do., 29. Sept. 2022 um 13:18 Uhr schrieb Ihor Radchenko < yantar92@gmail.com>: > Michael Dauer writes: > > > Inlinetasks are always interpreted to be of type heading. This causes > > multiple issues e.g with export. > > > > I think that I could track it to the function > org-element--current-element, > > where the check for headings is before the one for inlinetasks, while > > inlinetask is just a sub-type of heading. > > Inlinetasks are not parsed by Org by default. You must first load > org-inlinetask module to enable the parsing. > > Without org-inlinetask being loaded, inlinetasks are treated as ordinary > headings. > > -- > Ihor Radchenko, > 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 > --00000000000068e0c405e9cf4af6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
There is a (require 'org-inlinetask), and I use inline= tasks=C2=A0a lot.

Am Do., 29. Sept. 2022 um 13:18=C2=A0Uhr schrieb Ihor Radc= henko <yantar92@gmail.com>:=
Michael Dauer &= lt;mick.dauer@gma= il.com> writes:

> Inlinetasks are always interpreted to be of type heading. This causes<= br> > multiple issues e.g with export.
>
> I think that I could track it to the function org-element--current-ele= ment,
> where the check for headings is before the one for inlinetasks, while<= br> > inlinetask is just a sub-type of heading.

Inlinetasks are not parsed by Org by default. You must first load
org-inlinetask module to enable the parsing.

Without org-inlinetask being loaded, inlinetasks are treated as ordinary headings.

--
Ihor Radchenko,
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
--00000000000068e0c405e9cf4af6--