From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EKkMK+8nqmECnQAAgWs5BA (envelope-from ) for ; Fri, 03 Dec 2021 15:21:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id AAPRJu8nqmHKCwAA1q6Kng (envelope-from ) for ; Fri, 03 Dec 2021 14:21:35 +0000 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 4CFB32025C for ; Fri, 3 Dec 2021 15:21:35 +0100 (CET) Received: from localhost ([::1]:42520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mt9RO-0004dc-Ew for larch@yhetil.org; Fri, 03 Dec 2021 09:21:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt9QL-0004ZE-IJ for emacs-orgmode@gnu.org; Fri, 03 Dec 2021 09:20:29 -0500 Received: from [2a00:1450:4864:20::132] (port=36803 helo=mail-lf1-x132.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mt9QG-0003a2-UM for emacs-orgmode@gnu.org; Fri, 03 Dec 2021 09:20:26 -0500 Received: by mail-lf1-x132.google.com with SMTP id k37so6919376lfv.3 for ; Fri, 03 Dec 2021 06:20:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jdUghquHEnM+q0JK82hkOUE3/nQxBbwqxtc/XDTsQVo=; b=l5WPOAWLtDdB8Co24IYOHLrRGEvJ6pSXmJUYhSvZaJwt+4/7TMFRJqXF8Tm24mTzhg oXTnHa6dYq7do3S/f56yPjiB5ui12Lrwo6stJ3nhFQVSCSyQCNgIhtIa9Rx7eSjOofQW zlQvp6EpWLcVMwCQR2toQTrSijxmX6yYomgG1zu0hljE8YmMSEqq6tx1blATKKndgOBe lHVw0YFh0RkkniavyELy7+dewrK39XYnOdgOSQI7YVM9GAyU5kNkQcZefUNMgSaSr1J6 DIB60otnK/ZN3ppzhQU9fRbYcZaSYXZ3PltiUlR7EP1jFVAn8uLSBaZ3vP4tQI4UlEtS c8Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jdUghquHEnM+q0JK82hkOUE3/nQxBbwqxtc/XDTsQVo=; b=NcDBL9ZQK2YcaChuYc58WRKQKN3uSGGN/q/O+0C0HSUfUfESz5KeFJjTuECelQaS10 bqNCShP2md5Sotuv7aDrncREjPmrk7NUjugpzrkMj6yysSK0wpC6AbGYoZJH1C7vt8E+ MNbu+fPG3tNVorLMveluwiqZqjle/W//0DiZhCM3qqCw9+xmedWx0wMi9MspJa7S8Utv avCs2PCberMKXpn1amSnP9vLZb5xg/LeogpL1My550fy3/o1Ez5X2EYIm5NanlMLGBEn WjNmYs211zBPLFf5YxGNS4N3GVQJ5cxdm9qPcBs9COvAsye9g942VuaMoYuy/wzGSHAV LHxA== X-Gm-Message-State: AOAM531TZaguBF6psOR8pQErrnXnd470KOTRNsrEY21EDLp3lLxpciDr l8ywVBYJ2Eb8RDY7jFF0BeuKI+YLNoKhWu97W5A= X-Google-Smtp-Source: ABdhPJyCsexUILk6x3yBcqDldZPO/I1Lnv1Sg7681RIPMnRr5vHZLg+GkyF2gZuiLfi/1ZJls8AmRG74A/CTeBdIvRU= X-Received: by 2002:a05:6512:4017:: with SMTP id br23mr18211622lfb.270.1638541222125; Fri, 03 Dec 2021 06:20:22 -0800 (PST) MIME-Version: 1.0 References: <875ys6m05b.fsf@localhost> In-Reply-To: <875ys6m05b.fsf@localhost> From: Michael Dauer Date: Fri, 3 Dec 2021 15:20:11 +0100 Message-ID: Subject: Re: BUG?: Link to inline-task not working To: Ihor Radchenko Content-Type: multipart/alternative; boundary="0000000000007ea43f05d23e9b55" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::132 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=mick.dauer@gmail.com; helo=mail-lf1-x132.google.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 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, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: emacs-orgmode@gnu.org 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=1638541295; 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=jdUghquHEnM+q0JK82hkOUE3/nQxBbwqxtc/XDTsQVo=; b=CNFu5jqIi0Z87R+nc5rGLbUK2OVJHnE2qO353b3uaADyt9UPtqFJ166zIf6oWE4q2dQKvV GeChmchfPsdXaWticPB8MIcuilQzrc4Svscqu9W4ZVcrNfnl9k/cO5mPYtHUYAnGfcN1/u vFJ4471bXtcvFVrB7yb3R459m+ZBPSsUsODb/NnoQd41rUJD1calCMVf/q/LYwm4j+UxdE HoDFuW4BkXVNm8oHliUkYp+LWlpnrXR0TWFxUw+P3yDbQYbUQ4Nu5uZ0qUmVvh9mkOvLh8 ICSdbon46VEYUScd/KOqPy2Qw5dhldO0HaijRWiaA1mGe/wJjQO5HzrEF4Lkpw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638541295; a=rsa-sha256; cv=none; b=kdVHki46dH0ls1RANYw7LMGi0nBmZpjM5ntC7pVbRBPn2mGHbPkeCRW7G86tO41lDTX6m1 KYf8focia3yzox6EQQhDtsHvHjCrnSOTWb/qEGWctZ7DVuwix9IRswdOFAoK0RHEfdriu6 tP8AMdR6RUd7BIBvNHdhdufacSukFgM3NO32LPGahkhw5aBpTTdgnMJfbQdCQG7mfyF9b2 srSlWReMHsHU2e8nCBAxIqJf8DB5U0sPEfinStFX5x2CxNJ/Jc09lKRTrsSBrGwI6R9V14 7qJmaflyAWRSulIxQij5Fo6yZQodDh4ATBxWsAncMvU35nGxdonTzIqDoo/rDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=l5WPOAWL; 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: -4.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=l5WPOAWL; 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: 4CFB32025C X-Spam-Score: -4.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3TgzkGkQdowG --0000000000007ea43f05d23e9b55 Content-Type: text/plain; charset="UTF-8" Ihor, thank you for the quick workaround. Unfortunately storing links is not much of an issue for me. The real issue is how I can get the internal links working in the exported html. I could not find the right places to deactivate and re-activate inline-tasks during export. I have a custom org-html-format-inlinetask-function. If I deactivate inline-tasks outside this formatter is never called, otherwise the links are not generated. Where are the links/href are built? There should be the error that excludes inline-tasks. thx, m Am Fr., 3. Dez. 2021 um 11:50 Uhr schrieb Ihor Radchenko : > Michael Dauer 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 > --0000000000007ea43f05d23e9b55 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ihor, thank you for the quick workaround.

Unfortunately=C2=A0storing links is not much of an issue for me. The rea= l issue is how I can get the internal links working in the exported html.

I could not find the right places to deactivate and= re-activate=C2=A0inline-tasks during export.

I ha= ve a custom=C2=A0org-html-format-inlinetask-function. If I deactivate=C2=A0= inline-tasks outside this formatter is never called, otherwise the links ar= e not generated.

Where are the links/href are buil= t? There should be the error that excludes inline-tasks.

thx,
m

Am Fr., 3. Dez. 2021 um 11:50=C2=A0Uhr schrie= b Ihor Radchenko <yantar92@gmail.c= om>:
Mich= ael Dauer <mic= k.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)
=C2=A0 "Store link to inlinetask at point."
=C2=A0 (if (and (derived-mode-p 'org-mode)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(org-inlinetask-in-task-p))
=C2=A0 =C2=A0 =C2=A0 (let ((org-inlinetask-min-level 1000))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (apply oldfun args))
=C2=A0 =C2=A0 (apply oldfun args)))

(advice-add 'org-store-link :around #'org-inlinetask-store-link)
Best,
Ihor
--0000000000007ea43f05d23e9b55--