From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id APNFDY0F7WL1QQAAbAwnHQ (envelope-from ) for ; Fri, 05 Aug 2022 13:57:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KAs5DI0F7WIWgAAAG6o9tA (envelope-from ) for ; Fri, 05 Aug 2022 13:57:01 +0200 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 D7BF2F211 for ; Fri, 5 Aug 2022 13:57:00 +0200 (CEST) Received: from localhost ([::1]:37394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJvwq-0002iq-1h for larch@yhetil.org; Fri, 05 Aug 2022 07:57:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJvuR-0000qN-2U for emacs-orgmode@gnu.org; Fri, 05 Aug 2022 07:54:31 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:37748) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJvuO-0000D8-GO for emacs-orgmode@gnu.org; Fri, 05 Aug 2022 07:54:30 -0400 Received: by mail-pf1-x42c.google.com with SMTP id f30so1670593pfq.4 for ; Fri, 05 Aug 2022 04:54:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=/jpbLmRgcIFp3pLWbE+/6e1NGGOIApDSarq3V4lEjV0=; b=UYGNluOWMuCGkQLQ3QiI/t1B4o/xXN8GttFsi0MqNd6fAF7ebX+cqJFM0QY9DIZNDa 3IaoMfVPDmEBkjSe7Ac3q7XDagoyLeadqzp1rvGznlOnIrtbz6mWRnRtgx7/TiLBYWcd j+h2fU7Y92ymJZp9O0+bzTHe/cU/bWjOVn0xRV8tJK/FmBDmlDd6PAdBFTOZlV9kZfin V2EusgDNnRdqke/UPT/nI8i/2E+HPOd2oOu1RIfwpDWEFHyfWHtUHf9u9gBf2AcQYsHe Dyya31Wf9LYYm2/KNRvMTSrXGJF+YXJvH4rKu2URzXIGlqr8GbGuE+nnPxN9vywinZEC gPQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=/jpbLmRgcIFp3pLWbE+/6e1NGGOIApDSarq3V4lEjV0=; b=lHTar2qwA0bJO9ALJp/47RO4VSA5G5VrjXZ0x+04vzaFyaJZ/QaWuL3OTuHbl4nkAE Ri6HgU5Xr013VrBoKrgrDeak6zUOlIzx6RcIy4uVPuwaMPxq+5g2MQeghPP2jmCHCHGo SqwR6mbuF0oml3/O1vOeSsbMclc7/ztcDjxc08MBHPCaPcWxE1LVnLrGltpYUFCUGRYA agPMHc2cRbllszdMMh6En6esMjvnY6psl9ZG/xLwZDIcrEDMvnC2jfg2Oc/aL9FCSM53 JTiDSTJmnFnfnDttgPeVJhFCHFWpnvyXuf/544TGMLabwNscwEQwbztidxQKFzpi06kM z6lw== X-Gm-Message-State: ACgBeo0d2zFIUwEKDR5Y76ZfJZMrrdBM/UfYBZWdZ09UdjvRLPXqR8pY Y7N/e26XHzMBZfYrPNR67tz/fmo4JtpWYQ== X-Google-Smtp-Source: AA6agR4gZKBSak8DatIyXseRegAOJtoCMPWiAFxG86ff+bhyyRyrd7vhtGRGOWpl7W6665GElCDGRw== X-Received: by 2002:a05:6a00:1908:b0:525:5dad:cb1c with SMTP id y8-20020a056a00190800b005255dadcb1cmr6458290pfi.47.1659700467057; Fri, 05 Aug 2022 04:54:27 -0700 (PDT) Received: from localhost ([2409:8a70:2b5:4040:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id g18-20020a635652000000b0041af82dacf7sm1308382pgm.73.2022.08.05.04.54.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 04:54:26 -0700 (PDT) From: Ihor Radchenko To: Alen Alex Ninan Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Re: Help with assigning org-attach-id-dir using directory local variables In-Reply-To: <87tu6xlgtx.fsf@localhost> References: <587be554-906c-5370-2cf2-f08b14fa58ff@gmail.com> <87leu3begz.fsf@localhost> <87tu6xlgtx.fsf@localhost> Date: Fri, 05 Aug 2022 19:55:31 +0800 Message-ID: <877d3moqfg.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659700621; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/jpbLmRgcIFp3pLWbE+/6e1NGGOIApDSarq3V4lEjV0=; b=PBpnURooqWEDABq7a9agDmewyLOI+gNp6mg+ponlawNr3vObPgMXLSdmhitSsmjyTKQtEb VRC41M0wAIVHE5DFyp8XWWnOcsd+aFF7OfMGr2sOmakm5u1QIUpJDcHHk48NqZHcmiKvKh PgZp1IfJTJek3kBRD/lyVOj9F1Q1shJ+K/TkIba12d7G46kB3m4sw++m2gN8J207nCa8YW AjDJlq3DfzhwXLApEo2ix5wXMvz9Wrwxw3pUfh5yul7fqRbjHRXz+53vsgCsc1+oByYMiZ Lfg9dJwxIqpWB7tqnj+ak1sm1sU2NreeQk3fdCzjr0DlQVmwBd8eerMaXowHTA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659700621; a=rsa-sha256; cv=none; b=Kss7cN/qiJRtPDcTGwFet9WUq/cEMQ+VR7T5BhxZC33M02fHEQtUGqx5NS/5nq6fZggsfF /1U2u9vYfms2I0aqKopzye9z29r4Tz7BxeDDlSEPxjpeQKK6G+oORwN8ZGOZzSHjYrFSv7 aD8XkPXiv8iS5X2/NOWvmEG+t0tSUFuRR1zTkxrgoAMaE+bcNK96S25FuFpklKYPjUVkAl gwSzj0GB/sAIgmKhcq7u7mdomLBy0d4ZkDSOoxiZlzppNpC85jEohWIqYFxzQDLv1OGjge UPrzyQo2bywvP2JoO+HUea+mApUk7+6FM2SARhJqN2sCSAwobBq7qpYGP7yHrw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UYGNluOW; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -4.90 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UYGNluOW; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: D7BF2F211 X-Spam-Score: -4.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: bkRXSI2vn5LW Ihor Radchenko writes: > Ihor Radchenko writes: > >> I've seen multiple issues coming from the above behavior. >> Hence, I'd like to propose Org to call `hack-local-variables' early >> during startup. The patch is attached. > > Applied onto main via e22b4eb7a. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=e22b4eb7aab9668826dc8ba76ea1d1d7b144a856 Unfortunately, I had to revert the patch. It creates too many issues with no good workarounds. I instead asked Emacs devs to implement an API to let major mode decide when local variables are loaded. See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57003 Best, Ihor