unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* overly-eager mouse scrolling on mac
@ 2014-01-22 20:07 Sam Steingold
  2014-01-23 13:00 ` Jan D.
  0 siblings, 1 reply; 8+ messages in thread
From: Sam Steingold @ 2014-01-22 20:07 UTC (permalink / raw)
  To: emacs-devel

In GNU Emacs 24.3.50.1 (x86_64-apple-darwin13.0.0, NS apple-appkit-1265.00)
 of 2014-01-21 on sds-MacBook-Pro.local
Windowing system distributor `Apple', version 10.3.1265
Configured using: `configure --with-ns'

Whenever I touch the mouse, emacs scrolls like crazy, starts blinking
(visible-bell is on), and *Message* contains these:

byte-code: End of buffer [5 times]
byte-code: End of buffer [5 times]
byte-code: Beginning of buffer [7 times]

lossage is:

<double-wheel-down> <wheel-right> <wheel-down> <wheel-down>
<double-wheel-down> <triple-wheel-down> <triple-wheel-down>
<triple-wheel-down> <triple-wheel-down> <wheel-up>
<double-wheel-up> <wheel-down> <double-wheel-down>
<wheel-up> <double-wheel-up> <triple-wheel-up> <triple-wheel-up>
<wheel-up> <select-window> <wheel-up> <double-wheel-up>
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
<triple-wheel-up> <triple-wheel-up> <wheel-down> <double-wheel-down>
<triple-wheel-down> <triple-wheel-down> <triple-wheel-down>
<triple-wheel-down> <triple-wheel-down> C-h l

is this a known bug?
feature?

I suspect that there is a timing parameter in the mouse handling code
which is too small...

PS. All the other applications (firefox &c) behave normally.

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1265
http://www.childpsy.net/ http://camera.org http://honestreporting.com
http://openvotingconsortium.org http://jihadwatch.org http://think-israel.org
What's the difference between Apathy & Ignorance? -I don't know and don't care!




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

* Re: overly-eager mouse scrolling on mac
  2014-01-22 20:07 overly-eager mouse scrolling on mac Sam Steingold
@ 2014-01-23 13:00 ` Jan D.
  2014-01-23 19:52   ` Sam Steingold
  0 siblings, 1 reply; 8+ messages in thread
From: Jan D. @ 2014-01-23 13:00 UTC (permalink / raw)
  To: sds; +Cc: emacs-devel

Hello.

Sam Steingold skrev 2014-01-22 21:07:
> In GNU Emacs 24.3.50.1 (x86_64-apple-darwin13.0.0, NS apple-appkit-1265.00)
>   of 2014-01-21 on sds-MacBook-Pro.local
> Windowing system distributor `Apple', version 10.3.1265
> Configured using: `configure --with-ns'
>
> Whenever I touch the mouse, emacs scrolls like crazy, starts blinking
> (visible-bell is on), and *Message* contains these:
>
> byte-code: End of buffer [5 times]
> byte-code: End of buffer [5 times]
> byte-code: Beginning of buffer [7 times]
>
> lossage is:
>
> <double-wheel-down> <wheel-right> <wheel-down> <wheel-down>
> <double-wheel-down> <triple-wheel-down> <triple-wheel-down>
> <triple-wheel-down> <triple-wheel-down> <wheel-up>
> <double-wheel-up> <wheel-down> <double-wheel-down>
> <wheel-up> <double-wheel-up> <triple-wheel-up> <triple-wheel-up>
> <wheel-up> <select-window> <wheel-up> <double-wheel-up>
> <triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
> <triple-wheel-up> <triple-wheel-up> <wheel-down> <double-wheel-down>
> <triple-wheel-down> <triple-wheel-down> <triple-wheel-down>
> <triple-wheel-down> <triple-wheel-down> C-h l
>
> is this a known bug?
> feature?
>
> I suspect that there is a timing parameter in the mouse handling code
> which is too small...
>
> PS. All the other applications (firefox &c) behave normally.
>

The blinking thing has been discussed in bug 16196.  There is a mwheel
workaround in there.

As for "crazy", that is not a clear technical term so I don't know what
that means.  If you mean that is scrolls very fast, I guess you have to
either fix mwheel or adjust mouse acceleration in OSX settings.

Here (with Magic mouse and trackpad) the speed is reasonable.  Faster
than GNU/Linux/Gtk+ on the same hardware, but still OK.

	Jan D.




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

* Re: overly-eager mouse scrolling on mac
  2014-01-23 13:00 ` Jan D.
@ 2014-01-23 19:52   ` Sam Steingold
  2014-01-24  3:31     ` Elias Mårtenson
  0 siblings, 1 reply; 8+ messages in thread
From: Sam Steingold @ 2014-01-23 19:52 UTC (permalink / raw)
  To: emacs-devel

Hi,

> * Jan D. <wna.u.q@fjvcarg.fr> [2014-01-23 14:00:09 +0100]:
>
> Sam Steingold skrev 2014-01-22 21:07:
>> In GNU Emacs 24.3.50.1 (x86_64-apple-darwin13.0.0, NS apple-appkit-1265.00)
>>   of 2014-01-21 on sds-MacBook-Pro.local
>> Windowing system distributor `Apple', version 10.3.1265
>> Configured using: `configure --with-ns'
>>
>> Whenever I touch the mouse, emacs scrolls like crazy, starts blinking
>> (visible-bell is on), and *Message* contains these:
>>
>> byte-code: End of buffer [5 times]
>> byte-code: End of buffer [5 times]
>> byte-code: Beginning of buffer [7 times]
>>
>> lossage is:
>>
>> <double-wheel-down> <wheel-right> <wheel-down> <wheel-down>
>> <double-wheel-down> <triple-wheel-down> <triple-wheel-down>
>> <triple-wheel-down> <triple-wheel-down> <wheel-up>
>> <double-wheel-up> <wheel-down> <double-wheel-down>
>> <wheel-up> <double-wheel-up> <triple-wheel-up> <triple-wheel-up>
>> <wheel-up> <select-window> <wheel-up> <double-wheel-up>
>> <triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
>> <triple-wheel-up> <triple-wheel-up> <wheel-down> <double-wheel-down>
>> <triple-wheel-down> <triple-wheel-down> <triple-wheel-down>
>> <triple-wheel-down> <triple-wheel-down> C-h l
>>
>> is this a known bug?
>> feature?
>>
>> I suspect that there is a timing parameter in the mouse handling code
>> which is too small...
>>
>> PS. All the other applications (firefox &c) behave normally.
>>
>
> The blinking thing has been discussed in bug 16196.

Thanks for the pointer.
Your problem is slightly different from mine:
you don't like the beeps,
I don't like the scroll amount.

> There is a mwheel workaround in there.

Well, the workaround is only a partial fix. (see below)

> As for "crazy", that is not a clear technical term so I don't know what
> that means.

My problem is that there are too many mouse events are generated,
so a touch to the mouse results in a huge scroll.
Basically, a scroll means either end-of-buffer or beginning-of-buffer.

> If you mean that is scrolls very fast, I guess you have to
> either fix mwheel or adjust mouse acceleration in OSX settings.

All the other applications seem to handle the mouse as I want them too.
The problem seems to be with Emacs.

> Here (with Magic mouse and trackpad) the speed is reasonable.  Faster
> than GNU/Linux/Gtk+ on the same hardware, but still OK.

Okay, so you are confirming my impression that the problem is with Emacs.
Thanks.

elp-instrument-function appears to indicate that mwheel-scroll is called
much more often than I want it to be called - 20+ times for a simple
touch of the mouse.

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1265
http://www.childpsy.net/ http://mideasttruth.com http://www.memritv.org
http://memri.org http://dhimmi.com http://americancensorship.org
If money were measured in piles, I would have had a pit of it.




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

* Re: overly-eager mouse scrolling on mac
  2014-01-23 19:52   ` Sam Steingold
@ 2014-01-24  3:31     ` Elias Mårtenson
  2014-01-24 13:17       ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Elias Mårtenson @ 2014-01-24  3:31 UTC (permalink / raw)
  To: sds; +Cc: emacs-devel

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

For what it's worth, I was suffering from exactly the same thing and
eventually unbound the mwheel stuff altogether and simply rebound them to
the following. After that, scrolling was sane again.

(defun scroll-up-one ()
  (interactive)
  (scroll-up 1))

(defun scroll-down-one ()
  (interactive)
  (scroll-down 1))

(defun scroll-up-double-speed ()
  (interactive)
  (scroll-up 3))

(defun scroll-down-double-speed ()
  (interactive)
  (scroll-down 3))

(global-set-key (kbd "<mouse-4>") 'scroll-down-one)
(global-set-key (kbd "<mouse-5>") 'scroll-up-one)
(global-set-key (kbd "<double-mouse-4>") 'scroll-down-double-speed)
(global-set-key (kbd "<double-mouse-5>") 'scroll-up-double-speed)
(global-set-key (kbd "<wheel-up>") 'scroll-down-one)
(global-set-key (kbd "<wheel-down>") 'scroll-up-one)
(global-set-key (kbd "<double-wheel-up>") 'scroll-down-double-speed)
(global-set-key (kbd "<double-wheel-down>") 'scroll-up-double-speed)

Regards,
Elias


On 24 January 2014 03:52, Sam Steingold <sds@gnu.org> wrote:

> Hi,
>
> > * Jan D. <wna.u.q@fjvcarg.fr> [2014-01-23 14:00:09 +0100]:
> >
> > Sam Steingold skrev 2014-01-22 21:07:
> >> In GNU Emacs 24.3.50.1 (x86_64-apple-darwin13.0.0, NS
> apple-appkit-1265.00)
> >>   of 2014-01-21 on sds-MacBook-Pro.local
> >> Windowing system distributor `Apple', version 10.3.1265
> >> Configured using: `configure --with-ns'
> >>
> >> Whenever I touch the mouse, emacs scrolls like crazy, starts blinking
> >> (visible-bell is on), and *Message* contains these:
> >>
> >> byte-code: End of buffer [5 times]
> >> byte-code: End of buffer [5 times]
> >> byte-code: Beginning of buffer [7 times]
> >>
> >> lossage is:
> >>
> >> <double-wheel-down> <wheel-right> <wheel-down> <wheel-down>
> >> <double-wheel-down> <triple-wheel-down> <triple-wheel-down>
> >> <triple-wheel-down> <triple-wheel-down> <wheel-up>
> >> <double-wheel-up> <wheel-down> <double-wheel-down>
> >> <wheel-up> <double-wheel-up> <triple-wheel-up> <triple-wheel-up>
> >> <wheel-up> <select-window> <wheel-up> <double-wheel-up>
> >> <triple-wheel-up> <triple-wheel-up> <triple-wheel-up>
> >> <triple-wheel-up> <triple-wheel-up> <wheel-down> <double-wheel-down>
> >> <triple-wheel-down> <triple-wheel-down> <triple-wheel-down>
> >> <triple-wheel-down> <triple-wheel-down> C-h l
> >>
> >> is this a known bug?
> >> feature?
> >>
> >> I suspect that there is a timing parameter in the mouse handling code
> >> which is too small...
> >>
> >> PS. All the other applications (firefox &c) behave normally.
> >>
> >
> > The blinking thing has been discussed in bug 16196.
>
> Thanks for the pointer.
> Your problem is slightly different from mine:
> you don't like the beeps,
> I don't like the scroll amount.
>
> > There is a mwheel workaround in there.
>
> Well, the workaround is only a partial fix. (see below)
>
> > As for "crazy", that is not a clear technical term so I don't know what
> > that means.
>
> My problem is that there are too many mouse events are generated,
> so a touch to the mouse results in a huge scroll.
> Basically, a scroll means either end-of-buffer or beginning-of-buffer.
>
> > If you mean that is scrolls very fast, I guess you have to
> > either fix mwheel or adjust mouse acceleration in OSX settings.
>
> All the other applications seem to handle the mouse as I want them too.
> The problem seems to be with Emacs.
>
> > Here (with Magic mouse and trackpad) the speed is reasonable.  Faster
> > than GNU/Linux/Gtk+ on the same hardware, but still OK.
>
> Okay, so you are confirming my impression that the problem is with Emacs.
> Thanks.
>
> elp-instrument-function appears to indicate that mwheel-scroll is called
> much more often than I want it to be called - 20+ times for a simple
> touch of the mouse.
>
> --
> Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1265
> http://www.childpsy.net/ http://mideasttruth.com http://www.memritv.org
> http://memri.org http://dhimmi.com http://americancensorship.org
> If money were measured in piles, I would have had a pit of it.
>
>
>

[-- Attachment #2: Type: text/html, Size: 6100 bytes --]

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

* Re: overly-eager mouse scrolling on mac
  2014-01-24  3:31     ` Elias Mårtenson
@ 2014-01-24 13:17       ` Stefan Monnier
  2014-01-26 18:42         ` chad
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2014-01-24 13:17 UTC (permalink / raw)
  To: Elias Mårtenson; +Cc: sds, emacs-devel

> For what it's worth, I was suffering from exactly the same thing and
> eventually unbound the mwheel stuff altogether and simply rebound them to
> the following. After that, scrolling was sane again.

You can probably get the same kind of result by tweaking
mouse-wheel-scroll-amount as in:

  (setf (car mouse-wheel-scroll-amount) 1)

But this "shouldn't" be needed.  IOW we should try and figure out why
you get so many scroll events even for short moves.

  
        Stefan



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

* Re: overly-eager mouse scrolling on mac
  2014-01-24 13:17       ` Stefan Monnier
@ 2014-01-26 18:42         ` chad
  2014-01-27  2:06           ` Sam Steingold
  0 siblings, 1 reply; 8+ messages in thread
From: chad @ 2014-01-26 18:42 UTC (permalink / raw)
  To: Elias Mårtenson, sds; +Cc: emacs


On 24 Jan 2014, at 05:17, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

>> For what it's worth, I was suffering from exactly the same thing and
>> eventually unbound the mwheel stuff altogether and simply rebound them to
>> the following. After that, scrolling was sane again.
> ...
> But this "shouldn't" be needed.  IOW we should try and figure out why
> you get so many scroll events even for short moves.

To this end, for the people seeing this problem: what are you using
for a mouse? I dont see it on my macbook trackpad or my logitech
trackman marble wheel, but neither of those are really typical.

~Chad




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

* Re: overly-eager mouse scrolling on mac
  2014-01-26 18:42         ` chad
@ 2014-01-27  2:06           ` Sam Steingold
  2014-01-27 16:01             ` Sam Steingold
  0 siblings, 1 reply; 8+ messages in thread
From: Sam Steingold @ 2014-01-27  2:06 UTC (permalink / raw)
  To: emacs-devel

> * chad <lnaqebf@tznvy.pbz> [2014-01-26 10:42:45 -0800]:
>
> On 24 Jan 2014, at 05:17, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
>> we should try and figure out why
>> you get so many scroll events even for short moves.
>
> To this end, for the people seeing this problem: what are you using
> for a mouse? I dont see it on my macbook trackpad or my logitech
> trackman marble wheel, but neither of those are really typical.

I do not have this problem with the macbook trackpad either.
I do however have this problem with the apple wireless mouse.

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1265
http://www.childpsy.net/ http://think-israel.org http://mideasttruth.com
http://www.memritv.org http://islamexposedonline.com http://iris.org.il
A language that does not change the way you think is not worth learning.




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

* Re: overly-eager mouse scrolling on mac
  2014-01-27  2:06           ` Sam Steingold
@ 2014-01-27 16:01             ` Sam Steingold
  0 siblings, 0 replies; 8+ messages in thread
From: Sam Steingold @ 2014-01-27 16:01 UTC (permalink / raw)
  To: emacs-devel

> * Sam Steingold <fqf@tah.bet> [2014-01-26 21:06:39 -0500]:
>
>> * chad <lnaqebf@tznvy.pbz> [2014-01-26 10:42:45 -0800]:
>>
>> On 24 Jan 2014, at 05:17, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>>
>>> we should try and figure out why
>>> you get so many scroll events even for short moves.
>>
>> To this end, for the people seeing this problem: what are you using
>> for a mouse? I dont see it on my macbook trackpad or my logitech
>> trackman marble wheel, but neither of those are really typical.
>
> I do not have this problem with the macbook trackpad either.

I spoke too soon: the problem _is_ present, but it is _much_ less pronounced.
(I have to scroll with 2 finger for emacs to be overloaded with scroll events)

> I do however have this problem with the apple wireless mouse.

"Apple Magic Mouse" connected via USB.
(scrolling with one finger is enough).

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1265
http://www.childpsy.net/ http://pmw.org.il http://camera.org
https://www.facebook.com/TheIslamicThreat http://mideasttruth.com
To understand recursion, one has to understand recursion first.




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

end of thread, other threads:[~2014-01-27 16:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-22 20:07 overly-eager mouse scrolling on mac Sam Steingold
2014-01-23 13:00 ` Jan D.
2014-01-23 19:52   ` Sam Steingold
2014-01-24  3:31     ` Elias Mårtenson
2014-01-24 13:17       ` Stefan Monnier
2014-01-26 18:42         ` chad
2014-01-27  2:06           ` Sam Steingold
2014-01-27 16:01             ` Sam Steingold

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