>>>> "John" == John Paul Wallington
<jpw(a)shootybangbang.com> writes:
John> Steve Youngs <youngs(a)xemacs.org> wrote:
> As yet, nobody has offered to look into the real problem.
I'll put it
> on my todo list, but at this stage I don't know when I'll be able to
> get to it.
John> FWIW, the problem is with `mouse-position'. It should return a list
John> (WINDOW X . Y) giving the current mouse window and position, and
John> return (nil nil) when the cursor is not over a character, or not over
John> a window. But it appears to return (nil nil) nearly all the time.
Ah, I've seen this problem (`mouse-position' to return (nil nil)) too
when I tried to make the 'menu key work like 'button3 in native
Windows XEmacs.
John> I'm not sure whether `mouse-avoidance-nudge-mouse' switching frames
John> will "never happen", but I would be inclined to just let it
happen.
John> Also, maybe when detecting mice events it is sufficient to just use
John> `mouse-event-p' ?
John> Rueben, does this work ?
John> (defun mouse-avoidance-fancy-hook ()
John> ;; Used for the "fancy" modes, ie jump et al.
John> (if (and (not executing-kbd-macro) ; don't check inside macro
John> ;; Don't do anything if last event was a mouse event.
John> (not (mouse-event-p last-input-event))
John> (mouse-avoidance-too-close-p (mouse-position)))
John> (mouse-avoidance-nudge-mouse)))
John> --
John> John Paul Wallington
--
Adrian Aichner
mailto:adrianï¼ xemacs.org
http://www.xemacs.org/