From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Tarjei Bærland via General discussions about Org-mode."
<emacs-orgmode@gnu.org>
Cc: "Tarjei Bærland" <tarjei@purelymail.com>
Subject: Re: Custom link type that attaches file in :follow
Date: Mon, 12 Apr 2021 11:52:48 +0200 [thread overview]
Message-ID: <87tuobq173.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87h7kcymsp.fsf@purelymail.com> ("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")
Hello,
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
salt.
Regards,
--
Nicolas Goaziou
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]
Reply instructions:
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tuobq173.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=tarjei@purelymail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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
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).