>>>> "Uwe" == Uwe Brauer
<oub(a)maraton.sim.ucm.es> writes: 
    Uwe> Auto-capitalize is a very nifty minor mode which as it names
    Uwe> says capitalize words for you.
    Uwe> The problem is that lookup-key signals an error when it's
    Uwe> passed a misc-user-event KEY, which apparently corresponds to
    Uwe> a menu or toolbar click. I attach the error message below.
    Uwe> The author thinks this is a BUG of Xemacs, since there is no
    Uwe> similar problem under GNU emacs.
Yeah, it may be a bug in XEmacs.
XEmacs is happy to look up misc-user-events if they are wrapped in a
vector, as returned by read-key-sequence.  So I think I know how to
fix this but it probably won't happen soon in 21.4.
A workaround would be to substitute something like
(if (and (featurep 'xemacs) (misc-user-event-p keys))
    (vector keys)
  keys)
for the `keys' argument to `lookup-keys'.
-- 
Institute of Policy and Planning Sciences     
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
              Don't ask how you can "do" free software business;
              ask what your business can "do for" free software.