Re: Beancount docs: tagstack does not work over include

2023-11-19 Thread Martin Blais
If you'd like to make a suggestion I can open up the relevant doc for
comment & suggestion.
Let me know which one,


On Sun, Nov 19, 2023 at 3:46 AM Matthias Beyer 
wrote:

> 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

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhOTP5AxpxAqutYZgiGOquaR_1o2fszr2iO-gJ8AjPTPQA%40mail.gmail.com.


Re: Beancount docs: tagstack does not work over include

2023-11-19 Thread Simon Guest
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

On Mon, 20 Nov 2023, 12:39 am Matthias Beyer,  wrote:

> 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
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/3530178.iIbC2pHGDl%40takeshi.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAFhGSbtYiqOuBiQC5qsy%3DEGqrMTc6eshQmryqju%2B6jhrc5VvmA%40mail.gmail.com.


Beancount docs: tagstack does not work over include

2023-11-19 Thread Matthias Beyer
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

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/3530178.iIbC2pHGDl%40takeshi.


signature.asc
Description: This is a digitally signed message part.