[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: [PATCH] Fix so symbol directories cannot be loaded twice
(Apologies for top-posting, but I'm doing this from my phone)
Does adding something like the following to your $HOME/.gEDA/gschemrc work?
(define %component-library component-library)
(define %reset-component-library reset-component-library)
(define loaded-dir-libs '())
(define (component-library dir . rst)
(if (member loaded-dir-libs dir)
#f
(begin
(apply %component-library dir rst)
(set! loaded-dir-libs (cons dir loaded-dir-libs)))))
(define (reset-component-library)
(set! loaded-dir-libs' ())
(%reset-component-library))
I haven't actually run it, but it might solve your problem. ;-)
Peter
--
Peter Brett <peter@xxxxxxxxxxxxx>
Remote Sensing Research Group
Surrey Space Centre
----- Original message -----
> Dear Peter,
>
> Commands of the form "(component-library <dir>)" I had placed in a gafrc
> were getting called multiple times, so a lot of copies of the same
> directories started appearing in my symbols dialogue box.
>
> The attached patch fixes that bug by preventing the same symbol
> directory to be loaded twice.
>
> ~Matt
<Attachment>Â check.patch
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user