Jan Vroonhof <vroonhof(a)math.ethz.ch> writes:
wmperry(a)aventail.com (William M. Perry) writes:
> > Cool... The patch is mangled however. It has broken lines and there is
> > the tab vs space problem.
>
> Tabs are your friend. :)
Tabs are evil. However regardless of that you should never re-/untabify
the result of diff because patch thinks there are difference and won't
apply the chunk. Neither of course should you break lines.
I didn't - I just tabified gpmevent.c. Although I did use 'cvs diff -uw'
to ignore whitespace changes. Perhaps I'll leave off the 'w' on the next
round of patches.
Could you please make a new patch?
I'll try to get one later today. I'm trying to get pasting from the
internal linux buffers working. I'm a little lost as to how the selection
methods work though. I created tty_get_foreign_selection, which does the
appropriate ioctl() to write to the console (not exactly what I want, but I
think I can slap a memory-lstream onto DEVICE_INFD temporarily, do the
ioctl, and return the data in the lstream as a string).
But hitting button2 doesn't do anything. Calling (get-selection-internal
nil 'string) does work though.
> > How do you suppose this gets enabled? I would love for this
to be still
> > the default.
>
> We could throw a call to it in syms_of_gpmevent() if you want.
I was rather thinking of a function to call in after make-device on a
tty. BTW I don't like the idea of making gpm-mode a C function. You
really should do the interface in lisp. Then you can much easier do
things like call hooks and avoid loading the C module if we are not on a
linux tty etc.
I'll work on changing it early this morning, before work gets into full
swing.
> > 0. make sure the case when we have frames on more than one
VC works
>
> There is no way to get this working using GPM, because it requires you to
> use a GPM function to read characters from the terminal
:-(
But, it should be relatively easy to do with function-key-map. I don't
know if I'll have time or inclination to get this to work (I never use
XEmacs in an xterm, so...)
I'm attaching the latest version of xt-mouse.el - it works in emacs 20.x,
and gets so far as to call the right function when you move the mouse or
push buttons in XEmacs, but then the translation function chokes.
-Bill P.