emacs-pretest-bug
[Top][All Lists]
Advanced

[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
Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs
maintainers
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
parameters


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


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 22.0.50.1 (i386-mingw-nt5.0.2195)
 of 2005-06-26 on NONIQPC
X server distributor `Microsoft Corp.', version
5.0.2195
configured using `configure --with-gcc (3.3) --cflags
-I../../jpeg-6b-3/include -I../../libpng-1.2.8/include
-I../../tiff-3.6.1-2/include
-I../../xpm-nox-4.2.0/include
-I../../zlib-1.2.2/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> <help-echo>
<help-echo> 
<help-echo> <menu-bar> <options> <debug-on-error>
<down-mouse-4> 
<mouse-4> <help-echo> <help-echo> <down-mouse-1>
<mouse-movement> 
<mouse-movement> <drag-mouse-1> <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> <help-menu> <report-emacs-bug>

Recent messages:
Loading mwheel...done
(C:\local\emacs\emacs_2005_06_26\bin\emacs.exe -q
--no-site-file)
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 
http://mail.yahoo.com 




reply via email to

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