all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Issue with export of inlinetasks
@ 2022-09-29 16:20 Michael Dauer
  2022-09-30  3:11 ` Ihor Radchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Dauer @ 2022-09-29 16:20 UTC (permalink / raw)
  To: emacs-orgmode

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

There seems to be an issue with export of inlinetasks, at least with
customizing it. Org mode version 9.5 (9.5-gced2b3
Please see the POC below:

* heading 1
** heading 1.1
* heading 2
*************** TODO inline task
*************** END
* heading 3
** heading 3.1
* Direct is fine
#+begin_src elisp
(let ((parsetree (org-element-parse-buffer)))
  (org-element-map parsetree '(headline inlinetask)
    (lambda (e) (org-element-property :title e))))
#+end_src

#+RESULTS:
| heading 1          |
| heading 1.1        |
| heading 2          |
| inline task        |
| heading 3          |
| heading 3.1        |
| Direct is fine     |
| Issue is at export |
* Issue is at export
#+begin_src elisp
(let ((mist-output "")
      (org-export-with-inlinetasks t))
  (defun mist--html-format-inlinetask-function (todo todo-type priority
text tags contents info)
    (setq mist-output (format "%s\niii %s" mist-output text))
    "iii")
  (setq org-html-format-inlinetask-function
'mist--html-format-inlinetask-function)

  (defun mist-html-format-headline-function (todo todo-type priority text
tags info)
    (setq mist-output (format "%s\nhhh %s" mist-output text))
    "hhh")
  (setq org-html-format-headline-function
'mist-html-format-headline-function)
  (kill-buffer (org-export-to-buffer 'html "mist.html"))
  mist-output)
#+end_src

#+RESULTS:
#+begin_example

hhh heading 1.1
hhh heading 1
hhh inline task
hhh END
hhh heading 2
hhh heading 3.1
hhh heading 3
hhh heading 4
hhh Direct is fine
hhh Issue is at export
#+end_example

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

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

* Re: Issue with export of inlinetasks
  2022-09-29 16:20 Issue with export of inlinetasks Michael Dauer
@ 2022-09-30  3:11 ` Ihor Radchenko
  2022-09-30  8:16   ` Michael Dauer
  0 siblings, 1 reply; 6+ messages in thread
From: Ihor Radchenko @ 2022-09-30  3:11 UTC (permalink / raw)
  To: Michael Dauer; +Cc: emacs-orgmode

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

> There seems to be an issue with export of inlinetasks, at least with
> customizing it. Org mode version 9.5 (9.5-gced2b3

Can you try the latest bugfix or main branch instead?

-- 
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] 6+ messages in thread

* Re: Issue with export of inlinetasks
  2022-09-30  3:11 ` Ihor Radchenko
@ 2022-09-30  8:16   ` Michael Dauer
  2022-09-30  8:23     ` Ihor Radchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Dauer @ 2022-09-30  8:16 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

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

This is the latest commit on main, isn't it?
Head:     main fixup! org-fold-core: Respect 'ignore-indirect optimization
better
Merge:    origin/main fixup! org-fold-core: Respect 'ignore-indirect
optimization better
Tag:      release_9.5.5 (852)

Am Fr., 30. Sept. 2022 um 05:10 Uhr schrieb Ihor Radchenko <
yantar92@gmail.com>:

> Michael Dauer <mick.dauer@gmail.com> writes:
>
> > There seems to be an issue with export of inlinetasks, at least with
> > customizing it. Org mode version 9.5 (9.5-gced2b3
>
> Can you try the latest bugfix or main branch instead?
>
> --
> 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: 1436 bytes --]

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

* Re: Issue with export of inlinetasks
  2022-09-30  8:16   ` Michael Dauer
@ 2022-09-30  8:23     ` Ihor Radchenko
  2022-10-02 13:16       ` Michael Dauer
  0 siblings, 1 reply; 6+ messages in thread
From: Ihor Radchenko @ 2022-09-30  8:23 UTC (permalink / raw)
  To: Michael Dauer; +Cc: emacs-orgmode

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

> This is the latest commit on main, isn't it?
> Head:     main fixup! org-fold-core: Respect 'ignore-indirect optimization
> better
> Merge:    origin/main fixup! org-fold-core: Respect 'ignore-indirect
> optimization better
> Tag:      release_9.5.5 (852)

Yes, it is.

Org repo is at https://git.savannah.gnu.org/cgit/emacs/org-mode.git/
Also referenced at https://orgmode.org/

-- 
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] 6+ messages in thread

* Re: Issue with export of inlinetasks
  2022-09-30  8:23     ` Ihor Radchenko
@ 2022-10-02 13:16       ` Michael Dauer
  2022-10-03  2:52         ` Ihor Radchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Dauer @ 2022-10-02 13:16 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

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

org-version reports the same version, but now the same code (posted before)
works. So it's fixed.

But shouldn't org-version report 9.5.5 instead of 9.5?

Ihor Radchenko <yantar92@gmail.com> schrieb am Fr., 30. Sep. 2022, 10:22:

> Michael Dauer <mick.dauer@gmail.com> writes:
>
> > This is the latest commit on main, isn't it?
> > Head:     main fixup! org-fold-core: Respect 'ignore-indirect
> optimization
> > better
> > Merge:    origin/main fixup! org-fold-core: Respect 'ignore-indirect
> > optimization better
> > Tag:      release_9.5.5 (852)
>
> Yes, it is.
>
> Org repo is at https://git.savannah.gnu.org/cgit/emacs/org-mode.git/
> Also referenced at https://orgmode.org/
>
> --
> 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: 1846 bytes --]

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

* Re: Issue with export of inlinetasks
  2022-10-02 13:16       ` Michael Dauer
@ 2022-10-03  2:52         ` Ihor Radchenko
  0 siblings, 0 replies; 6+ messages in thread
From: Ihor Radchenko @ 2022-10-03  2:52 UTC (permalink / raw)
  To: Michael Dauer; +Cc: emacs-orgmode

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

> org-version reports the same version, but now the same code (posted before)
> works. So it's fixed.
>
> But shouldn't org-version report 9.5.5 instead of 9.5?

It should. The latest stable version of Org is 9.5.5. The latest
development version is 9.6-pre.

If you get something different from the above, you are using some
different version of Org.

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


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

end of thread, other threads:[~2022-10-03  2:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-29 16:20 Issue with export of inlinetasks Michael Dauer
2022-09-30  3:11 ` Ihor Radchenko
2022-09-30  8:16   ` Michael Dauer
2022-09-30  8:23     ` Ihor Radchenko
2022-10-02 13:16       ` Michael Dauer
2022-10-03  2:52         ` Ihor Radchenko

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.