[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: unumber on copy-paste



On Tue, 2009-11-03 at 12:59 +0000, Peter Clifton wrote:
> On Tue, 2009-11-03 at 03:39 +0000, Kai-Martin Knaak wrote:
> 
> [snip]
> 
> > Tried it, but it doesn't seem to change numbers. There are no warnings, 
> > or errors, either.
> 
> [snip]
> 
> > While I look at it, I notice, that the auto-number hooks supplied by the 
> > system-gafrc also don't work when put in my gafrc:
> > 
> > (load "/usr/local/geda/share/gEDA/scheme/auto-uref.scm")  
> > (add-hook! add-component-hook auto-uref)
> > (add-hook! copy-component-hook auto-uref)  
> > 
> > There is no other copy-component-hook hook in my config files. 
> > Anything else I can check?
> 
> DOH.. it isn't working for me either... looks like something broke the
> hooks. What version of gEDA are you running (help me pin-point where the
> breakage is).

I think I've figured it out...

Ctrl+C, Ctrl+V uses the X-Clipboard now, and does not go through the old
"copy" code-paths, so the hook is never called.

"ec" and "ey" still run the hook for me.

I "think", we ought to add a new hook "paste-component-hook", to catch
the clipboard pastes, rather than abusing the "copy-component-hook".

This would be a potential candidate for inclusion 1.6.1, but it is
somewhat border-line.

Best wishes,

Peter C.



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user