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 +B9AB5+WcmIhcQAAbAwnHQ (envelope-from ) for ; Wed, 04 May 2022 17:07:11 +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 cKZWBp+WcmLKtAAAG6o9tA (envelope-from ) for ; Wed, 04 May 2022 17:07:11 +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 314E215211 for ; Wed, 4 May 2022 16:47:06 +0200 (CEST) Received: from localhost ([::1]:48594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmGHR-0002oC-1G for larch@yhetil.org; Wed, 04 May 2022 10:47:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmGGc-0002me-Az for emacs-orgmode@gnu.org; Wed, 04 May 2022 10:46:14 -0400 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:39840) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nmGGa-0006wc-Qu for emacs-orgmode@gnu.org; Wed, 04 May 2022 10:46:13 -0400 Received: by mail-pg1-x52f.google.com with SMTP id i62so1332969pgd.6 for ; Wed, 04 May 2022 07:46:12 -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:content-transfer-encoding; bh=sCeogbnTki+0oBGwXjxu5ECUrQVXke1SbebRQPFL8VU=; b=dK4SnGIApjW1YOwYdWFphWqCPeMVfMFDNbFIbxnCKjHlvqGJG0tQR8a+6PzDgL8mU8 iPa3Zc7zVxBBKZioLf/5ZGWLFhWaLteJ/GRv34YfgRTqKOectGjKLPIpS4B3W9dSD3g4 rXPudRyAo1l4RTVo5sSnn5+cFwbMffnndNTxUrPs1tyOlRPhSAHnoqSjW70n31QShc8V L0woFvPuoZolN5IuIRlBLRFOqZVghGneYY9/68zAoFnfsiWNMC3LT9mCO4gOCEtHPDdV 3SSf7ZqvAIk0iRGaVW5Qt4M+tAQ3vogPwlCWCtqb/ZmJP1voZf53JL0qNgOdCvKTBtAg XxBg== 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:content-transfer-encoding; bh=sCeogbnTki+0oBGwXjxu5ECUrQVXke1SbebRQPFL8VU=; b=S3yScO8gos3fRTyLuCNiKoPMqibWeQHUGjQTSTpYUnmkD9urFMXufhDRTOvkffoDi6 GvcH9nF+U0BBmo0V/wcRqfNn0voytNuntlrSpfEyRP4q9f0voxEmvk/oLNuN+z/QyRiF Y4zrcQP7Q/9EBYoCnIibn4YUfmAPzJZSc8W5IKEKbXXOW6xQLwvHUa6nBLPzPuh6h1EG 4PA8sK1rEYZo8lZMZMJcepkHyu4iC2veK+e0dxuusX5ztYUYOKZpzED4HcWh7RWSZCSw kY5SlBDjdgOK/21JJZE4UH7ef1WuQy+e5kwMLRCAOqpaBrG9T6DgOFgyQfAR7ZF6uTHw CRLg== X-Gm-Message-State: AOAM533aaxUstWWQqiCgNLeUVB274GAJyrr6WmhSPjnHgUwMt3bllJ5J hsBOf31Vl+4YvkXmHiYOcyM= X-Google-Smtp-Source: ABdhPJx//oeBaUH4ov65Thkeeu1lRTDf+IQTMTHmcAqEhiVhzCVdyolxG2OLmL9uGbDbN+P8Mspnqw== X-Received: by 2002:aa7:9041:0:b0:507:9219:ce61 with SMTP id n1-20020aa79041000000b005079219ce61mr21051359pfo.30.1651675571440; Wed, 04 May 2022 07:46:11 -0700 (PDT) Received: from localhost ([192.161.177.252]) by smtp.gmail.com with ESMTPSA id v6-20020a1709028d8600b0015e8d4eb2b0sm8365083plo.250.2022.05.04.07.46.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 07:46:10 -0700 (PDT) From: Ihor Radchenko To: Robert Pluim Cc: Max Fujimoto , "emacs-orgmode@gnu.org" Subject: Re: org-startup-folded does not work with directory local variables In-Reply-To: <87tua5758y.fsf@gmail.com> References: <1984742079.3751611.1651538242680.ref@mail.yahoo.com> <1984742079.3751611.1651538242680@mail.yahoo.com> <87wnf1inwk.fsf@localhost> <8735hp8mja.fsf@gmail.com> <87ee19if6h.fsf@localhost> <87tua5758y.fsf@gmail.com> Date: Wed, 04 May 2022 22:46:56 +0800 Message-ID: <877d71icdb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=yantar92@gmail.com; helo=mail-pg1-x52f.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=1651675626; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=sCeogbnTki+0oBGwXjxu5ECUrQVXke1SbebRQPFL8VU=; b=kKzqMJ2RhdnchFZ6DhJV0DiW4Cf6sjkwzi4348AQ4tLJC6fPJBzmAMvCKCJDOM96jAbofs qhdyNP04I/G1eoKQvzb3WVTIeMOuTAE5fS8begPcMLAbaz+4UwELpOo8gOQshdMWf0ePbx QbvE2XaG60RJkxfdXCw2msFSXWlVbQyDbkixux/GSojo7ZfzswWypHQwGe/1T+P308GyiF v77nIh6NufKfcar5J39W6WgzRwfXzxOfB+DGkkYkx/CWGS5U4QvgrvFw6hbkF8VXmw/G6y c/adObsvRHzaN5U0F3zbcFduWypK3UhtSyC+mpn+b2qfOHb8EjJtnJXNVA0zOw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651675626; a=rsa-sha256; cv=none; b=YBDsYRTFoOXugKe3l1h6udPLiqtPXa8uZqjZl/KHhrt8SuoczNFfzT37Or76vuE8SfwEBJ Y0Rbfh2dm+zaVQ7L1vmn02QRS0+bK04hJDn5lE6hKUMoV+WITJS7FR1DJ01GvQLFq1k2UI 4BMcPWFqHtEhrohT1cAbhag0lcVtW0yA77EKVMGxXztwnZBhf0oRPOoLHLsx741BmnbSxz gn+CW8lp0Ws/EeELt5lTu1G0iX22vHTvNQeiY8k+FZxGebwmS67hoxP8EmlPX3UmJ2d4Qs wjLNUKdROKnReGjLWOFqgtZLn3QV3WKU0iQOjj1q6z8Bl38Cg+TUfyu9g+LSHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=dK4SnGIA; 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: -8.48 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=dK4SnGIA; 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: 314E215211 X-Spam-Score: -8.48 X-Migadu-Scanner: scn0.migadu.com X-TUID: YprMeJAkc2+X Robert Pluim writes: > Ihor> This is no different. org-startup-folded controls loading of Or= g mode. > Ihor> However, Emacs applies directory-local variables and file-local > Ihor> variables _after_ loading Org mode. Org cannot do much about it= without > Ihor> hacking Emacs defaults. > > We=CA=BCre in agreement there. My point is that it=CA=BCs not a bug (alth= ough I > guess you could ask for a feature to apply local/directory variables > before applying the mode It's not exactly a bug, but feature request to Emacs is exactly what I was implying. > , but in this case there=CA=BCs an easy > workaround). I am not sure which workaround you are referring to. Setting org-startup-folded globally? On per-file basis? the former is global and will apply to broader scope than a directory-local variable. The latter only works in a single file (and works instead of file-local variable). Best, Ihor