"Paul Krause" <pkrause(a)soundbite.com> wrote:
Maybe the root of the problem is that event is nil. I don't know
why
that might be. In any
case, mouse-position returns (nil nil), so that (+ x winx) raises a type
error.
In XEmacs, when the cursor is *not over a character*, or not over a
window, the return value of `mouse-position' is a list (nil nil).
In Emacs `mouse-position' returns positional values based on
standard character cells, even if the cursor isn't over a character.
Additionally, Emacs returns (FRAME X . Y), XEmacs returns (WINDOW X . Y).
See:
http://list-archive.xemacs.org/xemacs-beta/200207/msg00225.html
Lots of code is written to Emacs spec, including code shipped with
XEmacs. Rather than fix all that code (and future code), it might be
more straightforward to change XEmacs' `mouse-position' to follow
Emacs spec, at least by default.
--
John Paul Wallington