Subject: Re: bug#17378: 24.3.1: xterm-mouse-event: Wrong type argument: wholenump, -6

From: Stefan Monnier <[email-masked]>
Date: Wed, 07 May 2014 09:43:59 -0400

> Here you go.  I did it a couple times, just in case.

Thanks.  Can you correlate my decoding below with what you've actually done?

> ESC [ M SPC > 4
> ESC [ M # > 4

down-mouse-1 + mouse-1, at position 30,20

> ESC [ M a > 4
> ESC [ M # > 4

That would be mouse-5 + the weird "up-mouse".  Still at position 30,20.

> ESC [ M a > 4
> ESC [ M # > 4
> ESC [ M a > 4
> ESC [ M # > 4
> ESC [ M a > 4
> ESC [ M # > 4

Repeated 3 more times.

> C-x 3

I think we all know this one.

> ESC [ M SPC \253 /
> ESC [ M # \253 /

down-mouse-1 + mouse-1, at position 139,15

> ESC [ M ` \253 /
> ESC [ M # \253 /

That would be mouse-4 + the weird "up-mouse".  Still at position 139,15.

> ESC [ M ` \253 /
> ESC [ M # \253 /
> ESC [ M ` \253 /
> ESC [ M # \253 /
> ESC [ M ` \253 /
> ESC [ M # \253 /

Repeated 3 more times.

> ESC [ M ` \253 /
> ESC [ M ` \253 /

The same mouse-4 again, repeated twice but this time without the weird
"up-mouse".

> C-x 3

OK.

> ESC [ M SPC \335 3
> ESC [ M # \335 3

down-mouse-1 + mouse-1, at position 189,19

> ESC [ M ! \335 3
> ESC [ M # \335 3

down-mouse-2 + mouse-2, at position 189,19

> ESC [ M " \335 3
> ESC [ M # \335 3

down-mouse-3 + mouse-3, at position 189,19

> ESC [ M a \335 3
> ESC [ M # \335 3

mouse-5 + weird "up-mouse", at position 189,19

> ESC [ M 3 ESC [
> ESC [ M 3 ESC [
> ESC [ M 3 ESC [
> ESC [ M 3 ESC [
> ESC [ M 3 ESC [
> ESC [ M 3 ESC [

Hmm... no idea what this is.

> ESC [ M SPC \360 >
> ESC [ M # \360 >

down-mouse-1 + mouse-1, at position 208,30

> ESC [ M ! \360 >
> ESC [ M # \360 >

down-mouse-2 + mouse-2, at position 208,30

> ESC [ M " \360 >
> ESC [ M # \360 >

down-mouse-3 + mouse-3, at position 208,30

> ESC [ M a \360 >
> ESC [ M # \360 >

mouse-5 + weird "up-mouse", at position 189,19

> ESC [ M > ESC [
> ESC [ M > ESC [
> ESC [ M > ESC [

Still no clue.

> ESC x v i e w - l o TAB RET

OK, first part done.-------------------------------------------------------

> ESC [ M SPC < <
> ESC [ M # < <

down-mouse-1 + mouse-1, at position 28,28

> ESC [ M a < <
> ESC [ M # < <
> ESC [ M a < <
> ESC [ M # < <

Twice: mouse-5 + weird "up-mouse", at position 28,28

> C-x 3

OK

> ESC [ M SPC \247 7
> ESC [ M # \247 7

down-mouse-1 + mouse-1, at position 135,23

> ESC [ M ` \247 7
> ESC [ M # \247 7

mouse-4 + weird "up-mouse".  Still at position 135,15.

> ESC [ M ` \247 7
> ESC [ M # \247 7

Repeated.

> ESC [ M ` \247 7

Again but without the "up-mouse".

> C-x 3

OK

> ESC [ M SPC \341 1
> ESC [ M # \341 1

down-mouse-1 + mouse-1, at position 193,17

> ESC [ M ! \341 1
> ESC [ M # \341 1

down-mouse-2 + mouse-2, at position 193,17

> ESC [ M " \341 1
> ESC [ M # \341 1

down-mouse-3 + mouse-3, at position 193,17

> ESC [ M a \341 1
> ESC [ M # \341 1

mouse-5 + weird up-mouse, at position 193,17

> ESC [ M 1 ESC [
> ESC [ M 1 ESC [

Even less clue since now the ">" has turned into "1".

> ESC [ M SPC \360 )
> ESC [ M # \360 )

down-mouse-1 + mouse-1, at position 208,9

> ESC [ M ! \360 )
> ESC [ M # \360 )

down-mouse-2 + mouse-2, at position 208,9

> ESC [ M " \360 )
> ESC [ M # \360 )

down-mouse-3 + mouse-3, at position 208,9

> ESC [ M a \360 )
> ESC [ M # \360 )

mouse-5 + weird up-mouse, at position 208,9

> ESC [ M ) ESC [
> ESC [ M ) ESC [

In your earlier email, you had a "ESC [ M 5 ESC ["; so far we've seen
"ESC [ M ?? ESC [" with ?? equal to ">", "1", "5", and now ")".

One thing I notice is that in the 1,2,3,4,5 series, the 4 appears to
be missing.  Was that an oversight on your part, or did you do the
scroll up, then scroll down?

If you did do the up and the down, some of the "weird up-mouse"
thingies might actually stand for the mouse-4!

OTOH, those come after the mouse-5 events.  Could it be that you did
wheel-down then wheel-up rather than the reverse (the notion of up and
down in this context often leads to confusion)?

        Stefan