delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2024/05/02/11:18:25

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Virus-Scanned: Debian amavisd-new at mail.linetec.nl
Message-ID: <29fb0d05-ccab-49a8-ac1d-deada1e6a216@linetec.nl>
Date: Thu, 2 May 2024 17:15:47 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [geda-user] Gschem refdes autonumber over multiple pages?
To: geda-user AT delorie DOT com
References: <37de350c-1e5f-422f-b13a-c5a9a1e132ac AT linetec DOT nl>
<20240429130455 DOT F01EF81AB8C5 AT turkos DOT aspodata DOT se>
<a49f9288-9af4-4bd7-b8bb-f1f6c41fd01f AT linetec DOT nl>
<20240430103043 DOT 32de22ff AT queeg DOT menasians DOT com>
<20240430211916 DOT A6DBC81AB8C5 AT turkos DOT aspodata DOT se>
<bec8e19d-0ad0-454b-a3cf-f220e466c433 AT linetec DOT nl>
<25416a96-c328-4b7e-8fa8-091c993205bd AT linetec DOT nl> <87sez18q32 DOT fsf AT gmail DOT com>
<b4b5eab9-3fdc-45e7-b627-9b802e627b2d AT linetec DOT nl> <87o79p8jcu DOT fsf AT gmail DOT com>
<d6a4d7ef-f372-46ea-be2b-f4ebda22242d AT linetec DOT nl> <87jzkd8cl6 DOT fsf AT gmail DOT com>
From: "Richard Rasker (rasker AT linetec DOT nl) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
In-Reply-To: <87jzkd8cl6.fsf@gmail.com>
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019