From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id ONgLFlzOa2auMAAA62LTzQ:P1 (envelope-from ) for ; Fri, 14 Jun 2024 05:00:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id ONgLFlzOa2auMAAA62LTzQ (envelope-from ) for ; Fri, 14 Jun 2024 07:00:12 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protesilaos.com header.s=gm1 header.b=J+e4UCxh; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718341212; a=rsa-sha256; cv=none; b=lqXLjQKbdo3VAK0qDvLCKtvPsPViYwPB6Oi0vdlGAq8nwaztUvH1YjB5BdI/qw7IKKl/Ap Fa33uYJekLPutlLCBfabo0SlV0MWRmaI3g1LKRFGMMz7AuezDEtzXthFHWeKTBum3z+qtF 55cqFzTp7m/raD6Ag7Lsnc1I0Or8UKPgu4xpUt1gzIZBJVIZSENbgSoIUbEEQ1Hc3qksSB 4/hIHfxX7YUKY0znMyNp7cNw/xzUq1Raswl7KU3kk8J3+sUjwP3Nv8AvqvOj+8uYEJSD3S dqAdvP55PAaBs9BuFInStgVrm4d/H9HVx1PZhLETxMM2eHUdA8byCgTQeOFItA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protesilaos.com header.s=gm1 header.b=J+e4UCxh; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718341212; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=bptaQ7fuw7+3zWHO2mBZY1K4GdSp0hOjydVusBUIIPU=; b=gb+Jee47m127MCsE9pcjEziwL1K5wB91mCzXJY+ek/nJixO5XQ07RCkXSDniRTkeFv+1iR sBd/0+kXALD3D00woUDDOiLt+yhh2cAlkwS7W3jaxiUtr0oaSxG6Gg+6gsc7jHWFdT3n1J S78LZQw8i5Xe9hqbmwv22CKMJJ4poTPsO5tH84A+fol/Jq/9auR8pZtBvLUjc2jVBD14Jq F9gZi3dPnqaRcJHGyuqhUWYGEM1j0ad753doaZL+z+rwNHjQaBBpfDm0XhJ0HdQv1VbueT 3HAC5ofWqvpptxicePCL6EzZc5zq2/UmGHbNiFZassgg7CGUz7P8H15zD6u8mw== 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 3C0A91DC39 for ; Fri, 14 Jun 2024 07:00:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sHywz-0003W0-Sg; Fri, 14 Jun 2024 00:54:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sHywy-0003Vk-JE for emacs-orgmode@gnu.org; Fri, 14 Jun 2024 00:54:08 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sHywv-00056z-Kq for emacs-orgmode@gnu.org; Fri, 14 Jun 2024 00:54:08 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 0562E60003 for ; Fri, 14 Jun 2024 04:53:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protesilaos.com; s=gm1; t=1718340841; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=bptaQ7fuw7+3zWHO2mBZY1K4GdSp0hOjydVusBUIIPU=; b=J+e4UCxhK4p/u6UoEjh/J73Zrh9vKtpR9QbsHVKIX7dUELzfXZDuXY3jg2bjJmy0TUY/pL PRFv6hNo6HNYQUbDfjbU504BG8VUxRAw61w1n2p8F4d471E0o4ePxRrig7BN0zPmd/S1KW 8BIS/24Cd57hFDaTRsjSYtoHRiRAottF5NGQj0XEUUjd4nZp0o8TZ51O7t0aiKc6OT3fcV Rjf9k2UfKxXDF9tdBp8RGBTk3BjyCTf+Hai9H4vr32A2Hnj5p3vrgZhgTIHSnGX7+musIS 6pL9xSKPObY/8oNRhHweRP+3Llyypt8hs69JpfO/MdxEH38xpmg59JZ2pziUFw== From: Protesilaos Stavrou To: emacs-orgmode@gnu.org Subject: [BUG] Export does not read .dir-locals.el [9.7.3 (release_9.7.3 @ /usr/local/share/emacs/30.0.50/lisp/org/)] Date: Fri, 14 Jun 2024 07:53:55 +0300 Message-ID: <87msno3z18.fsf@protesilaos.com> MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: public@protesilaos.com Received-SPF: pass client-ip=217.70.183.195; envelope-from=public@protesilaos.com; helo=relay3-d.mail.gandi.net 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 3C0A91DC39 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -7.15 X-Spam-Score: -7.15 X-TUID: RTF6N7nN1Y4y Dear maintainer, I have noticed that the export mechanism does not read the local variables of a file when those come from a .dir-locals.el. Steps to reproduce this: 1. Create a test directory. 2. Inside of that directory, write a .dir-locals.el file with something like the following: ;;; Directory Local Variables -*- no-byte-compile: t -*- ;;; For more information see (info "(emacs) Directory Variables") ((nil . ((testing . "hello")))) 3. Now create a new Org file with a code block that includes the variable we introduced in the previous step. For example: Does this export? #+begin_src emacs-lisp :exports results testing #+end_src 4. If you do C-c C-c on the code block, it returns the local value as the variable is not void. But if you try to export, you an error that the variable is void. Perhaps there is some user option to let the export mechanism read those local variables? All the best, Protesilaos (or simply "Prot") * * * Emacs : GNU Emacs 30.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2024-06-11 Package: Org mode version 9.7.3 (release_9.7.3 @ /usr/local/share/emacs/30.0.50/lisp/org/) -- Protesilaos Stavrou https://protesilaos.com