Skip to content

[BUG] org-cycle/org-fold with outline mode has stopped working in ledger mode #337

Open
@wakatara

Description

@wakatara

Heya awesome ledge-mode maintainers!

This might seem like a minor thing, but it is making my monthly accounting hellish since I have long complex files for both personal and business accounting. That is, all of a sudden, my tab no longer folds/unfolds sections of my ledger files.

Here's my config. I've changed nothing of late other than using straight-pull-all to grab updated packages. This appears to be either related to some change in ledger-mode or in org-fold's functionality (it might be the latter).

;; ========== Ledger mode =========
(use-package ledger-mode
  :straight t
  :defer t
  :hook
  (ledger-mode . outline-minor-mode)
  :bind
  (:map ledger-mode-map
        ("TAB" . org-cycle))
  :config
  (font-lock-add-keywords 'ledger-mode outline-font-lock-keywords)
  :mode
  ("\\.ledger$" . ledger-mode)
  )

At the monent, when attempting to fold on a line with a heading denoted by * with TAB now, I'm getting this message from emacs:
Calling 'org-fold-core-region' with missing SPEC

Org-mode files fold fine themselves, so a bi puzled as to whzat could be wrong, but it's killing me in terms of buzzsaw-ing through my monthly finances atm. Could really use some help on what might be wrong.

(and also, while I have the chance, thank you maintainers for making this plugin. It is by far the best of all the plugins across IDEs for making ledger a super useful tool. I know, I've tried them all. =] ).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions