On Tue, Jun 16 2020, Alex Branham wrote:
>> On Wed, Jun 10, 2020 at 5:21 PM Joost Kremers
>> <
joostk...@fastmail.fm
>> <javascript:>> wrote:
>>> However, I have not been able to do the same from within
>>> Emacs'
>>> `ledger-mode`. If I run a report with `C-c C-o C-r`, select
>>> `account`, then type "Some:Account" at the prompt, I get a
>>> report
>>> which I can then edit with `e`. If I do this and add "--meta
>>> Desc", the report doesn't change: there is no column for the
>>> value
>>> of "Desc".
[...]
> This is a bug. For now, you can set
> ledger-report-links-in-register to
> nil and it should fix the issue I believe.
Yes, it does. Which is a bit unfortunate, because it's a practical
feature...
> This seems to be due to the fact that ledger-mode relies on
> --prepend-format to prepend output to the report but output from
> --meta
> seems to come before --prepend-format.
>
> Whether it's a bug in ledger or ledger-mode I'm not sure.
Well, if I combine `--prepend-format` and `--meta` on the command
line, the `--meta` option seems to be ignored: only the
`--prepend-format` string is added to each line. So I guess
`--prepend-format` and `--meta` aren't compatible in `ledger`,
which could be a bug or a feature, I don't know. I couldn't find
anything in the documentation about it, but that might just be a
documentation bug, of course.
It would be nice to have this fixed, but for the time being, I can
always unset `ledger-report-links-in-register` temporarily if I
want to see a metadata value.
Thanks,