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 B2gKNQpzImAeTAAA0tVLHw (envelope-from ) for ; Tue, 09 Feb 2021 11:33:30 +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 iD1QMApzImDtBAAAB5/wlQ (envelope-from ) for ; Tue, 09 Feb 2021 11:33:30 +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 D631C94060E for ; Tue, 9 Feb 2021 11:33:29 +0000 (UTC) Received: from localhost ([::1]:54428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9RGp-0008Mk-JA for larch@yhetil.org; Tue, 09 Feb 2021 06:33:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9REP-0007K7-LC for emacs-orgmode@gnu.org; Tue, 09 Feb 2021 06:30:58 -0500 Received: from mail.tuxteam.de ([5.199.139.25]:53116) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1l9REN-0003O3-2d for emacs-orgmode@gnu.org; Tue, 09 Feb 2021 06:30:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=7PWnQhXSo1pAdIrgiSEMm5qzIKFwS9sEuPGWQwEPSxU=; b=M6wcz5n00V5BGsj0hA0XydySNiT4tmITN9QNRaftLdCP/lXp3+39K19nMhIjWJfOz50bdA5+J1EQ9pNnxI7T8olHbGe8hQcwLJEXX6CjDkG12qH42U3Kb412RztAvwrCU8q4M849DBWLCwvyWv6KPkvr8Ut+kRSuZjmO3SYhQZ4J201x4//LSsB03S3JBSWkQbeG9okTxmBpEICdUMgncLbCZRLjao73KwuJZjSP6SNxihm5Im+2GldWfawts2HL0jQDRR3M+VOJK92FZSw0MHciQlokeinGN+QXCmGfnLNlWUzFj+jK7DXZ5nGrOKogpTHbwrz3JRh+pUCzKLkkxA==; Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1l9REK-0007i6-Dz for emacs-orgmode@gnu.org; Tue, 09 Feb 2021 12:30:52 +0100 Date: Tue, 9 Feb 2021 12:30:52 +0100 To: emacs-orgmode@gnu.org Subject: Re: local variables and export processing in hooks Message-ID: <20210209113052.GF21978@tuxteam.de> References: <87sg65tuqa.fsf@ucl.ac.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qp4W5+cUSnZs0RIF" Content-Disposition: inline In-Reply-To: <87sg65tuqa.fsf@ucl.ac.uk> User-Agent: Mutt/1.5.21 (2010-09-15) From: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.66 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tuxteam.de header.s=mail header.b=M6wcz5n0; 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: D631C94060E X-Spam-Score: -4.66 X-Migadu-Scanner: scn1.migadu.com X-TUID: xYWmKOdaw7d0 --qp4W5+cUSnZs0RIF Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 09, 2021 at 10:13:01AM +0000, Eric S Fraga wrote: > Dear org mode users, >=20 > 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. >=20 > 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. Perhaps a file local variable? Either in the first line: -*- mode: MODENAME; VAR: VALUE; ... -*- or at the end of the file: # Local Variables: # mode: org # my-var: value # End: (Indentation is for clarity, remove) Cheers - t --qp4W5+cUSnZs0RIF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmAicmwACgkQBcgs9XrR2kZapACaA1T1MLzGFCFcYGaJi7homj7Z 3HgAnivcCJAaMwLFyuBQGyBKDS2HrrC1 =Hm0n -----END PGP SIGNATURE----- --qp4W5+cUSnZs0RIF--