Beancount docs: tagstack does not work over include

46 views
Skip to first unread message

Matthias Beyer

unread,
Nov 19, 2023, 6:39:25 AM11/19/23
to bean...@googlegroups.com, bl...@furius.ca
Hi,

the docs on the tagstack do not explicitely say that the tagstack
functionality does only work per-file!

So this:

pushtag #foo
include "./foos.beancount"
poptag #foo

does not do what one might expect it does.

Maybe the docs on the tagstack should note this.

Best,
Matthias
signature.asc

Simon Guest

unread,
Nov 19, 2023, 2:47:09 PM11/19/23
to bean...@googlegroups.com, Martin Blais
Ah, this is an example of something I did differently with beancount-parser-lima. Since the parser is both the thing that resolves all include pragmas, and all pushtag/pushmeta/poptag/popmeta, this was an obvious and straightforward thing to support. The sequence of declarations which is produced as an output from the parser is a date-ordered list with pragmas processed and folded in to the declarations.

(More of an observation for developers than one for users today, sorry.)

Cheers,
Simon

--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/3530178.iIbC2pHGDl%40takeshi.

Martin Blais

unread,
Nov 19, 2023, 4:24:41 PM11/19/23
to Matthias Beyer, bean...@googlegroups.com, bl...@furius.ca
If you'd like to make a suggestion I can open up the relevant doc for comment & suggestion.
Let me know which one,

Reply all
Reply to author
Forward
0 new messages