X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Cam-AntiVirus: no malware found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Message-ID: <1378660085.7052.18.camel@pcjc2lap> Subject: Re: [Geda-developers] [geda-user] Revert "Reset refdes number to the question mark when parts are copied" From: Peter Clifton To: geda-user AT delorie DOT com Cc: geda-developers AT lists DOT launchpad DOT net Date: Sun, 08 Sep 2013 18:08:05 +0100 In-Reply-To: <1378658984.7052.12.camel@pcjc2lap> References: <1378645856 DOT 7052 DOT 5 DOT camel AT pcjc2lap> <1378658984 DOT 7052 DOT 12 DOT camel AT pcjc2lap> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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 On Sun, 2013-09-08 at 17:49 +0100, Peter Clifton wrote: > On Sun, 2013-09-08 at 09:23 -0700, Edward Hennessy wrote: > > > This functionality was requested in launchpad bug #698748 and also matches > > the behavior in commercial package I've used. > > Which package is that? (I was going to ask if there is any precedent for > that behaviour in other tools) > > > Do you intend to check your script in, so the functionality is present in > > geda-gaf, and the user can select it in a configuration file? > > > I'll attach it to the bug, but currently do not have the time to add it > to the build. (TBH, I need to make sure it still _works_ after all the > scheme API work). And the answer is that it half works. (IE, it functions, but it does not do what we want...) Changes have been made to the hooks system since my script was written, although looking at it.. I'm wondering if it was written before I added true clipboard cut, copy + paste support. The "copy-component-hook" is actually invoked with the underlying "paste-objects-hook", and at that stage, we cannot distinguish between a Copy+paste or a cut+paste. (There is never any sense in resetting refdes for a cut+paste). A better solution all round might be to strip the refdes numbering from any pasted component which clashes. If that were the case, I'd not even have noticed it today! -- Peter Clifton Clifton Electronics