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 EML1AA6VJWDKbQAA0tVLHw (envelope-from ) for ; Thu, 11 Feb 2021 20:35: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 mp0 with LMTPS id oBJlOA2VJWCfOQAA1q6Kng (envelope-from ) for ; Thu, 11 Feb 2021 20:35:25 +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 3E4F69403A3 for ; Thu, 11 Feb 2021 20:35:25 +0000 (UTC) Received: from localhost ([::1]:51568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAIgL-0004FQ-6c for larch@yhetil.org; Thu, 11 Feb 2021 15:35:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAIKA-0004T7-1o for emacs-orgmode@gnu.org; Thu, 11 Feb 2021 15:12:28 -0500 Received: from mout01.posteo.de ([185.67.36.65]:41044) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAIK7-0003O1-5Y for emacs-orgmode@gnu.org; Thu, 11 Feb 2021 15:12:25 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id A221C160061 for ; Thu, 11 Feb 2021 21:12:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1613074338; bh=w4ysXoMtysKIeQSatK8qV2frE31mFScAXhCRYrFNGWw=; h=Subject:To:From:Cc:Date:From; b=PWXnuRB6v7bv3M489w3lJzohbz4oGJkGFIYUo0QMYsSHaFKPt0YVD1RAkjtDhrSgL f+tym/a6dwicFzLU5/wgdvc8RJ8/UCdQQ0pE2vEU1HLBlDdgdDV731eq5wGczBBjYK 40mq+geKUdbtSHeLElhHV/MRTBJ/BZd3OqCqdWEYjMAJoaj4ijZ4Q61wXzmUhTI1i7 qpYtecjGnpEd5dbxYuUXk6wh9gnCb28MTIhmSRxUtO1FKfSUwTozERFlfN6nIzvD7n rPhSsHf4F9QyiBL8TF/D0/Sl0CpaBoGyKQPkwla7rh55e/ttj5Wl+uOhflQxTNCxgI HiEf+nSgc3FRg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Dc78K6kXRz6tmW; Thu, 11 Feb 2021 21:12:17 +0100 (CET) Subject: Re: local variables and export processing in hooks To: =?UTF-8?B?TS4g4oCYcXVpbnR1c+KAmSBHw7xsa2Vy?= References: <87sg65tuqa.fsf@ucl.ac.uk> <20210209113052.GF21978@tuxteam.de> <87a6sdtphg.fsf@ucl.ac.uk> <5917189e-3c8d-0854-561d-3af02a3868b4@posteo.eu> <20210210205610.GC6355@atlantis> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= Message-ID: <81579f62-41a3-552c-7f2e-1885e591d1d5@posteo.eu> Date: Thu, 11 Feb 2021 21:12:17 +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: <20210210205610.GC6355@atlantis> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr Received-SPF: pass client-ip=185.67.36.65; envelope-from=sebastien.miquel@posteo.eu; helo=mout01.posteo.de X-Spam_score_int: -44 X-Spam_score: -4.5 X-Spam_bar: ---- X-Spam_report: (-4.5 / 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.119, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=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 Cc: emacs-orgmode@gnu.org 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=PWXnuRB6; 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: 3E4F69403A3 X-Spam-Score: -3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: AdKn0s/WkKn3 M. ‘quintus’ Gülker writes: > Now I wonder whether #+BIND is more elegant. But my macro expansion > function modifies a buffer-local variable. Does #+BIND allow for that, > so that the changed value is available in the original org buffer? The purpose of #+BIND is to set some variables in the copied buffer. Also, these variables are set after macro expansion (and org-export-before-parsing-hook). I'm curious, could you explain why/how you use macros to set variables in the original buffer ? -- Sébastien Miquel