Mail Archives: geda-user/2024/05/02/11:18:25
Hello Vladimir,
Op 01-05-2024 om 23:02 schreef Vladimir Zhbanov (vzhbanov AT gmail DOT com)
[via geda-user AT delorie DOT com]:
> Hi Richard,
>
> "Richard Rasker (rasker AT linetec DOT nl) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> writes:
> ...
>> Yes, this works, great! Although right now it just outputs a list of numbers, and I haven't found out how to add something like Rfree= to the
>> number for the R prefix.
>>
>> If you want to see its output, say, in the log window (e.g. in case you
>> don't use any terminal for launching the GUI), you'll have to replace
>> the "(display ...)" commands with something like
>> (log! 'message "Counter for R is ~A\n" (lookup-counter-by-prefix "R"))
>>
>> Hm, that doesn't seem to work yet....
...
>> So from the Guile Reference I assume that I need to define log!, is that correct?
> Not really, you have to import the module (geda log), I think.
> Something like this:
> (use-modules (srfi srfi-1)
> (geda log) ; <= This one
> (geda page)
> (geda object)
> (geda attrib))
>
> HTH,
> Vladimir
Ah, yes, that was what was missing, thanks!
And it has already come in handy too!
Regards,
Richard
- Raw text -