From: Nicolas Goaziou <email@example.com>
To: "Tarjei Bærland via General discussions about Org-mode."
Cc: "Tarjei Bærland" <firstname.lastname@example.org>
Subject: Re: Custom link type that attaches file in :follow
Date: Mon, 12 Apr 2021 11:52:48 +0200 [thread overview]
Message-ID: <email@example.com> (raw)
In-Reply-To: <firstname.lastname@example.org> ("Tarjei =?utf-8?Q?B=C3=A6rla?= =?utf-8?Q?nd?= via \"General discussions about Org-mode.\""'s message of "Mon, 12 Apr 2021 09:39:02 +0200")
Tarjei Bærland writes:
> Something seems to go wrong during the export, however, where a new
> attachment directory is created. Is my assumption that the export will
> run with =point= at the link incorrect?
Yes, this assumption is incorrect. The export process operates on
a parse tree, and doesn't need to move point at all. Current buffer is
not even the original buffer.
You may use hooks that are run before parsing happens, i.e.,
`org-export-before-parsing-hook' and `org-export-before-processing-hook.
I didn't look at your export function, so take my advice with a grain of
prev parent reply other threads:[~2021-04-12 10:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-12 7:39 Custom link type that attaches file in :follow Tarjei Bærland via General discussions about Org-mode.
2021-04-12 9:52 ` Nicolas Goaziou [this message]
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
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).