emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: Max Fujimoto <max.fujimoto@rogers.com>,
	 "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: org-startup-folded does not work with directory local variables
Date: Wed, 04 May 2022 15:17:29 +0200	[thread overview]
Message-ID: <8735hp8mja.fsf@gmail.com> (raw)
In-Reply-To: <87wnf1inwk.fsf@localhost> (Ihor Radchenko's message of "Wed, 04 May 2022 18:37:47 +0800")

>>>>> On Wed, 04 May 2022 18:37:47 +0800, Ihor Radchenko <yantar92@gmail.com> said:

    Ihor> Max Fujimoto <max.fujimoto@rogers.com> writes:
    >> Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6)
    >> 
    >> The variable org-startup-folded does not work expected in
    >> .dir-locals.el.The option "#+startup: fold" works as expected.

    Ihor> This is because Emacs loads directory-local variables _after_ Org mode
    Ihor> is loaded. That is, you set org-startup-folded after startup is
    Ihor> complete.

    Ihor> I recommend reporting this to Emacs bug tracker.

I donʼt think this is a bug: directory-local variables are supposed to
behave the same as file-local variables, and setting
org-startup-folded in a local variable section also doesnʼt get
applied.

Robert
-- 


  reply	other threads:[~2022-05-04 13:22 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 [this message]
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
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=8735hp8mja.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=max.fujimoto@rogers.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).