From zinosat@tiscali.it Thu Sep 18 06:46:51 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 18 Sep 2008 13:46:51 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8IDkliI024532 for ; Thu, 18 Sep 2008 06:46:48 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KgJqI-0002zj-Kt for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2008 09:46:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KgJqG-0002zV-Ll for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2008 09:46:46 -0400 Received: from [199.232.76.173] (port=58007 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgJqG-0002zS-A0 for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2008 09:46:44 -0400 Received: from cp-out8.libero.it ([212.52.84.108]:51492) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KgJqF-0007gP-In for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2008 09:46:44 -0400 Received: from localhost (151.21.194.19) by cp-out8.libero.it (8.5.014) id 48BAF035030B64D8 for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2008 15:45:09 +0200 Received: from zino by localhost with local (Exim 4.63) (envelope-from ) id 1KgJo2-0002RK-Dt for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2008 15:44:26 +0200 Date: Thu, 18 Sep 2008 15:44:13 +0200 To: bug-gnu-emacs@gnu.org Subject: after split-window-horizontally scroll works only on first window Message-ID: <20080918134412.GH3430@zinosat.homelinux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) From: Davide Viti X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) As said in the subject, no matter which of the two windows is active, when using the mouse wheel to scroll up / down, it always happens on the left window. Apologies if this is a known bug. thanx in advance, Davide If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file d:/emacs-22.2/etc/DEBUG for instructions. In GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) of 2008-03-26 on RELEASE Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ITA locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: C/l Minor modes in effect: display-time-mode: t show-paren-mode: t encoded-kbd-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t From zinosat@tiscali.it Thu Sep 18 23:51:19 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 998) by emacsbugs.donarmstrong.com; 19 Sep 2008 06:51:19 +0000 Received: from cp-out11.libero.it (cp-out11.libero.it [212.52.84.111]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8J6pF6D025702 for <998@emacsbugs.donarmstrong.com>; Thu, 18 Sep 2008 23:51:17 -0700 Received: from localhost (151.21.194.19) by cp-out11.libero.it (8.5.014) id 48B7107003A50E5C for 998@emacsbugs.donarmstrong.com; Fri, 19 Sep 2008 08:51:09 +0200 Received: from zino by localhost with local (Exim 4.63) (envelope-from ) id 1KgZou-0002Xe-GL; Fri, 19 Sep 2008 08:50:25 +0200 Date: Fri, 19 Sep 2008 08:50:13 +0200 To: martin rudalics Cc: 998@debbugs.gnu.org Subject: Re: bug#998: after split-window-horizontally scroll works only on first window Message-ID: <20080919065012.GI3430@zinosat.homelinux.com> References: <20080918134412.GH3430@zinosat.homelinux.com> <48D29A54.2050605@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48D29A54.2050605@gmx.at> User-Agent: Mutt/1.5.13 (2006-08-11) From: Davide Viti On Thu, Sep 18, 2008 at 08:13:40PM +0200, martin rudalics wrote: > > As said in the subject, no matter which of the two windows is active, > > when using the mouse wheel to scroll up / down, it always happens on the > left > > window. > > Could you please type C-h k, scroll the mouse wheel, and so tell me what > command it is bound to? (translated from ) at that spot runs the command scroll-bar-toolkit-scroll which is an interactive compiled Lisp function in `scroll-bar.el'. It is bound to . (scroll-bar-toolkit-scroll event) Not documented. thanx for your help, Davide From rudalics@gmx.at Fri Sep 19 00:04:10 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 998) by emacsbugs.donarmstrong.com; 19 Sep 2008 07:04:10 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8J7463h029535 for <998@emacsbugs.donarmstrong.com>; Fri, 19 Sep 2008 00:04:08 -0700 Received: (qmail invoked by alias); 19 Sep 2008 07:04:00 -0000 Received: from 62-47-44-24.adsl.highway.telekom.at (EHLO [62.47.44.24]) [62.47.44.24] by mail.gmx.net (mp025) with SMTP; 19 Sep 2008 09:04:00 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+36RZUP2y31eG1xMyfsdfYcspCITMoarzE31W8nX wQwi9fAGk8OP3M Message-ID: <48D34E41.9090301@gmx.at> Date: Fri, 19 Sep 2008 09:01:21 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Davide Viti CC: 998@debbugs.gnu.org Subject: Re: bug#998: after split-window-horizontally scroll works only on first window References: <20080918134412.GH3430@zinosat.homelinux.com> <48D29A54.2050605@gmx.at> <20080919065012.GI3430@zinosat.homelinux.com> In-Reply-To: <20080919065012.GI3430@zinosat.homelinux.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.64 > (translated from ) at that spot runs the command scroll-bar-toolkit-scroll > which is an interactive compiled Lisp function in `scroll-bar.el'. OK. Could you now please append the following modified version of `scroll-bar-toolkit-scroll' to your .emacs, restart Emacs, split the window horizontally, move the mouse into each of these windows, scroll the mouse and tell me whether the windows mentioned in the messages you should see (here I get for example .... #) have the same or different values. Thanks, martin. ;; code starts here (defun scroll-bar-toolkit-scroll (event) (interactive "e") (let* ((end-position (event-end event)) (window (nth 0 end-position)) (part (nth 4 end-position)) before-scroll) (message ".... %s" window) (cond ((eq part 'end-scroll)) (t (with-current-buffer (window-buffer window) (setq before-scroll point-before-scroll)) (save-selected-window (select-window window) (setq before-scroll (or before-scroll (point))) (cond ((eq part 'above-handle) (scroll-up '-)) ((eq part 'below-handle) (scroll-up nil)) ((eq part 'ratio) (let* ((portion-whole (nth 2 end-position)) (lines (scroll-bar-scale portion-whole (1- (window-height))))) (scroll-up (cond ((not (zerop lines)) lines) ((< (car portion-whole) 0) -1) (t 1))))) ((eq part 'up) (scroll-up -1)) ((eq part 'down) (scroll-up 1)) ((eq part 'top) (set-window-start window (point-min))) ((eq part 'bottom) (goto-char (point-max)) (recenter)) ((eq part 'handle) (scroll-bar-drag-1 event)))) (sit-for 0) (with-current-buffer (window-buffer window) (setq point-before-scroll before-scroll)))))) ;; code ends here From zinosat@tiscali.it Fri Sep 19 00:36:53 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 998) by emacsbugs.donarmstrong.com; 19 Sep 2008 07:36:53 +0000 Received: from cp-out8.libero.it (cp-out8.libero.it [212.52.84.108]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8J7anZr009562 for <998@emacsbugs.donarmstrong.com>; Fri, 19 Sep 2008 00:36:51 -0700 Received: from localhost (151.21.194.19) by cp-out8.libero.it (8.5.014) id 48BAF035032A6E1A for 998@emacsbugs.donarmstrong.com; Fri, 19 Sep 2008 09:36:44 +0200 Received: from zino by localhost with local (Exim 4.63) (envelope-from ) id 1KgaX1-0002Yn-Fu; Fri, 19 Sep 2008 09:36:00 +0200 Date: Fri, 19 Sep 2008 09:35:45 +0200 To: martin rudalics Cc: 998@debbugs.gnu.org Subject: Re: bug#998: after split-window-horizontally scroll works only on first window Message-ID: <20080919073544.GJ3430@zinosat.homelinux.com> References: <20080918134412.GH3430@zinosat.homelinux.com> <48D29A54.2050605@gmx.at> <20080919065012.GI3430@zinosat.homelinux.com> <48D34E41.9090301@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48D34E41.9090301@gmx.at> User-Agent: Mutt/1.5.13 (2006-08-11) From: Davide Viti On Fri, Sep 19, 2008 at 09:01:21AM +0200, martin rudalics wrote: > > (translated from ) at that spot > runs the command scroll-bar-toolkit-scroll > > which is an interactive compiled Lisp function in `scroll-bar.el'. > > OK. Could you now please append the following modified version of > `scroll-bar-toolkit-scroll' to your .emacs, restart Emacs, split the > window horizontally, move the mouse into each of these windows, scroll > the mouse and tell me whether the windows mentioned in the messages you > should see (here I get for example .... #) have the > same or different values. still not working and I get the very same message as yours (.... #) when scrolling the wheel on any of the two windows regards, Davide PS: last night I gave it a go on my Ubuntu machine and it worked; C-h-k gave me this: (translated from ) at that spot runs the command mwheel-scroll which is an interactive compiled Lisp function in `mwheel.el'. It is bound to , , , , , . (mwheel-scroll event) Scroll up or down according to the event. This should only be bound to mouse buttons 4 and 5. From rudalics@gmx.at Fri Sep 19 01:45:24 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 998) by emacsbugs.donarmstrong.com; 19 Sep 2008 08:45:24 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8J8jKCi001159 for <998@emacsbugs.donarmstrong.com>; Fri, 19 Sep 2008 01:45:21 -0700 Received: (qmail invoked by alias); 19 Sep 2008 08:45:14 -0000 Received: from 62-47-44-24.adsl.highway.telekom.at (EHLO [62.47.44.24]) [62.47.44.24] by mail.gmx.net (mp058) with SMTP; 19 Sep 2008 10:45:14 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18G9R4GwcoGfQmPXOgSbDz2FfX2UPIpo1fEbZATKc cksMIsQj8/D5hZ Message-ID: <48D365FB.8010007@gmx.at> Date: Fri, 19 Sep 2008 10:42:35 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Davide Viti CC: 998@debbugs.gnu.org Subject: Re: bug#998: after split-window-horizontally scroll works only on first window References: <20080918134412.GH3430@zinosat.homelinux.com> <48D29A54.2050605@gmx.at> <20080919065012.GI3430@zinosat.homelinux.com> <48D34E41.9090301@gmx.at> <20080919073544.GJ3430@zinosat.homelinux.com> In-Reply-To: <20080919073544.GJ3430@zinosat.homelinux.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6899999999999999 > still not working and I get the very same message as yours (.... #) > when scrolling the wheel on any of the two windows So the fault is not with `scroll-bar-toolkit-scroll' but with the wrong window chosen when making the input-event. This could be related to your mouse-driver - some of them try to "intelligently" guess the window you want to scroll. Finding the reason of this might be non-trivial. > PS: last night I gave it a go on my Ubuntu machine and it worked; C-h-k gave me this: > > (translated from ) at that spot runs the command mwheel-scroll > which is an interactive compiled Lisp function in `mwheel.el'. > It is bound to , , , , , . > (mwheel-scroll event) > > Scroll up or down according to the event. > This should only be bound to mouse buttons 4 and 5. I'm afraid the assignment is currently beyond the control of Emacs whenever you have scroll bars enabled. I suppose your Emacs on Windows scrolls the right window (and runs `mwheel-scroll') when you disable scroll bars, e.g., by putting (scroll-bar-mode -1) in your .emacs? martin From zinosat@tiscali.it Fri Sep 19 04:24:12 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.7 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 998) by emacsbugs.donarmstrong.com; 19 Sep 2008 11:24:12 +0000 Received: from cp-out12.libero.it (cp-out12.libero.it [212.52.84.112]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8JBO8pc024896 for <998@emacsbugs.donarmstrong.com>; Fri, 19 Sep 2008 04:24:09 -0700 Received: from localhost (151.21.194.19) by cp-out12.libero.it (8.5.014) id 48B4013E041BC7ED for 998@emacsbugs.donarmstrong.com; Fri, 19 Sep 2008 13:24:02 +0200 Received: from zino by localhost with local (Exim 4.63) (envelope-from ) id 1Kge53-0002ZS-4b; Fri, 19 Sep 2008 13:23:21 +0200 Date: Fri, 19 Sep 2008 13:23:10 +0200 To: martin rudalics Cc: 998@debbugs.gnu.org Subject: Re: bug#998: after split-window-horizontally scroll works only on first window Message-ID: <20080919112310.GK3430@zinosat.homelinux.com> References: <20080918134412.GH3430@zinosat.homelinux.com> <48D29A54.2050605@gmx.at> <20080919065012.GI3430@zinosat.homelinux.com> <48D34E41.9090301@gmx.at> <20080919073544.GJ3430@zinosat.homelinux.com> <48D365FB.8010007@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48D365FB.8010007@gmx.at> User-Agent: Mutt/1.5.13 (2006-08-11) From: Davide Viti On Fri, Sep 19, 2008 at 10:42:35AM +0200, martin rudalics wrote: > I'm afraid the assignment is currently beyond the control of Emacs > whenever you have scroll bars enabled. I suppose your Emacs on Windows > scrolls the right window (and runs `mwheel-scroll') when you disable > scroll bars, e.g., by putting (scroll-bar-mode -1) in your .emacs? that is correct: (scroll-bar-mode -1) fixes it thanx, Davide From rudalics@gmx.at Fri Sep 19 04:39:01 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 998) by emacsbugs.donarmstrong.com; 19 Sep 2008 11:39:01 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8JBcsLM029961 for <998@emacsbugs.donarmstrong.com>; Fri, 19 Sep 2008 04:38:56 -0700 Received: (qmail invoked by alias); 19 Sep 2008 11:38:48 -0000 Received: from 62-47-32-170.adsl.highway.telekom.at (EHLO [62.47.32.170]) [62.47.32.170] by mail.gmx.net (mp064) with SMTP; 19 Sep 2008 13:38:48 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/5j8kWx1X5dyLBGn1kp64f3E5orfXdT5X1jG1zXf AAmhY6z6dVOlyN Message-ID: <48D38EA8.5010300@gmx.at> Date: Fri, 19 Sep 2008 13:36:08 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Davide Viti CC: 998@debbugs.gnu.org Subject: Re: bug#998: after split-window-horizontally scroll works only on first window References: <20080918134412.GH3430@zinosat.homelinux.com> <48D29A54.2050605@gmx.at> <20080919065012.GI3430@zinosat.homelinux.com> <48D34E41.9090301@gmx.at> <20080919073544.GJ3430@zinosat.homelinux.com> <48D365FB.8010007@gmx.at> <20080919112310.GK3430@zinosat.homelinux.com> In-Reply-To: <20080919112310.GK3430@zinosat.homelinux.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.76 > that is correct: (scroll-bar-mode -1) fixes it But that's not a very good solution, I presume. What kind of mouse do you have? Are you using Intelli-mouse settings, do you use something like improved scroll-mode? Wrt Emacs what is your value of `mouse-wheel-follow-mouse'? Does it help to set this to t? What happens when you set `mouse-autoselect-window' to t? martin From rudalics@gmx.at Wed Sep 24 02:39:08 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.7 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 998) by emacsbugs.donarmstrong.com; 24 Sep 2008 09:39:08 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8O9d4wi026305 for <998@emacsbugs.donarmstrong.com>; Wed, 24 Sep 2008 02:39:06 -0700 Received: (qmail invoked by alias); 24 Sep 2008 09:38:58 -0000 Received: from 62-47-41-49.adsl.highway.telekom.at (EHLO [62.47.41.49]) [62.47.41.49] by mail.gmx.net (mp022) with SMTP; 24 Sep 2008 11:38:58 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/ydUE8uW/ygWxdETsWkcqiFnd6yX5RoPVtQi0Akh tuiDJPzAOVE4+l Message-ID: <48DA09D9.9010407@gmx.at> Date: Wed, 24 Sep 2008 11:35:21 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Davide Viti CC: 998@debbugs.gnu.org Subject: Re: bug#998: after split-window-horizontally scroll works only on first window References: <20080918134412.GH3430@zinosat.homelinux.com> <48D29A54.2050605@gmx.at> <20080919065012.GI3430@zinosat.homelinux.com> <48D34E41.9090301@gmx.at> <20080919073544.GJ3430@zinosat.homelinux.com> <48D365FB.8010007@gmx.at> <20080919112310.GK3430@zinosat.homelinux.com> In-Reply-To: <20080919112310.GK3430@zinosat.homelinux.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.68 I've been able to reproduce the bug by clicking the small dart above the scrollbar of a right window and subsequently scrolling the mouse-wheel. In that case the `event' argument passed to `scroll-bar-toolkit-scroll' invariantly names the left (sometimes the minibuffer) window. When I sample the mouse explicitly the bug doesn't occur. Davide, could you try to append the code below to your .emacs and see whether it makes the bug go away? Thanks, martin. (defun scroll-bar-toolkit-scroll (event) (interactive "e") (let* ((end-position (event-end event)) (mouse-position (mouse-position)) (window (condition-case nil (window-at (cadr mouse-position) (cddr mouse-position) (car mouse-position)) (error (nth 0 end-position)))) (part (nth 4 end-position)) before-scroll) (unless (eq part 'end-scroll) (with-selected-window window (setq before-scroll (or point-before-scroll (point))) (cond ((eq part 'above-handle) (scroll-up '-)) ((eq part 'below-handle) (scroll-up nil)) ((eq part 'ratio) (let* ((portion-whole (nth 2 end-position)) (lines (scroll-bar-scale portion-whole (1- (window-height))))) (scroll-up (cond ((not (zerop lines)) lines) ((< (car portion-whole) 0) -1) (t 1))))) ((eq part 'up) (scroll-up -1)) ((eq part 'down) (scroll-up 1)) ((eq part 'top) (set-window-start window (point-min))) ((eq part 'bottom) (goto-char (point-max)) (recenter)) ((eq part 'handle) (scroll-bar-drag-1 event)))) (sit-for 0) (with-current-buffer (window-buffer window) (setq point-before-scroll before-scroll))))) From zinosat@tiscali.it Mon Sep 29 06:28:10 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.7 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 998) by emacsbugs.donarmstrong.com; 29 Sep 2008 13:28:10 +0000 Received: from cp-out7.libero.it (cp-out7.libero.it [212.52.84.107]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8TDS3w4026185 for <998@emacsbugs.donarmstrong.com>; Mon, 29 Sep 2008 06:28:05 -0700 Received: from localhost (151.21.198.52) by cp-out7.libero.it (8.5.014) id 48DEF9C5002C24E1 for 998@emacsbugs.donarmstrong.com; Mon, 29 Sep 2008 15:27:58 +0200 Received: from zino by localhost with local (Exim 4.63) (envelope-from ) id 1KkIm6-0003iU-Fn; Mon, 29 Sep 2008 15:26:56 +0200 Date: Mon, 29 Sep 2008 15:26:43 +0200 To: martin rudalics Cc: 998@debbugs.gnu.org Subject: Re: bug#998: after split-window-horizontally scroll works only on first window Message-ID: <20080929132643.GB14199@zinosat.homelinux.com> References: <20080918134412.GH3430@zinosat.homelinux.com> <48D29A54.2050605@gmx.at> <20080919065012.GI3430@zinosat.homelinux.com> <48D34E41.9090301@gmx.at> <20080919073544.GJ3430@zinosat.homelinux.com> <48D365FB.8010007@gmx.at> <20080919112310.GK3430@zinosat.homelinux.com> <48DA09D9.9010407@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48DA09D9.9010407@gmx.at> User-Agent: Mutt/1.5.13 (2006-08-11) From: Davide Viti On Wed, Sep 24, 2008 at 11:35:21AM +0200, martin rudalics wrote: > I've been able to reproduce the bug by clicking the small dart above the > scrollbar of a right window and subsequently scrolling the mouse-wheel. > In that case the `event' argument passed to `scroll-bar-toolkit-scroll' > invariantly names the left (sometimes the minibuffer) window. When I > sample the mouse explicitly the bug doesn't occur. Davide, could you > try to append the code below to your .emacs and see whether it makes the > bug go away? it does fix the problem! thanx alot, Davide From rudalics@gmx.at Tue Sep 30 02:01:22 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MIXEDBDN,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 998) by emacsbugs.donarmstrong.com; 30 Sep 2008 09:01:22 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8U91IWr026584 for <998@emacsbugs.donarmstrong.com>; Tue, 30 Sep 2008 02:01:20 -0700 Received: (qmail invoked by alias); 30 Sep 2008 09:01:12 -0000 Received: from 62-47-51-10.adsl.highway.telekom.at (EHLO [62.47.51.10]) [62.47.51.10] by mail.gmx.net (mp040) with SMTP; 30 Sep 2008 11:01:12 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+t7uEMl9KtwnT49OXCPYI+7HvmeC39lWvckqcY/a rZ7/htlu1vUmQ1 Message-ID: <48E1EA28.50100@gmx.at> Date: Tue, 30 Sep 2008 10:58:16 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: 998@debbugs.gnu.org CC: Davide Viti Subject: Re: bug#998: after split-window-horizontally scroll works only on first window References: <20080918134412.GH3430@zinosat.homelinux.com> <48D29A54.2050605@gmx.at> <20080919065012.GI3430@zinosat.homelinux.com> <48D34E41.9090301@gmx.at> <20080919073544.GJ3430@zinosat.homelinux.com> <48D365FB.8010007@gmx.at> <20080919112310.GK3430@zinosat.homelinux.com> <48DA09D9.9010407@gmx.at> <20080929132643.GB14199@zinosat.homelinux.com> In-Reply-To: <20080929132643.GB14199@zinosat.homelinux.com> Content-Type: multipart/mixed; boundary="------------040100050800090804070209" X-Y-GMX-Trusted: 0 X-FuHaFi: 0.82,0.58 This is a multi-part message in MIME format. --------------040100050800090804070209 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > it does fix the problem! OK. So I could install the attached patch. Any objections? martin --------------040100050800090804070209 Content-Type: text/plain; name="998.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="998.diff" *** scroll-bar.el.~1.59.~ 2008-05-06 09:57:49.000000000 +0200 --- scroll-bar.el 2008-09-30 08:56:36.312500000 +0200 *************** *** 295,300 **** --- 295,311 ---- =20 =0C ;;; Tookit scroll bars. + (defcustom scroll-bar-resample-mouse-position nil + "Non-nil means re-sample mouse position when scrolling. + When your mouse-wheel scrolls the wrong window, setting this to + non-nil might help. The mouse cursor must be within the window + you want to scroll in order for this to take effect. +=20 + This option works for toolkit scrollbars only." + :type 'boolean + :group 'frames + :group 'mouse + :version "23.1") =20 (defun scroll-bar-toolkit-scroll (event) (interactive "e") *************** *** 302,341 **** (window (nth 0 end-position)) (part (nth 4 end-position)) before-scroll) ! (cond ((eq part 'end-scroll)) ! (t ! (with-current-buffer (window-buffer window) ! (setq before-scroll point-before-scroll)) ! (save-selected-window ! (select-window window) ! (setq before-scroll (or before-scroll (point))) ! (cond ((eq part 'above-handle) ! (scroll-up '-)) ! ((eq part 'below-handle) ! (scroll-up nil)) ! ((eq part 'ratio) ! (let* ((portion-whole (nth 2 end-position)) ! (lines (scroll-bar-scale portion-whole ! (1- (window-height))))) ! (scroll-up (cond ((not (zerop lines)) lines) ! ((< (car portion-whole) 0) -1) ! (t 1))))) ! ((eq part 'up) ! (scroll-up -1)) ! ((eq part 'down) ! (scroll-up 1)) ! ((eq part 'top) ! (set-window-start window (point-min))) ! ((eq part 'bottom) ! (goto-char (point-max)) ! (recenter)) ! ((eq part 'handle) ! (scroll-bar-drag-1 event)))) ! (sit-for 0) ! (with-current-buffer (window-buffer window) ! (setq point-before-scroll before-scroll)))))) !=20 !=20 =0C ;;;; Bindings. =20 --- 313,361 ---- (window (nth 0 end-position)) (part (nth 4 end-position)) before-scroll) ! (when scroll-bar-resample-mouse-position ! ;; With some mouse drivers the window reported in EVENT might not= ! ;; be valid, see Bug#998. Here we re-sample the mouse position i= n ! ;; the hope to get a more suitable window. ! (condition-case nil ! (let* ((mouse-position (mouse-position)) ! (mouse-window ! (window-at (cadr mouse-position) ! (cddr mouse-position) ! (car mouse-position)))) ! (when (window-live-p mouse-window) ! (setq window mouse-window))) ! (error nil))) !=20 ! (unless (eq part 'end-scroll) ! (with-selected-window window ! (setq before-scroll (or point-before-scroll (point))) ! (cond ! ((eq part 'above-handle) ! (scroll-up '-)) ! ((eq part 'below-handle) ! (scroll-up nil)) ! ((eq part 'ratio) ! (let* ((portion-whole (nth 2 end-position)) ! (lines (scroll-bar-scale portion-whole ! (1- (window-height))))) ! (scroll-up (cond ((not (zerop lines)) lines) ! ((< (car portion-whole) 0) -1) ! (t 1))))) ! ((eq part 'up) ! (scroll-up -1)) ! ((eq part 'down) ! (scroll-up 1)) ! ((eq part 'top) ! (set-window-start window (point-min))) ! ((eq part 'bottom) ! (goto-char (point-max)) ! (recenter)) ! ((eq part 'handle) ! (scroll-bar-drag-1 event)))) ! (sit-for 0) ! (with-current-buffer (window-buffer window) ! (setq point-before-scroll before-scroll))))) =0C ;;;; Bindings. =20 --------------040100050800090804070209-- From monnier@iro.umontreal.ca Tue Sep 30 07:20:43 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.3 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 998) by emacsbugs.donarmstrong.com; 30 Sep 2008 14:20:43 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8UEKctI009308 for <998@emacsbugs.donarmstrong.com>; Tue, 30 Sep 2008 07:20:39 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArgEAALS4UjO+KDT/2dsb2JhbACBZLxZgWeBBA X-IronPort-AV: E=Sophos;i="4.33,338,1220241600"; d="scan'208";a="27757294" Received: from 206-248-160-211.dsl.teksavvy.com (HELO pastel.home) ([206.248.160.211]) by ironport2-out.teksavvy.com with ESMTP; 30 Sep 2008 10:20:33 -0400 Received: by pastel.home (Postfix, from userid 20848) id F09A18028; Tue, 30 Sep 2008 10:20:32 -0400 (EDT) From: Stefan Monnier To: martin rudalics Cc: 998@debbugs.gnu.org, Davide Viti Subject: Re: bug#998: after split-window-horizontally scroll works only on first window Message-ID: References: <20080918134412.GH3430@zinosat.homelinux.com> <48D29A54.2050605@gmx.at> <20080919065012.GI3430@zinosat.homelinux.com> <48D34E41.9090301@gmx.at> <20080919073544.GJ3430@zinosat.homelinux.com> <48D365FB.8010007@gmx.at> <20080919112310.GK3430@zinosat.homelinux.com> <48DA09D9.9010407@gmx.at> <20080929132643.GB14199@zinosat.homelinux.com> <48E1EA28.50100@gmx.at> Date: Tue, 30 Sep 2008 10:20:32 -0400 In-Reply-To: <48E1EA28.50100@gmx.at> (martin rudalics's message of "Tue, 30 Sep 2008 10:58:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> it does fix the problem! > OK. So I could install the attached patch. Any objections? Doesn't look too terrible, but I'd first want to understand why we're only seeing this now. Shouldn't Emacs-22 already have suffered from that same problem? Stefan From rudalics@gmx.at Tue Sep 30 07:37:05 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 998) by emacsbugs.donarmstrong.com; 30 Sep 2008 14:37:05 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8UEawZg012922 for <998@emacsbugs.donarmstrong.com>; Tue, 30 Sep 2008 07:36:59 -0700 Received: (qmail invoked by alias); 30 Sep 2008 14:36:52 -0000 Received: from 62-47-46-173.adsl.highway.telekom.at (EHLO [62.47.46.173]) [62.47.46.173] by mail.gmx.net (mp051) with SMTP; 30 Sep 2008 16:36:52 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+nHgNfM8KnZjpawaMToAXcuRd2M1aTWZDcgrTSfh 5/6TXxFLjPXlAm Message-ID: <48E238D3.5040209@gmx.at> Date: Tue, 30 Sep 2008 16:33:55 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Stefan Monnier CC: 998@debbugs.gnu.org, Davide Viti Subject: Re: bug#998: after split-window-horizontally scroll works only on first window References: <20080918134412.GH3430@zinosat.homelinux.com> <48D29A54.2050605@gmx.at> <20080919065012.GI3430@zinosat.homelinux.com> <48D34E41.9090301@gmx.at> <20080919073544.GJ3430@zinosat.homelinux.com> <48D365FB.8010007@gmx.at> <20080919112310.GK3430@zinosat.homelinux.com> <48DA09D9.9010407@gmx.at> <20080929132643.GB14199@zinosat.homelinux.com> <48E1EA28.50100@gmx.at> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.78 > Doesn't look too terrible, but I'd first want to understand why we're > only seeing this now. Shouldn't Emacs-22 already have suffered from > that same problem? I think so. IIRC the stereotypical answer to this was something like "get yourself another mouse-driver, another mouse, ...". martin, who didn't try to reinvent the mouse-wheel. From monnier@IRO.UMontreal.CA Tue Sep 30 09:01:46 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.3 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 998) by emacsbugs.donarmstrong.com; 30 Sep 2008 16:01:46 +0000 Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8UG1exO001100 for <998@emacsbugs.donarmstrong.com>; Tue, 30 Sep 2008 09:01:41 -0700 Received: from alfajor.home (vpn-132-204-232-41.acd.umontreal.ca [132.204.232.41]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m8UG2AEH022654; Tue, 30 Sep 2008 12:02:10 -0400 Received: by alfajor.home (Postfix, from userid 20848) id D3EEF1C3E8; Tue, 30 Sep 2008 12:01:38 -0400 (EDT) From: Stefan Monnier To: martin rudalics Cc: 998@debbugs.gnu.org, Davide Viti Subject: Re: bug#998: after split-window-horizontally scroll works only on first window Message-ID: References: <20080918134412.GH3430@zinosat.homelinux.com> <48D29A54.2050605@gmx.at> <20080919065012.GI3430@zinosat.homelinux.com> <48D34E41.9090301@gmx.at> <20080919073544.GJ3430@zinosat.homelinux.com> <48D365FB.8010007@gmx.at> <20080919112310.GK3430@zinosat.homelinux.com> <48DA09D9.9010407@gmx.at> <20080929132643.GB14199@zinosat.homelinux.com> <48E1EA28.50100@gmx.at> <48E238D3.5040209@gmx.at> Date: Tue, 30 Sep 2008 12:01:38 -0400 In-Reply-To: <48E238D3.5040209@gmx.at> (martin rudalics's message of "Tue, 30 Sep 2008 16:33:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3114=0 >> Doesn't look too terrible, but I'd first want to understand why we're >> only seeing this now. Shouldn't Emacs-22 already have suffered from >> that same problem? > I think so. IIRC the stereotypical answer to this was something like > "get yourself another mouse-driver, another mouse, ...". Yes, that sounds like a better fix than your workaround, Stefan From rgm@gnu.org Mon Dec 1 21:51:50 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.8 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, MURPHY_DRUGS_REL8,NOSUBJECT,RCVD_IN_DNSWL_MED,VALID_BTS_CONTROL, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 2 Dec 2008 05:51:50 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB25plv7026664 for ; Mon, 1 Dec 2008 21:51:48 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1L7OAL-0003A5-V5; Tue, 02 Dec 2008 00:51:21 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18740.52441.894255.884035@fencepost.gnu.org> Date: Tue, 2 Dec 2008 00:51:21 -0500 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: white X-Ran: %-dsmN!iYIC+l=#28\n){;jRZ'lEP[zY,1gXq_w".P9TW<|g-$3WOaJxjS?m8K!>,!|Dpr X-Debbugs-No-Ack: yes tags 998 wontfix patch From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 02 12:02:51 2011 Received: (at control) by debbugs.gnu.org; 2 Aug 2011 16:02:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QoHQh-0002jQ-0E for submit@debbugs.gnu.org; Tue, 02 Aug 2011 12:02:51 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QoHQe-0002jG-CL for control@debbugs.gnu.org; Tue, 02 Aug 2011 12:02:49 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QoHQ6-0004AQ-0w for control@debbugs.gnu.org; Tue, 02 Aug 2011 18:02:14 +0200 Date: Tue, 02 Aug 2011 18:01:51 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #998 X-MailScanner-ID: 1QoHQ6-0004AQ-0w X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1312905734.10237@bDm0MAMkqUmXnqxZEzKacA X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) close 998 From unknown Sat Jun 21 12:21:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 31 Aug 2011 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator