unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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
  2009-01-03 15:10   ` bug#687: marked as done (23.0.60; Mouse wheel should not trigger mouse avoidance) Emacs bug Tracking System
  0 siblings, 2 replies; 3+ 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] 3+ messages in thread

* bug#687: 23.0.60; Mouse wheel should not trigger mouse avoidance
  2008-08-10 20:58 ` bug#687: 23.0.60; Mouse wheel should not trigger mouse avoidance Lennart Borgman (gmail)
@ 2008-08-11  1:06   ` OFFICE ZERO
  2009-01-03 15:10   ` bug#687: marked as done (23.0.60; Mouse wheel should not trigger mouse avoidance) Emacs bug Tracking System
  1 sibling, 0 replies; 3+ messages in thread
From: OFFICE ZERO @ 2008-08-11  1:06 UTC (permalink / raw)
  To: Lennart Borgman (gmail), 687

Do not send me any mail  !
no thank you



----- Original Message ----- 
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: <emacs-pretest-bug@gnu.org>
Sent: Monday, August 11, 2008 5:58 AM
Subject: bug#687: 23.0.60; Mouse wheel should not trigger mouse avoidance


>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
>
>


--------------------------------------------------------------------------------


> 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] 3+ messages in thread

* bug#687: marked as done (23.0.60; Mouse wheel should not trigger  mouse avoidance)
  2008-08-10 20:58 ` bug#687: 23.0.60; Mouse wheel should not trigger mouse avoidance Lennart Borgman (gmail)
  2008-08-11  1:06   ` OFFICE ZERO
@ 2009-01-03 15:10   ` Emacs bug Tracking System
  1 sibling, 0 replies; 3+ messages in thread
From: Emacs bug Tracking System @ 2009-01-03 15:10 UTC (permalink / raw)
  To: Jason Rumney

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


Your message dated Sat, 03 Jan 2009 23:02:09 +0800
with message-id <495F7DF1.9000705@gnu.org>
and subject line Re: bug#687: 23.0.60; Mouse wheel should not trigger mouse avoidance
has caused the Emacs bug report #687,
regarding 23.0.60; Mouse wheel should not trigger mouse avoidance
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
687: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=687
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 3969 bytes --]

[-- Attachment #2.1.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.1.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)

[-- Attachment #3: Type: message/rfc822, Size: 3844 bytes --]

From: Jason Rumney <jasonr@gnu.org>
To: 687-done@emacsbugs.donarmstrong.com
Cc: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>, Chong Yidong <cyd@stupidchicken.com>
Subject: Re: bug#687: 23.0.60; Mouse wheel should not trigger mouse avoidance
Date: Sat, 03 Jan 2009 23:02:09 +0800
Message-ID: <495F7DF1.9000705@gnu.org>

Jason Rumney wrote:
> Chong Yidong wrote:
>> I see.  Can you verify that Lennart's patch works on W32?
>>   
>
> Lennart's patch works, but it might be better to make wheel events on 
> W32 set the appropriate click, double or triple modifier so that it is 
> caught by the conditions that follow.

I have changed the code to make wheel events appear as click events 
(double and triple wheel events were already handled correctly).

I am still confused about all the steps an event goes through to become 
a Lisp event, as the click modifier was being set on the wheel events, 
but wasn't returned by event-modifiers, which seems to ignore the 
modifiers and just use the base name of the event to regenerate them. 
Are the modifiers we set in C code that untrustworthy?



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

end of thread, other threads:[~2009-01-03 15:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <495F7DF1.9000705@gnu.org>
2008-08-10 20:58 ` bug#687: 23.0.60; Mouse wheel should not trigger mouse avoidance Lennart Borgman (gmail)
2008-08-11  1:06   ` OFFICE ZERO
2009-01-03 15:10   ` bug#687: marked as done (23.0.60; Mouse wheel should not trigger mouse avoidance) Emacs bug Tracking System

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).