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

From: Glenn Morris <[email-masked]>
Date: Fri, 02 May 2014 21:45:14 -0400

Ishmael wrote:

> tmux
> emacs -nw
> C-x 3
> C-x 3
>
> Scroll UP with mouse's scroll wheel in RIGHTMOST window only causes:
> xterm-mouse-event: Wrong type argument: wholenump, -6 
>
> Note that scrolling down works in rightmost window.  Also, both scroll up
> and scroll down work in all other windows.
>
> In my .emacs, I have:
>
> ;; Enable mouse support in non-GUI mode (emacs -nw)
> (unless window-system
>   (require 'mouse)
>   (xterm-mouse-mode t)
>   (global-set-key [mouse-4] '(lambda ()
>                               (interactive)
>                               (scroll-down 5)))
>   (global-set-key [mouse-5] '(lambda ()
>                               (interactive)
>                               (scroll-up 5)))
>   (defun track-mouse (e))
>   (setq mouse-sel-mode t)
> )

FWIW, I cannot reproduce this problem on RHEL 6.5 with tmux 1.6-3,
xterm "X.Org 6.8.99.903(253)", and Emacs 24.3.