emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-element API does not identify inlinetasks (correctly)
@ 2022-09-29 11:04 Michael Dauer
  2022-09-29 11:19 ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Dauer @ 2022-09-29 11:04 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 399 bytes --]

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.

Hence the (custom-) formatting of inlinetasks at export does not work.

Org mode version 9.5 (9.5-gced2b3

[-- Attachment #2: Type: text/html, Size: 502 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-element API does not identify inlinetasks (correctly)
  2022-09-29 11:04 org-element API does not identify inlinetasks (correctly) Michael Dauer
@ 2022-09-29 11:19 ` Ihor Radchenko
  2022-09-29 11:36   ` Michael Dauer
  0 siblings, 1 reply; 4+ messages in thread
From: Ihor Radchenko @ 2022-09-29 11:19 UTC (permalink / raw)
  To: Michael Dauer; +Cc: emacs-orgmode

Michael Dauer <mick.dauer@gmail.com> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-element API does not identify inlinetasks (correctly)
  2022-09-29 11:19 ` Ihor Radchenko
@ 2022-09-29 11:36   ` Michael Dauer
  2022-09-29 11:40     ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Dauer @ 2022-09-29 11:36 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 943 bytes --]

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 <mick.dauer@gmail.com> 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
>

[-- Attachment #2: Type: text/html, Size: 1596 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-element API does not identify inlinetasks (correctly)
  2022-09-29 11:36   ` Michael Dauer
@ 2022-09-29 11:40     ` Ihor Radchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2022-09-29 11:40 UTC (permalink / raw)
  To: Michael Dauer; +Cc: emacs-orgmode

Michael Dauer <mick.dauer@gmail.com> writes:

> There is a (require 'org-inlinetask), and I use inlinetasks a lot.

Then please provide an example of a file with inlinetasks and steps you
did to get the erroneous behavior. See
https://orgmode.org/manual/Feedback.html

-- 
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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-29 12:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-29 11:04 org-element API does not identify inlinetasks (correctly) Michael Dauer
2022-09-29 11:19 ` Ihor Radchenko
2022-09-29 11:36   ` Michael Dauer
2022-09-29 11:40     ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).