From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2MNrEftO1l+NbAAA0tVLHw (envelope-from ) for ; Sun, 13 Dec 2020 17:27:23 +0000 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 UP+oDPtO1l/3HQAA1q6Kng (envelope-from ) for ; Sun, 13 Dec 2020 17:27:23 +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 882CF940416 for ; Sun, 13 Dec 2020 17:27:22 +0000 (UTC) Received: from localhost ([::1]:58444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koV9V-0006ZI-H3 for larch@yhetil.org; Sun, 13 Dec 2020 12:27:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koV98-0006Yy-L2 for emacs-orgmode@gnu.org; Sun, 13 Dec 2020 12:26:58 -0500 Received: from mout02.posteo.de ([185.67.36.66]:47959) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koV96-0001Zl-K5 for emacs-orgmode@gnu.org; Sun, 13 Dec 2020 12:26:58 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 7D52D2400FF for ; Sun, 13 Dec 2020 18:26:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607880413; bh=jm86k0c4LVUQ9v6PdAHf9wqv/MyJ1iv9R824jM7A5HM=; h=From:To:Cc:Subject:Date:From; b=bq9JKDoBDYuTaiTP3maSpVff01gp7LCJXemdxRPqEcTo8fyG6q3PU/dIIJ9RKV0mB M3xDrAs7beoni7BKNncoS9MUTcZUVPQy+WZ6ApSWC6x8cOYAMp4FdnFQ+RvCa9twDu Cz6Y//lNnx5q0gz2oQpP0OVVXDCsBOp2Q0J6plnRcRXvZH1c3m7rx5wgQSIT9arc9M /CQNNWN5O2oDy8guF8X9Mgao6jWLDpF64I2MbH7wYOL9mUb/lj+RZ/ZeyHXDC259kw AkvvIwBnzhhGDTj7g3RXy4pUBs1FOIklhUrzohv6TebQcCyJ9frzHm8dqkAnJkwnU/ UrFFDP+nR3a4g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CvBK85SnHz6tmQ; Sun, 13 Dec 2020 18:26:52 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Eric S Fraga Subject: Re: #+include and org-export-before-processing-hook References: <871rftwtyw.fsf@ucl.ac.uk> Date: Sun, 13 Dec 2020 18:26:51 +0100 In-Reply-To: <871rftwtyw.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Sun, 13 Dec 2020 16:28:55 +0000") Message-ID: <87k0tlzkf8.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-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: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bq9JKDoB; dmarc=pass (policy=none) header.from=posteo.net; 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: 882CF940416 X-Spam-Score: -3.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: wPeT27R8HDFU Hello, Eric S Fraga writes: > Hello, > > I have a particular function that I want to invoke when exporting an org > file. This works just fine, adding this function to the > org-export-before-processing-hook, for simple org files. However, if I > have an org file which uses #+include: to include other org files, it > seems like the processing doesn't happen on included files. I have the same problem with a function that I wrote to not export certain footnotes, and to date I have not been able to fix it. According to the `org-export-before-processing-hook' docstring: " *This is run before include keywords and macros are expanded* and Babel code blocks executed, on a copy of the original buffer being exported. Visibility and narrowing are preserved. Point is at the beginning of the buffer. Regards, Juan Manuel