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 6I5mO1xgImCUFwAA0tVLHw (envelope-from ) for ; Tue, 09 Feb 2021 10:13:48 +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 ADs4N1xgImB2SQAAB5/wlQ (envelope-from ) for ; Tue, 09 Feb 2021 10:13:48 +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 126DF9404C8 for ; Tue, 9 Feb 2021 10:13:47 +0000 (UTC) Received: from localhost ([::1]:52432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9Q1i-0005Aa-Fp for larch@yhetil.org; Tue, 09 Feb 2021 05:13:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9Q19-0005AH-3V for emacs-orgmode@gnu.org; Tue, 09 Feb 2021 05:13:11 -0500 Received: from mail-am6eur05on2115.outbound.protection.outlook.com ([40.107.22.115]:47712 helo=EUR05-AM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9Q15-0004jx-Ah for emacs-orgmode@gnu.org; Tue, 09 Feb 2021 05:13:10 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jcbww46djTBnx7grHB7CDkQRZR53/pgVRDJTDEbFPRBeVXeJBqw8OfG1HxPB/owByQKpGfgcXK6amwir47n10i1w+gdMSbfLSIHso9ySn3FYjnkekn/egejDx4N3Qr4ztYKInlQ7UfneFy+LT1R6ZSYeM4cKodG/Jo9qJECX/QWVb2ZPyzk1mG/s16ICcj3etHz+Z0QWgHEJDbUcg+ztodoSs/aYXmEiANTTQ5drz8nnQBWZMwPzZRR4jb3sp69guGSGSeDhumm8O6hQrDHqR8NSp6YeqVduIOUJCCMjV94G4d8Z+Cvy/oL9tbRH2ZhWN2fFHNmCk7d6fbOPV2SnGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jwS6GlefnaqspwjIW6LoydiELw8DvY/vAeAxX/5ojbA=; b=W13NEBkm8ROeXX6up6ntL40i4A0/8In1UZW2gVUiWeOFl219/Q8sLByDq8TIFmsZcBmi2ACB9eQ0/7K7pv45XDnC/vn4jYptNFUPofJ+ZSw0T57Y6+CJANZHUO6Cx8Bs/FT+8cIqrwEG9s2YZ8WUKbd2KKRUtNMKG0UgZlrgtyBuSSSt4auI3AvfD4a9GoHkke6SorglU1pYQZyAlAw60aEJoKMoIVh8ijdGtKUTCUo0JGwhqfvgopzdJSV8hLy/FIZuGrV6th9QGquv2y+ezUvwaJNtLPlxlGj+v6OXaKNM3gs4Q96LxrjpEOBsi2Qhvo7NOFkC7ZEFawf75FF0Og== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ucl.ac.uk; dmarc=pass action=none header.from=ucl.ac.uk; dkim=pass header.d=ucl.ac.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucl.ac.uk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jwS6GlefnaqspwjIW6LoydiELw8DvY/vAeAxX/5ojbA=; b=CTeFq808SgDMyk2lA8wAlP3QaXAHk9e51a+FAKzy7T4ACXnXGxfYisu+w9OySE2KXWWx4/R4vjS8D9VtrCfCNsIbi2abBPsTwAnHD90+4qG3/kXMoxme12zMLgjcXxvWTpKRBqZMYJPjNdgA5tsLImguZfkzr4R4ZL8WfbJZvr8= Received: from VI1PR0102MB3327.eurprd01.prod.exchangelabs.com (2603:10a6:803:10::26) by VI1PR01MB7150.eurprd01.prod.exchangelabs.com (2603:10a6:800:199::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.28; Tue, 9 Feb 2021 10:13:03 +0000 Received: from VI1PR0102MB3327.eurprd01.prod.exchangelabs.com ([fe80::9171:e6a:e540:66a7]) by VI1PR0102MB3327.eurprd01.prod.exchangelabs.com ([fe80::9171:e6a:e540:66a7%7]) with mapi id 15.20.3825.030; Tue, 9 Feb 2021 10:13:03 +0000 From: Eric S Fraga To: Emacs Org mode mailing list Subject: local variables and export processing in hooks Organization: On the Interweb somewhere X-Url: http://www.ucl.ac.uk/~ucecesf/ Mail-Followup-To: Emacs Org mode mailing list Date: Tue, 09 Feb 2021 10:13:01 +0000 Message-ID: <87sg65tuqa.fsf@ucl.ac.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Content-Type: text/plain X-Originating-IP: [95.147.101.200] X-ClientProxiedBy: LO2P265CA0163.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9::31) To VI1PR0102MB3327.eurprd01.prod.exchangelabs.com (2603:10a6:803:10::26) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from t3610 (95.147.101.200) by LO2P265CA0163.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.19 via Frontend Transport; Tue, 9 Feb 2021 10:13:02 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d008e3dc-8561-4fc9-9283-08d8cce3492a X-MS-TrafficTypeDiagnostic: VI1PR01MB7150: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iYKFbD2QvhIrz6HyOdhFAL7sywExQwL38R5w/zFCaqWBi7MbcdU7+L7JpBxZ7YRRMDMGMLzEoAps5FUZftInseB0YHwcNnI17a4HcXKlPiAAzNpN8ey+vurQxuO9w/Av/HKKGUurAWZxAtHKK+nEOtaVh1PL54ht5yRyLcJbXpFP0I21l1jLRCkZOgTE4n/xP9QS8v8a+gN19r60GqdcMfxNNnO8eYkd70hBc4J2QSu5crH4L3hpVYZ36NfHy4co/mXrgHl9OTe6uZ/tK2CEqmVjNm3vXTDI0kx/gw55qsyi8zvo1dvrjXNv1qChH1cVFRethQ8jNbzet1D2VwFuYbRQhYdGaoDAq8c7mdC8R7HGjuN7fAnkcT59Qh8n1XDvRsUVmUzzui3DTwki9ojeRFg8hsixruDcV+qr8UJZXf69uokTgZgZJpuha5eDwYLn90pileeMQ83Fu+ftTrWt4IW5kKHUdkfwcTvfB+ZlX2USg8REEET8NKp2Ho7/fecvB3tZ2jDaeAVGRxlHT+2T4Q== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0102MB3327.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(136003)(346002)(39860400002)(376002)(186003)(86362001)(786003)(316002)(66946007)(16526019)(36916002)(66476007)(83380400001)(2906002)(66556008)(36756003)(6916009)(478600001)(8936002)(4744005)(6486002)(26005)(6496006)(2616005)(5660300002)(956004)(8676002)(52116002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?0BRVUUlfyfUI+3/xUPvObk2FaF8iF0Z8mIb4qhu32hJKotP72HwxitdHpDu1?= =?us-ascii?Q?tTXt9NRVj/qeXyl2gsCRXSlIdVLNw23MLeGs+iwa/wsxJrIrVIqyDnM5m8GS?= =?us-ascii?Q?T+38iphLRIC/I/rDhlzUd3dTlWnnViPVnf/T1OmRkgAXbOSkrvh+rcQq4M+s?= =?us-ascii?Q?VEVFCuvqPh7HFUuhuOZr9kq3r3QYX0tbhiDgMAt/DvI7TdDviFhXuklqnUPd?= =?us-ascii?Q?iKgN+TOG90rB70TW7whvtEprWsESmFY6aMp7Tp+g8TVJ7p8/mvypEBen/KEv?= =?us-ascii?Q?aQg8NeJCospjDPVF052Whl4vQP7AkQ3rXglyiVff49rDBdQVbAmTOupks+WP?= =?us-ascii?Q?lv/MlviRq/7Vca/hQwa3/PtTU/YsMhzVEbeIzOEJRmW35w/skVJBqhPsrW61?= =?us-ascii?Q?wgNAsc2xJAwEd4gcuChOomuH+hFY7ugw8+bGjRWRDHcFepoTpWsd5bihi/3/?= =?us-ascii?Q?X59Q298B4vGQPF+JprE96lPulhxwQD7sgSQlPBI5r3HfpPrZlQKl4PMxXVmV?= =?us-ascii?Q?3HX2KFco5NSoarnh9PPwDmfKl+WT9TETpQrSHyCnL9JlUOteytaTYGkkVMry?= =?us-ascii?Q?ybTHUSwEo3RfmizihdyT/dwJ2bsUihGCkJW5GgwThzLFT020t1/ZVr8ajdrq?= =?us-ascii?Q?znfQzgn0Kkjb0gXfAkuUswhpaPoPuCEAUDzA7fNUsrEfAsUb+8pRcMtqyghi?= =?us-ascii?Q?uZy04nRPL/bVhCtXpiu/q20k778iwPYeZQex1Z8RS/X/UfJ0gBAopIW0FCfi?= =?us-ascii?Q?F9sLAgHszuvpDOlXsN+4OEAWWepErJUYqTI0+LAt7yFrGwRBusMZGV+qCPkP?= =?us-ascii?Q?X0EsrZ7QBkBI9+oqA04XqxDP+7dvnxTxfodxDjVtfMh67F+qAVKsfLBv4iSl?= =?us-ascii?Q?1qs/qE1AsnTn72RzAkoquS+107ZKpZLj0ArGOHvpKvKu9lSs0MHbg06NceTq?= =?us-ascii?Q?BNO06XpBuHr+d8K6kuevX7n0UdoVFKObHhUiUa4OFiIo3wkuiju+Wij/Lpb0?= =?us-ascii?Q?55lxyBIAzfdwlN68gqyQeN2A4ofjPWR+vj5HJRTjF2VnBnKpxXmdPKgf7wcZ?= =?us-ascii?Q?y2S8D7SK7SE/QxBF8coti0TtQ26sXBtyVh8p9MfbJorF6/uC3bk52FrjRkLp?= =?us-ascii?Q?CLNu19rQ6hCwXFi9IbJL/GElymle+YdH5xFWoQsFKgN8oXDwo0J2hzMBbqG6?= =?us-ascii?Q?s86WnRIEj9tG2v1rgzRlaA3k3Jm0U1zGVFf4DtFMIcJ7HG0cL8Iyg6zPDTHE?= =?us-ascii?Q?zvx6xOtK7Gn3njFGeEto00yChMInBI83KsDGOo6zs7TrYz/fCyIwHPx3FrtN?= =?us-ascii?Q?xy1TroqBn5nZmnwXBcpF+vaW?= X-OriginatorOrg: ucl.ac.uk X-MS-Exchange-CrossTenant-Network-Message-Id: d008e3dc-8561-4fc9-9283-08d8cce3492a X-MS-Exchange-CrossTenant-AuthSource: VI1PR0102MB3327.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2021 10:13:03.2083 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 1faf88fe-a998-4c5b-93c9-210a11d9a5c2 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: nu0uWPGVP6+IoIcXiLJrOF0HRO0CDmzVv6GKdE92zIH56tzg61ZcIKYJud5MGsVdfKNIZKX8Un3LPNqSodD05Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR01MB7150 Received-SPF: pass client-ip=40.107.22.115; envelope-from=e.fraga@ucl.ac.uk; helo=EUR05-AM6-obe.outbound.protection.outlook.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b=CTeFq808; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucl.ac.uk; 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: 126DF9404C8 X-Spam-Score: -4.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: navitV1PD7vm Dear org mode users, I have a small elisp function that I use to process my org file before export to LaTeX or HTML, adding this function to org-export-before-parsing-hook. Briefly, the function exports the TBLFM lines so that the org table calculations can be inspected. This is for pedagogical use. This works just fine. However, I don't want to do this generally so I have a variable that controls whether the processing happens or not. Is there some way to make this variable local to an org file for use in the export? I have tried combinations of setq-local and #+BIND: but have not yet managed to get this work successfully. Thank you, eric -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-213-g49364f