X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=sjT57xjBFBQx+H6PXv4miN8C5iTYwc8ArMiqWlddRO4=; b=cTzHDm0GFy+7WrPiz2+Nu46BDnP2dG2h3KXdi8IONN5MPrU6c6DKlYP7QMWtPW9oNU W2DSVOSEir08EM+tDfuWsk3FjMv6K6jQVGbtri0PSD3oZyLp5ogO+0MIQLtK84c6s3Mp tsbh+DCZIPjzPBLRITAVCgx+cLJ3CScflPf7CFiZdrmB1MWmbLX7lY2+DVSJ8Lx/n1kn ejCq5tKS08nA+lMJ39dMu8JQZNimM3hEQJL0uu+FXsxegBKQBgkoZ5hp6bbALribFjeF VbsPgCPrkuK3TsbmFrH2xhTeCe5zGLBBva84HbDgyKfDVKx80D3sRWkZ6+/p4toWnUmz 67ZA== MIME-Version: 1.0 X-Received: by 10.202.179.87 with SMTP id c84mr3259385oif.110.1437003576213; Wed, 15 Jul 2015 16:39:36 -0700 (PDT) In-Reply-To: <20150715202828.GA17392@localhost.localdomain> References: <559edcfa DOT 440d460a DOT 72d9 DOT 29cf AT mx DOT google DOT com> <201507092128 DOT t69LSc2j001777 AT envy DOT delorie DOT com> <201507120012 DOT t6C0CfnW014811 AT envy DOT delorie DOT com> <201507120145 DOT t6C1jnc8020051 AT envy DOT delorie DOT com> <1436950214 DOT 2876 DOT 57 DOT camel AT linetec> <20150715202828 DOT GA17392 AT localhost DOT localdomain> Date: Thu, 16 Jul 2015 09:09:36 +0930 Message-ID: Subject: Re: [geda-user] Re: developer excitement? From: "Erich Heinzle (a1039181 AT gmail DOT com) [via geda-user AT delorie DOT com]" To: geda-user Content-Type: multipart/alternative; boundary=001a113cd1f4b388d9051af277ca 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 Precedence: bulk --001a113cd1f4b388d9051af277ca Content-Type: text/plain; charset=UTF-8 For me gschem is a bit of a black box. If the existing material on scheme use in gschem could be expanded and enhanced, we are more likely to lure potential developers into enhancing and extending it, i.e. it'd be great if we could add more examples to http://wiki.geda-project.org/geda:gnetlist_scheme_tutorial http://wiki.geda-project.org/geda:gschem_ug:extensions So, please do go into further detail, it would be of interest to me and to others I am sure. Similarly, if more examples of modules for PCB were available, it would probably encourage peeople to have a go. Cheers, Erich. On Thu, Jul 16, 2015 at 5:58 AM, Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com] wrote: > On Wed, Jul 15, 2015 at 10:50:14AM +0200, Richard Rasker ( > rasker AT linetec DOT nl) [via geda-user AT delorie DOT com] wrote: > > > > I don't know if this is the right time for some small stuff with regard > > to gschem/PCB, but as I found a veritable mountain of new list messages > > after a few days' absence, I reckon this is as good a time as any. > > > > I haven't read through all the new messages yet, but I generally agree > > that gEDA/gschem/PCB is quite a mature project, leaving only very few > > things to be desired in my opinion. I use it on an almost weekly basis, > > and frankly, I wouldn't want anything else. > > > > > > The only issues that I can think of are some very minor things with > > regard to gschem's workflow: > > > > - When adding an attribute to an element, the 'Edit Attribute' dialog > > has 'Visible - Show name and value' selected by default. Now I don't > > know about other people's preferences, but I literally *never* want the > > attribute's Name to show. Yes, it's simply a matter of one extra mouse > > click to select 'Show value only' or untick the checkbox in the list > > window, but it's slightly annoying all the same. So perhaps the default > > selection could be 'Visible - Show value only'. > Please file a bug report on launchpad. > > > > > - Copying already defined elements is how I place most elements. Until > > some time ago, the new copy was automatically selected, which I consider > > the desired behavior: with the attribute editing window open, I could > > change the new element's attributes right away. > > Now, however, the original element stays selected, and I have to > > explicitly click the copy to select it. Again no big deal, but slightly > > annoying as a small change can make for an even smoother workflow. > > It's probably a chance to make an example of scripting in guile for > gschem. > > Put the following code into your gschemrc: > > --------------------8<---------------------- > (use-modules (geda page)) > (use-modules (gschem selection)) > (use-modules (gschem hook)) > > (define copied-objects '()) > > (define (get-copied-objects) > copied-objects) > > (define (set-copied-objects! ls) > (set! copied-objects ls)) > > (define my-selection-hook (make-hook)) > > (add-hook! my-selection-hook > (lambda () > (for-each select-object! (get-copied-objects)))) > > (add-hook! copy-objects-hook > (lambda (ls) > (begin > (for-each deselect-object! (page-selection (active-page))) > (set-copied-objects! ls)))) > > (add-hook! paste-objects-hook > (lambda (ls) > (run-hook my-selection-hook))) > -------------------->8---------------------- > > or into, say, ~/.gEDA/myselection.scm > and put into gschemrc just > (load "myselection.scm") > > This code is for selecting only copied objects. If you want select all > pasted objects (even if you paste them using shortcut) it would even be > simpler. > > It works in gschem 1.9.1 with guile 2.0, but probably will work with > other combinations as well. > > If anybody is interested how all this works, I could make clear some > details. > > Cheers, > Vladimir > --001a113cd1f4b388d9051af277ca Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
For me gschem is a bit of a black box. If the existin= g material on scheme use in gschem could be expanded and enhanced, we are m= ore likely to lure potential developers into enhancing and extending it, i.= e. it'd be great if we could add more examples to
=C2=A0
=C2=A0
So, please do go into further detail, it would be of interest to me and = to others I am sure.
=C2=A0
Similarly, if more examples= of modules for PCB were available, it would probably encourage peeople to = have a go.
=C2=A0
Cheers,
=C2=A0
Er= ich.

