emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Fujimoto <max.fujimoto@rogers.com>
To: Ihor Radchenko <yantar92@gmail.com>, Robert Pluim <rpluim@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: org-startup-folded does not work with directory local variables
Date: Wed, 4 May 2022 23:31:03 +0000 (UTC)	[thread overview]
Message-ID: <64406680.4593977.1651707063162@mail.yahoo.com> (raw)
In-Reply-To: <878rrh7307.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1606 bytes --]

 Thanks for the info, 

I will look into reporting the issue with the emacs bug-tracker and for now use the per file "STARTUP:" option.
thanks again

    On Wednesday, May 4, 2022, 11:04:42 a.m. EDT, Robert Pluim <rpluim@gmail.com> wrote:  
 
 >>>>> On Wed, 04 May 2022 22:46:56 +0800, Ihor Radchenko <yantar92@gmail.com> said:

    Ihor> Robert Pluim <rpluim@gmail.com> writes:
    Ihor> This is no different. org-startup-folded controls loading of Org 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ʼre in agreement there. My point is that itʼs not a bug (although I
    >> guess you could ask for a feature to apply local/directory variables
    >> before applying the mode

    Ihor> It's not exactly a bug, but feature request to Emacs is exactly what I
    Ihor> was implying.

Right. My predictatron says itʼs unlikely to be greeted
enthusiastically.

    >> , but in this case thereʼs an easy
    >> workaround).

    Ihor> I am not sure which workaround you are referring to.
    Ihor> Setting org-startup-folded globally? On per-file basis? the former is
    Ihor> global and will apply to broader scope than a directory-local variable.
    Ihor> The latter only works in a single file (and works instead of file-local
    Ihor> variable).

I was talking about #+STARTUP: (Iʼm assuming #+SETUPFILE: also works,
but I haven't tried it).

Robert
-- 
  

[-- Attachment #2: Type: text/html, Size: 3387 bytes --]

  reply	other threads:[~2022-05-05 12:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1984742079.3751611.1651538242680.ref@mail.yahoo.com>
2022-05-03  0:37 ` org-startup-folded does not work with directory local variables Max Fujimoto
2022-05-03 21:29   ` Jeremie Juste
2022-05-04 10:37   ` Ihor Radchenko
2022-05-04 13:17     ` Robert Pluim
2022-05-04 13:46       ` Ihor Radchenko
2022-05-04 14:16         ` Robert Pluim
2022-05-04 14:46           ` Ihor Radchenko
2022-05-04 15:04             ` Robert Pluim
2022-05-04 23:31               ` Max Fujimoto [this message]
2022-05-05  3:21               ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=64406680.4593977.1651707063162@mail.yahoo.com \
    --to=max.fujimoto@rogers.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rpluim@gmail.com \
    --cc=yantar92@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).