From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qNZgDDaOImANUgAA0tVLHw (envelope-from ) for ; Tue, 09 Feb 2021 13:29:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OBwrCDaOImBPWAAAB5/wlQ (envelope-from ) for ; Tue, 09 Feb 2021 13:29:26 +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 3F9CA94030E for ; Tue, 9 Feb 2021 13:29:25 +0000 (UTC) Received: from localhost ([::1]:35894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9T50-0001T8-Ue for larch@yhetil.org; Tue, 09 Feb 2021 08:29:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9Sxi-0003kK-HN for emacs-orgmode@gnu.org; Tue, 09 Feb 2021 08:21:50 -0500 Received: from mout02.posteo.de ([185.67.36.66]:54323) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9Sxf-000153-In for emacs-orgmode@gnu.org; Tue, 09 Feb 2021 08:21:50 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id C2A982400FF for ; Tue, 9 Feb 2021 14:21:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1612876904; bh=uit+EwObJWpmNy4G66fqJH5sT5Ezmz2VdlbBBOrA1xA=; h=Subject:To:From:Date:From; b=P29uBbSykPLifCR4ZnsI5/68vAGov/I/x58fHjMS0RqYcSsSo1VwT6fN2UAElzUAa UqHpzk+hcPnKChpAkh3b6uiu/MMkrbrdsLm8g8/TNryQhq9TlZxmooUiwMBkuNmDpr 4FfrZ8dSdMDGprTzWAQehKgDdH/HglEwiB61hIwwnzbRGo8iFnnkA7IDIBB7XoDC1i 9aCuqC12YqCnqvJir4+svRAUNV6nYrSzBDxFQhkTo87Z/FFhSOUaQlVvlENMJAzqnu EVIvNh6UE6mqGlMbJytMAg8ctToti+/oDM0uTVRysqWPCdL9Egzp6kjGhgeXuTnMqR JkTmrMay/eelQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DZk7W5VvPz9rxL for ; Tue, 9 Feb 2021 14:21:43 +0100 (CET) Subject: Re: local variables and export processing in hooks To: emacs-orgmode@gnu.org References: <87sg65tuqa.fsf@ucl.ac.uk> <20210209113052.GF21978@tuxteam.de> <87a6sdtphg.fsf@ucl.ac.uk> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= Message-ID: <5917189e-3c8d-0854-561d-3af02a3868b4@posteo.eu> Date: Tue, 9 Feb 2021 14:21:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <87a6sdtphg.fsf@ucl.ac.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr Received-SPF: pass client-ip=185.67.36.66; envelope-from=sebastien.miquel@posteo.eu; helo=mout02.posteo.de X-Spam_score_int: -46 X-Spam_score: -4.7 X-Spam_bar: ---- X-Spam_report: (-4.7 / 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, NICE_REPLY_A=-0.265, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: , Reply-To: sebastien.miquel@posteo.eu Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=P29uBbSy; dmarc=pass (policy=none) header.from=posteo.eu; 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: 3F9CA94030E X-Spam-Score: -3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: JYy35SAFVVq2 Eric S Fraga writes: > I tried but this doesn't seem to be propagated to the export as the > export works on a copy of the buffer, not the buffer itself. That's > what #+BIND is for, supposedly... I think this buffer copy preserves local variables. I know I use a such a local variable and its value can be read during macro expansion. It seems the org-export-before-parsing-hook functions are run before the #+BIND values are collected (see org-export-as in ox.el). -- Sébastien Miquel