O= n Thu, Jul 16, 2015 at 5:58 AM, Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:
On Wed, Jul 15, 2015 at 1= 0:50:14AM +0200, Richard Rasker (raske= r AT linetec DOT nl) [via geda-user AT d= elorie.com] wrote:
>
> I don't know if this is the right time for some small stuff with r= egard
> to gschem/PCB, but as I found a veritable mountain of new list message= s
> after a few days' absence, I reckon this is as good a time as any.=
>
> I haven't read through all the new messages yet, but I generally a= gree
> that gEDA/gschem/PCB is quite a mature project, leaving only very few<= br> > things to be desired in my opinion. I use it on an almost weekly basis= ,
> and frankly, I wouldn't want anything else.
>
>
> The only issues that I can think of are some very minor things with > regard to gschem's workflow:
>
> - When adding an attribute to an element, the 'Edit Attribute'= dialog
> has 'Visible - Show name and value' selected by default. Now I= don't
> know about other people's preferences, but I literally *never* wan= t the
> attribute's Name to show. Yes, it's simply a matter of one ext= ra mouse
> click to select 'Show value only' or untick the checkbox in th= e list
> window, but it's slightly annoying all the same. So perhaps the de= fault
> selection could be 'Visible - Show value only'.
Please file a bug report on launchpad.

>
> - Copying already defined elements is how I place most elements. Until=
> some time ago, the new copy was automatically selected, which I consid= er
> the desired behavior: with the attribute editing window open, I could<= br> > change the new element's attributes right away.
> Now, however, the original element stays selected, and I have to
> explicitly click the copy to select it. Again no big deal, but slightl= y
> annoying as a small change can make for an even smoother workflow.

It's probably a chance to make an example of scripting in guile = for
gschem.

Put the following code into your gschemrc:

--------------------8<----------------------
=C2=A0 (use-modules (geda page))
=C2=A0 (use-modules (gschem selection))
=C2=A0 (use-modules (gschem hook))

=C2=A0 (define copied-objects '())

=C2=A0 (define (get-copied-objects)
=C2=A0 =C2=A0 copied-objects)

=C2=A0 (define (set-copied-objects! ls)
=C2=A0 =C2=A0 (set! copied-objects ls))

=C2=A0 (define my-selection-hook (make-hook))

=C2=A0 (add-hook! my-selection-hook
=C2=A0 =C2=A0 (lambda ()
=C2=A0 =C2=A0 =C2=A0 (for-each select-object! (get-copied-objects))))

=C2=A0 (add-hook! copy-objects-hook
=C2=A0 =C2=A0 (lambda (ls)
=C2=A0 =C2=A0 =C2=A0 (begin
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (for-each deselect-object! (page-selection (act= ive-page)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (set-copied-objects! ls))))

=C2=A0 (add-hook! paste-objects-hook
=C2=A0 =C2=A0 (lambda (ls)
=C2=A0 =C2=A0 =C2=A0 (run-hook my-selection-hook)))
-------------------->8----------------------

or into, say, ~/.gEDA/myselection.scm
and put into gschemrc just
=C2=A0 (load "myselection.scm")

This code is for selecting only copied objects. If you want select all
pasted objects (even if you paste them using shortcut) it would even be
simpler.

It works in gschem 1.9.1 with guile 2.0, but probably will work with
other combinations as well.

If anybody is interested how all this works, I could make clear some
details.

Cheers,
=C2=A0 Vladimir

--001a113cd1f4b388d9051af277ca--