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 CH1IGfKFNWOGuwAAbAwnHQ (envelope-from ) for ; Thu, 29 Sep 2022 13:48:02 +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 WJd/GPKFNWMfWQEAG6o9tA (envelope-from ) for ; Thu, 29 Sep 2022 13:48:02 +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 EAF5DAA50 for ; Thu, 29 Sep 2022 13:48:01 +0200 (CEST) Received: from localhost ([::1]:53974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ods1G-0004Sh-9z for larch@yhetil.org; Thu, 29 Sep 2022 07:48:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odrYd-0008Nq-KG for emacs-orgmode@gnu.org; Thu, 29 Sep 2022 07:18:26 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:40880) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odrYb-0004qV-T2 for emacs-orgmode@gnu.org; Thu, 29 Sep 2022 07:18:23 -0400 Received: by mail-pl1-x636.google.com with SMTP id b21so976358plz.7 for ; Thu, 29 Sep 2022 04:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=7vipdk5sAYPM6jkHc71eCx8DBabrFsijp+XkjYz1izo=; b=qy1t2zjPse87v0hgqf/9u5Vs6WapQvy7W0263GTpVBpbSXeQdRk4bxMkL5cPiUjdj/ sVQmxpssYankVmtJWsbPLBdANQlvMM8sbRxHVi9eJ2SfY9ybe7e85hJmFMWfLR1V/UPZ zjRPSFID171a8TJEg3qDxBw2lYPN3vgij2gHTu9Eq1KMSpwsyD8IZg30B0EDR6eQPfdB ovZPy4jVVda8a1Sz5iX977XJaCvAl6zOu6l2zaG1EdufJr0vKwt+t0WE0PFPN8PhStH/ AX4nPtX9K1fz19EWHMrvfLg4mW1TbCLKvXGjnX9Cy/fP97NnQPPOqoIH9cZtX2ChrpwC V1Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=7vipdk5sAYPM6jkHc71eCx8DBabrFsijp+XkjYz1izo=; b=dl8P6fSZWl5KIKpFAwOFOUs6/IRHTVj1ParGsBDADkV7WKUIGAr88dqDvHWwCYpXUv alOamnrkB7+BS7C+9IlpBw/q4rYyQ/FE7VYmLTM1tATVMKAGE0LuW9Iv3Fhc7FBYC2/b lHNsjbDDLO6HPA5L2kjz1QdWPSjMIAtaFUHePANbUntn7uGMp3Z4gu4cqOtC1BN18ZvN LO+I0ptLUatrErTu0cFlBKr0oF25QwB2l4rIk/CAmti3enj3rCnqTyMWad9sfx0FhzIC /NVA0k1aeDyyACGmo4039tNMFj/0Sau+SrkZYOg8UuFkt8nG/vQiUig/OWA+nwuo8uG2 N6fw== X-Gm-Message-State: ACrzQf20udiHZJmHWaUCrBPIIXmeRU04BZ3Xnr+om/XvVCR/r9uTcYAt ukUHMUz3isMfJTIFdPJ6SpI= X-Google-Smtp-Source: AMsMyM6bEvSI8qOauLZ+H09QtdcMps+mQPbcUU0txGoBu+ygrIEDr4nnRKEC+eOaL1wwgqG84R2FPw== X-Received: by 2002:a17:902:f612:b0:178:a692:b20a with SMTP id n18-20020a170902f61200b00178a692b20amr2931716plg.55.1664450299214; Thu, 29 Sep 2022 04:18:19 -0700 (PDT) Received: from localhost ([2409:8970:a80:3a4:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id i8-20020a655b88000000b00434651f9a96sm5215418pgr.15.2022.09.29.04.18.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 04:18:17 -0700 (PDT) From: Ihor Radchenko To: Michael Dauer Cc: emacs-orgmode@gnu.org Subject: Re: org-element API does not identify inlinetasks (correctly) In-Reply-To: References: Date: Thu, 29 Sep 2022 19:19:10 +0800 Message-ID: <87v8p65sy9.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=yantar92@gmail.com; helo=mail-pl1-x636.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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 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=1664452082; 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=7vipdk5sAYPM6jkHc71eCx8DBabrFsijp+XkjYz1izo=; b=Fr05wNPs8NWIYCG5hsCDp/sjhYmxq4to5h5RAV7vNx2tSqU0V+55Y5fDLU57tzBXfG/bQZ VmdM0PCzSiPVQh07M8rsLPWoy6/ERcOBCF401yZsfeHjWsjJdiQ2h3v0gPjfDo7PB2nik0 PD6jGY7JiHJeNnG0NHXzhqMfA9G3RJpqEmv4zBLSX7lLSnhbeX4A1L1291HwbnYmP0+gzQ vocKQJcHjDa1KV7QW8UG0piXLPzjMv7OG8F3WUPFMnrxqX8CgjDuYncN0IiLVmIQDAeOlC YXZ2zSO6ebdJcvKQJCp1bzQhqLeR/+Ucmpvq5pyXRPXGsGDpg1IvjCYw4jjJJA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664452082; a=rsa-sha256; cv=none; b=SLUjCIiCdlevlg8KsAD1Ls4EWlikLDFYsoaPUbaUb8VSayaXZWs/A17peNtEP9YfGH/s2S /j7LmjPsAU3Y5KohEFcm0MQ9uPCtESuSlj0JGwHPX6XbtgPrgWfGeS35RzOFrSu1hQ0MDU 0593r97nXNDAqJcisGwfTwZUtjzjrrZfwyRlYuBx9CyNvDkkR8SIrC2I5ro5j/DHRcUOHy L9Rl5hO3gw1a087zq6oCnYIbthiQU3Y1bFjvgd8QjILk6/t+ErKUPsXRyTeya4MUjGMrdR 5MKDRCJzbVFzZYhJSo6tgp2vEBekH4/xxylPXD4nSpELgtPv8Iz28C+iu+WF+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qy1t2zjP; 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: -1.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qy1t2zjP; 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: EAF5DAA50 X-Spam-Score: -1.84 X-Migadu-Scanner: scn1.migadu.com X-TUID: dB8tnthFVtge 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