when and when not to use define-module

Geert Janssens janssens-geert at telenet.be
Mon Nov 5 14:08:03 EST 2012


On 05-11-12 18:11, mcmurchy1917-gnucash at yahoo.co.uk wrote:
> Geert
>
> Sorry, my reports were written ages ago and since then I've never changed the
> contents of config.user.
>
> Though I did read http://wiki.gnucash.org/wiki/Custom_Reports I missed the
> subtle difference in
>
>> edit config.user to add a line of the form:
>>      (load "/path/to/my/personal/report.scm") ;; Linux and OS X
>
> and missed completely
>
>> Caution: For older versions of GnuCash (before 2.1.x ?) load-from-path was
>> suggested to load reports instead of load, but this is not compatible with
>> the module definition that is now found in all reports. Using
>> load-from-path on a report with module defninition will cause a crash
> A clear case of wanting to read what I wanted to read.
No worries. I was just interested to find out if some website or so is 
still promoting the deprecated way.
>
> Where I got the information from was within the file
>
> taxinvoice.scm
>
> on this site
>
> http://wiki.gnucash.org/wiki/Custom_Reports_Using_Eguile
And there they are... I checked the GnuCash source code and noticed the 
misleading comment is still in there even. I have rewritten the comment 
and updated the links on the wiki.

Thanks for pointing me in the right direction.

Geert


More information about the gnucash-user mailing list