[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

key-translation-map does not work for mouse events

From: acd dfg
Subject: key-translation-map does not work for mouse events
Date: Fri, 15 Jul 2005 09:22:46 -0700 (PDT)

This bug report will be sent to the Free Software
not to your local site managers!
Please write in English if possible, because the Emacs
usually do not have translators to read other
languages for them.

Your bug report will be posted to the
address@hidden mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Stefan Monnier suggested reporting this as a bug.

I have a trackball with four buttons which emacs sees
as buttons
mouse-1, mouse-3, mouse-4, and mouse-5.  I would like
emacs to
treat mouse-4 clicks as though they were mouse-2
clicks, so I 
evaluated the following in the *scratch* buffer:

(define-key key-translation-map [mouse-4] [mouse-2])

However, if I then click mouse-4 in the *scratch*
buffer, I get this
error message:

    mouse-yank-at-click must be bound to an event with

The stack trace is:
Debugger entered--Lisp error: (error
"mouse-yank-at-click must be bound to an event with

I am running the Windows binaries of CVS emacs from
nq.sourceforge.net, the June 26, 2005 version.

I am running Windows 2000, service pack 4.

I started emacs with "--no-site-file -q".

In GNU Emacs (i386-mingw-nt5.0.2195)
 of 2005-06-26 on NONIQPC
X server distributor `Microsoft Corp.', version
configured using `configure --with-gcc (3.3) --cflags
-I../../jpeg-6b-3/include -I../../libpng-1.2.8/include

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Debugger

Minor modes in effect:
  tool-bar-mode: t
  encoded-kbd-mode: t
  mouse-wheel-mode: t
  tooltip-mode: t
  auto-compression-mode: t
  menu-bar-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t
  transient-mark-mode: identity
  next-error-follow-minor-mode:  Fol

Recent input:
<help-echo> <help-echo> <down-mouse-1> <mouse-1> ( 
d e f i n e - k e y SPC k e y - t r a n s l a t i o 
n - m a p SPC [ m o u s e - 4 ] SPC [ m o u s e - 2 
] ) C-j <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <menu-bar> <options> <debug-on-error>
<mouse-4> <help-echo> <help-echo> <down-mouse-1>
<mouse-movement> <drag-mouse-1> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo>
<menu-bar> <help-menu> <report-emacs-bug>

Recent messages:
Loading mwheel...done
(C:\local\emacs\emacs_2005_06_26\bin\emacs.exe -q
Loading encoded-kb...done
Loading tool-bar...done
Loading image...done
For information about the GNU Project and its goals,
type C-h C-p.
Debug on Error enabled
Loading debug...done
Entering debugger...
Loading emacsbug...done

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]