[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BUG?: Link to inline-task not working
From: |
Ihor Radchenko |
Subject: |
Re: BUG?: Link to inline-task not working |
Date: |
Fri, 03 Dec 2021 18:51:44 +0800 |
Michael Dauer <mick.dauer@gmail.com> writes:
> Before (require 'org-inlinetask) all is fine. But after executing (require
> 'org-inlinetask) the following happens:
> 1. With point on/in t1 (org-store-link) stores *h2.
> 2. The manually created link below h1 works in the buffer. But it is
> exported as BROKEN LINK.
Confirmed.
> Any ideas how to get fully working links to inline-tasks?
I have the following in my config to mitigate this problem:
(defun org-inlinetask-store-link (oldfun &rest args)
"Store link to inlinetask at point."
(if (and (derived-mode-p 'org-mode)
(org-inlinetask-in-task-p))
(let ((org-inlinetask-min-level 1000))
(apply oldfun args))
(apply oldfun args)))
(advice-add 'org-store-link :around #'org-inlinetask-store-link)
Best,
Ihor