[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ?bug in org-fold-core
From: |
Ihor Radchenko |
Subject: |
Re: ?bug in org-fold-core |
Date: |
Thu, 04 Aug 2022 16:50:01 +0800 |
Sharon Kimble <boudiccas@skimble09.plus.com> writes:
> I've just updated to 'Org mode version 9.5.4 (release_9.5.4-706-g4702a7 @
> /home/boudiccas/git/org-mode/lisp/)' and I'm getting this error report from
> org-fold-core (I think) -
>
> =====
> Debugger entered--Lisp error: (error "Calling ‘org-fold-core-region’ with
> missing SPEC")
> signal(error ("Calling ‘org-fold-core-region’ with missing SPEC"))
> error("Calling `org-fold-core-region' with missing SPEC")
> org-fold-core-region(652018 652093 t outline)
> org-cycle-content--text-properties(2)
> org-content(2)
> eval((org-content 2) t)
> #f(compiled-function (var val) "Set local variable VAR with value VAL.\nIf
> VAR is `mode', call `VAL-mode' as a function unless it's\nalready the major
> mode." #<bytecode 0x18c3ed15a476992f>)(eval (org-content 2))
> apply(#f(compiled-function (var val) "Set local variable VAR with value
> VAL.\nIf VAR is `mode', call `VAL-mode' as a function unless it's\nalready
> the major mode." #<bytecode 0x18c3ed15a476992f>) (eval (org-content 2)))
> hack-one-local-variable(eval (org-content 2))
> hack-local-variables-apply()
> hack-local-variables(ignore-mode-settings)
> org-mode()
This is not a bug. This is a changed behaviour of file-local variables.
Now, they are loaded early before most of the Org setup is done in the
buffer; before folding is configured. Hence, the error.
Note that a proper setting of startup visibility should be done via
#+startup keyword:
#+STARTUP: show2levels
Best,
Ihor