all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: m43cap@yandex.com
Cc: emacs-orgmode@gnu.org
Subject: Re: commit e22b4eb7 kills formatting & color
Date: Mon, 01 Aug 2022 21:57:20 +0800	[thread overview]
Message-ID: <878ro8kqwv.fsf@localhost> (raw)
In-Reply-To: <877d3sm75n.fsf@yandex.com>

Colin Baxter <m43cap@yandex.com> writes:

>     > Do you have any idea which particular file-local variable is
>     > leading to the breakage?
>
> Well I'm tempted to say all of them because I have local variables in
> files and .dir-locals.el in many locations. But for a start:
>
> # Local Variables:
> # eval: (setq org-confirm-babel-evaluate nil)
> # eval: (setq org-adapt-indentation t)
> # eval: (set (make-local-variable 'org-hide-emphasis-markers) t)
> # End:

I am unable to see any issues with fontification starting from emacs -Q
and loading a file containing these variables.

> I am obviously missing something because I thought a local variable was
> by definition local to a file or directory and was not used until that
> file was opened. So why put them in effect before they are needed?

They are put into effect after the file is opened, but Org mode is not
yet loaded. The previous default was applying file-locals _after_ Org
mode is loaded and hence there was no way to set, for example,
org-src-fontify-natively or org-enforce-todo-dependencies via file-local
variables.

Best,
Ihor



  reply	other threads:[~2022-08-01 14:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-01  9:44 commit e22b4eb7 kills formatting & color Colin Baxter
2022-08-01 13:02 ` Ihor Radchenko
2022-08-01 13:21   ` Colin Baxter
2022-08-01 13:57     ` Ihor Radchenko [this message]
2022-08-01 14:34       ` Colin Baxter
2022-08-01 14:51         ` Colin Baxter
2022-08-02 12:49           ` Ihor Radchenko
2022-08-02 13:29             ` Colin Baxter
2022-08-02 13:55               ` Ihor Radchenko
2022-08-02 14:49                 ` Colin Baxter
2022-08-03  9:40                   ` 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

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

  git send-email \
    --in-reply-to=878ro8kqwv.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=m43cap@yandex.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.