[GNC] Where do I find "gnc:option-set-value" and "gnc-set-option"?
Chris Green
cl at isbd.net
Tue Nov 12 13:09:37 EST 2024
On Tue, Nov 12, 2024 at 05:58:36PM +0100, Geert Janssens wrote:
> The *.gcm files store some state information per book (data file). One of the things that's
> stored is which tabs were open the last time you closed the book or quit gnucash. The
> gnc:option-set-value and its replacement gnc-set-option specifically are used by reports to
> store their state. So if you had any reports open when you last closed to book, either of
> these function names can appear in the *.gcm files.
>
Ah, thank you, that probably explains why I'm seeing the warning on
one system but not on the other (with the same GnuCash data), I have
run different reports on the two systems.
> From what I can tell the newer gnc-set-option was introduced in the 5.x series. So gnucash
> 4.x won't understand it. For backwards compatibility, gnucash hence continues to use the
> deprecated version of the function so that users can freely switch between 4.x and 5.x. I'd
> expect the 6.x series to fully switch to the newer gnc-set-option function and no longer
> use nor support the deprecated gnc:option-set-value.
>
OK
> If the current warning bother you, you can set GUILE_WARN_DEPRECATED to "no" instead
> of "detailed".
>
Yes, I realise that, I was just wondering if it indicated anything
awry. It seems I can happily ignore the message or even make it go
away by setting GUILE_WARN_DEPRECATED to 'no'.
--
Chris Green
More information about the gnucash-user
mailing list