From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KMvRF0MbdGAcBgAAgWs5BA (envelope-from ) for ; Mon, 12 Apr 2021 12:04:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sIHGEUMbdGAsSAAA1q6Kng (envelope-from ) for ; Mon, 12 Apr 2021 10:04:51 +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 0FD3B16D04 for ; Mon, 12 Apr 2021 11:53:32 +0200 (CEST) Received: from localhost ([::1]:55628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVtG7-0005BU-1I for larch@yhetil.org; Mon, 12 Apr 2021 05:53:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVtFY-0005BO-NF for emacs-orgmode@gnu.org; Mon, 12 Apr 2021 05:52:56 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:44731) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVtFW-0001jq-R6 for emacs-orgmode@gnu.org; Mon, 12 Apr 2021 05:52:56 -0400 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay11.mail.gandi.net (Postfix) with ESMTPSA id E43A0100016; Mon, 12 Apr 2021 09:52:49 +0000 (UTC) From: Nicolas Goaziou To: Tarjei =?utf-8?Q?B=C3=A6rland?= via "General discussions about Org-mode." Subject: Re: Custom link type that attaches file in :follow References: <87h7kcymsp.fsf@purelymail.com> Mail-Followup-To: Tarjei =?utf-8?Q?B=C3=A6rland?= via "General discussions about Org-mode." , Tarjei =?utf-8?Q?B=C3=A6rland?= Date: Mon, 12 Apr 2021 11:52:48 +0200 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") Message-ID: <87tuobq173.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.178.231; envelope-from=mail@nicolasgoaziou.fr; helo=relay11.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tarjei =?utf-8?Q?B=C3=A6rland?= Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618221212; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=3GxHa4aa9F7Pj/e8Yjq1Ot7Qh75KVQl9LFrYAn+qf3c=; b=ePTUivkDM3jVjQjs8lyQA2bE3RTYr7hNpm7jiUpFUcWg84ZBB2aSM/C6UECUg8WjXZlIYR XFDvsbD5Bm6TBfrPBo4N2s8TNLk+b5Lju1yonKw1/pkRxSfJN1H0ZKtOUUMJAko/7JmW0y r36A9XYKbrnFZiTOmO1A07rLlgkn3LMQPY/2DWpXfqv+ejWjaOD3C961bCyeUqxP69Jyse 7UxL/ThTm3bFuzRWtU6bo2yC+I6Hj5QBFQy0aDqvbiJeCkMBCsvjwu/dR2mX8yax6HD55Y KOX/plsOBN0IOg4Mhr86cZPkSkrA2Bm6G1Nl/aMf9BSb6ydrSF1QsPAVAS+CAg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618221212; a=rsa-sha256; cv=none; b=qVUypnYlQ56R/2ZuJencdrq5FnWYW+AMFqDVyo5wMG+G7Men7Mg8p6+l91Cb9sk29eUPaM d5J6IXuVQ8jyAzX/u2FQ3Aaxy3TAIT91UV4wTE3xgcVqlNCSKh7bcH880jM0TQ6Hio1Twn wsqRVNkI1DgyvKUghmuBwbp7pSmmqkbRS4kGDTSFAC7rG+Hfos6SAdnqkadGld2ol2oPwc it6jcbE7iKlnZn4YKRUexrg8HF+02+KALquSx2QOqHGphw617zo46lev3De0UWXn6auvOE vW2pYivMG4N0O1nZiT8NDs9GAY3JEzxC8Ac03y6wvCv3OBKdA5hCh5/hBD11jQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.44 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 0FD3B16D04 X-Spam-Score: -2.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3yRljkSgCj1J Hello, Tarjei B=C3=A6rland 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 =3Dpoint=3D 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, --=20 Nicolas Goaziou