Skip to content

Hold on to ledger-reports variable's local value #440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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