Skip to content

Conversation

errge
Copy link
Contributor

@errge errge commented Oct 7, 2024

When ledger-reports is defined as a file local variable, we have to inherit that local setting to the report buffer.

When ledger-reports is defined as a file local variable, we have to
inherit that local setting to the report buffer.
Copy link
Collaborator

@bcc32 bcc32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the long delay, I haven't had time to look at this project in a few months but am hoping to spend some time helping get it into shape for a new release.

Do you mind adding a regression test for this issue?

@@ -291,10 +291,13 @@ used to generate the buffer, navigating the buffer, etc."
(edit (not (null current-prefix-arg))))
(list rname edit))))
(let* ((file (ledger-master-file))
(buf (find-file-noselect file)))
(buf (find-file-noselect file))
(local-ledger-reports (when (local-variable-p 'ledger-reports) ledger-reports)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be simpler to unconditionally use whatever value ledger-reports has in the current buffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants