all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#687: 23.0.60; Mouse wheel should not trigger mouse avoidance
@ 2008-08-12 18:46 Chong Yidong
  2008-08-12 18:55 ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 14+ messages in thread
From: Chong Yidong @ 2008-08-12 18:46 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: 687

> I noticed that mouse wheel events might trigger mouse avoidance. That
> seems inappropriate. The attached patch should fix that.

Doesn't the code just below your change prevent mouse wheel events from
triggering avoidance?

   (memq 'click modifiers)
   ...
   (memq 'down modifiers)))))))

Do you have a recipe for reproducing the bug?






^ permalink raw reply	[flat|nested] 14+ messages in thread
* bug#687: 23.0.60; Mouse wheel should not trigger mouse avoidance
@ 2008-08-10 20:58 Lennart Borgman (gmail)
  2008-08-11  1:06 ` OFFICE ZERO
  0 siblings, 1 reply; 14+ messages in thread
From: Lennart Borgman (gmail) @ 2008-08-10 20:58 UTC (permalink / raw)
  To: emacs-pretest-bug

[-- Attachment #1: Type: text/plain, Size: 473 bytes --]

I noticed that mouse wheel events might trigger mouse avoidance. That
seems inappropriate. The attached patch should fix that.

Please notice that I am a bit unsure about what the event names could
be. There are probably more event names than those I have entered. In
keyboard.c there is the following code:

static char *lispy_wheel_names[] =
{
   "wheel-up", "wheel-down", "wheel-left", "wheel-right"
};



In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
  of 2008-08-10


[-- Attachment #2: avoid-wheel.diff --]
[-- Type: text/plain, Size: 710 bytes --]

Index: avoid.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/avoid.el,v
retrieving revision 1.47
diff -u -r1.47 avoid.el
--- avoid.el	6 May 2008 07:57:26 -0000	1.47
+++ avoid.el	10 Aug 2008 20:42:26 -0000
@@ -289,7 +289,9 @@
 	     (let ((modifiers (event-modifiers (car last-input-event))))
 	       (or (memq (car last-input-event)
 			 '(mouse-movement scroll-bar-movement
-			   select-window switch-frame))
+			   select-window switch-frame
+                           wheel-down wheel-up double-wheel-up double-wheel-down
+                           ))
 		   (memq 'click modifiers)
 		   (memq 'double modifiers)
 		   (memq 'triple modifiers)

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-08-14  1:30 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12 18:46 bug#687: 23.0.60; Mouse wheel should not trigger mouse avoidance Chong Yidong
2008-08-12 18:55 ` Lennart Borgman (gmail)
2008-08-12 19:02   ` Chong Yidong
2008-08-12 19:06     ` Lennart Borgman (gmail)
2008-08-12 19:12       ` Chong Yidong
2008-08-12 19:13         ` Lennart Borgman (gmail)
2008-08-12 19:15           ` Chong Yidong
2008-08-14  0:58             ` Jason Rumney
2008-08-14  1:04               ` Chong Yidong
2008-08-14  1:30                 ` Jason Rumney
2008-08-14  1:08               ` Lennart Borgman (gmail)
2008-08-14  1:28                 ` Lennart Borgman (gmail)
  -- strict thread matches above, loose matches on Subject: below --
2008-08-10 20:58 Lennart Borgman (gmail)
2008-08-11  1:06 ` OFFICE ZERO

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.