[comp.sources.wanted] Anyone ever write a "slave pointer" for X?

daniel@island.uu.net (Daniel Smith "fast screens, loud music, slow car") (11/28/90)

	At the moment, I'm editing one source file while looking at another
(which has the exact same flow, just small differences on some lines).
The windows are side by side:

   +--------------------+ +--------------------+
   |                    | |                    | 
   |   using an editor  | |   using a pager    | 
   |                    | |                    | 
   |   to edit source   | |   to see my        | 
   |                    | |                    | 
   |   for hp           | |   example for sun  | 
   |                    | |                    | 
   |                    | |                    | 
   +--------------------+ +--------------------+

	what I could really use right now is a "slave pointer"
in the right window, it would track the real pointer in the left window.
I'm using a smaller font than I would usually, to get the windows
on the screen side by side (1152 wide..Sparc 1+).  I'm constantly
comparing lines in the files, so I'm looking back and forth.

	I envision that the slave pointer would work like this:

	There would be a small icon for the program, you would click
on it, and get a slave pointer to drag to some starting position.  You
would let up, the slave pointer would stay at the current pointer
position on the screen.  You would then move the real pointer
to some other spot on the screen relative to slave pointer, and click
once...at that point the slave pointer will track along with the
real pointer.  I suppose that clicking again on the slave pointer
icon would "put it away", so that you could define a new relationship
or simply turn it off.  Naturally, the slave pointer should use a different
glyph than the real one, to avoid confusion.

	Hope this is out there!  Wish I had time to figure it out right
now, but I am *swamped*.

				Daniel
-- 
.......Daniel Smith, Island Graphics, daniel@island.com dansmith@well.sf.ca.us
..(415)491 0765 x 250 (W) 4000 CivicCenterDrive SanRafael MarinCounty CA 94903
.disclaimer: If I don't write these things, Island will take away my coffee.
Time ain't on your side/don't sit idly by/You've got to just try -Living Color

darrylo@hpnmdla.HP.COM (Darryl Okahata) (11/30/90)

In comp.sources.wanted, daniel@island.uu.net (Daniel Smith "fast screens, loud music, slow car") writes:


> 	At the moment, I'm editing one source file while looking at another
> (which has the exact same flow, just small differences on some lines).
> The windows are side by side:

     Use GNU Emacs.  To read in the files from the HP and Sun, you can
either use NFS or ange-ftp mode (which *TRANSPARENTLY* uses ftp to edit
files on other machines -- i.e., all the nastyness of interacting with
ftp is totally hidden from you).  You can then bring up two editing
window side-by-side and use M-x compare-windows to see the differences.

     -- Darryl Okahata
	UUCP: {hplabs!, hpcea!, hpfcla!} hpnmd!darrylo
	Internet: darrylo%hpnmd@hp-sde.sde.hp.com

DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion or policy of Hewlett-Packard or of the
little green men that have been following him all day.