emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Colin Baxter <m43cap@yandex.com>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: commit e22b4eb7 kills formatting & color
Date: Mon, 01 Aug 2022 14:21:08 +0100	[thread overview]
Message-ID: <877d3sm75n.fsf@yandex.com> (raw)
In-Reply-To: <87bkt4ktfn.fsf@localhost> (Ihor Radchenko's message of "Mon, 01 Aug 2022 21:02:52 +0800")

>>>>> Ihor Radchenko <yantar92@gmail.com> writes:

    > Colin Baxter <m43cap@yandex.com> writes:
    >> With the latest org-mode, my org files have lost all syntax
    >> coloring and org-mode formatting. They are essentially dead. If I
    >> revert commit e22b4eb7 then they come back to life with coloring
    >> and formatting as usual. My files have local variables which have
    >> worked perfecting ok before the e22b4eb7 commit. Have other users
    >> experienced similar issues?

    > The commits puts file-local and directory-local variables in
    > effect _before_ loading Org mode. It means that e.g. setting up
    > initial visibility can be done using directory-local variables.

    > Do you have any idea which particular file-local variable is
    > leading to the breakage?

    > Best, Ihor

Dear Ihor,

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 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?

Best wishes.



  reply	other threads:[~2022-08-01 13:34 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 [this message]
2022-08-01 13:57     ` Ihor Radchenko
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

  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=877d3sm75n.fsf@yandex.com \
    --to=m43cap@yandex.com \
    --cc=emacs-orgmode@gnu.org \
    --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).