From unknown Sun Aug 10 07:30:45 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5654: Even slightest scrollbar move warping point Resent-From: David De La Harpe Golden Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Feb 2010 14:41:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5654 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: To: 5654@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.126728160510933 (code B ref -1); Sat, 27 Feb 2010 14:41:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Feb 2010 14:40:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlNps-0002qI-Js for submit@debbugs.gnu.org; Sat, 27 Feb 2010 09:40:05 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlNpq-0002pq-6Z for submit@debbugs.gnu.org; Sat, 27 Feb 2010 09:40:02 -0500 Received: from mail.gnu.org ([199.232.76.166]:36315 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlNpl-0007U8-9H for submit@debbugs.gnu.org; Sat, 27 Feb 2010 09:39:57 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NlNpj-00048o-Sa for submit@debbugs.gnu.org; Sat, 27 Feb 2010 09:39:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:59602) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NlNpj-00048k-NX for submit@debbugs.gnu.org; Sat, 27 Feb 2010 09:39:55 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NlNpj-0004we-1a for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2010 09:39:55 -0500 Received: from [140.186.70.92] (port=48159 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlNph-0004wT-RO for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2010 09:39:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NlNpg-0007zQ-V4 for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2010 09:39:53 -0500 Received: from harpegolden.net ([65.99.215.13]:36222) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlNpg-0007zI-Pg for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2010 09:39:52 -0500 Received: from [87.198.54.190] (87-198-54-190.ptr.magnet.ie [87.198.54.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTP id 3062F8E6B for ; Sat, 27 Feb 2010 14:39:51 +0000 (GMT) Message-ID: <4B892EB4.6030000@harpegolden.net> Date: Sat, 27 Feb 2010 14:39:48 +0000 From: David De La Harpe Golden User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.5 (----) 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: -4.6 (----) Don't actually use the scrollbar very much, so not presently sure if this was just always the way emacs acted and I simply didn't notice, but right now (23.1.93), if you "move the scrollbar" a tiny bit (not enough to actually visibly scroll the buffer), the point warps to the top of the window. recipe: * emacs -Q on X11, with gtk+ (debian libgtk 2.18.6-1) toolkit scrollbars: place point somewhere other than start of buffer. (if you've just done emacs -Q, it'll probably be at the end of the *scratch* buffer anyway). mouse-1 down on scrollbar. move even a tiny amount, not enough to scroll. If you've just done emacs -Q, it'll already be at the top, so you could just push it against the top, which you might not expect to do anything, really. Point warps to window start. This happens before you mouse-1 up. * emacs -Q on X11, with lucid with toolkit scrollbars: (i.e. 90s-looking 3d-effect scrollbar): same as gtk+ * emacs -Q on X11, with lucid without toolkit scrollbars (i.e. flat looking scrollbar): no warp on mouse-1, but of course mouse-1 means something different for these scrollbars - there is an immediate warp, but I think that's also different since these scrollbars immediately scroll to a location corresponding to the position on the scrollbar you mouse-2 down on. So this case might be irrelevant and it's only something that's happening for toolkit scrollbars. From unknown Sun Aug 10 07:30:45 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5654: Even slightest scrollbar move warping point Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Feb 2010 11:42:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5654 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: To: David De La Harpe Golden Cc: 5654@debbugs.gnu.org Received: via spool by 5654-submit@debbugs.gnu.org id=B5654.12673573131394 (code B ref 5654); Sun, 28 Feb 2010 11:42:01 +0000 Received: (at 5654) by debbugs.gnu.org; 28 Feb 2010 11:41:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlhWz-0000MR-7G for submit@debbugs.gnu.org; Sun, 28 Feb 2010 06:41:53 -0500 Received: from smtprelay-h11.telenor.se ([62.127.194.4]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlhWy-0000MJ-3Z for 5654@debbugs.gnu.org; Sun, 28 Feb 2010 06:41:52 -0500 Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h11.telenor.se (Postfix) with ESMTP id 112C784079 for <5654@debbugs.gnu.org>; Sun, 28 Feb 2010 12:41:50 +0100 (CET) X-SMTPAUTH-B2: X-SENDER-IP: 85.225.45.110 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtdNAN/kiUtV4S1uPGdsb2JhbACHWpNCDAEBAQE3LbhvhHsE X-IronPort-AV: E=Sophos;i="4.49,554,1262559600"; d="scan'208";a="43508384" Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb2.telenor.se with ESMTP; 28 Feb 2010 12:41:45 +0100 Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 1DF5D7FA01A; Sun, 28 Feb 2010 12:41:45 +0100 (CET) Message-ID: <4B8A5678.1080404@swipnet.se> Date: Sun, 28 Feb 2010 12:41:44 +0100 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 References: <4B892EB4.6030000@harpegolden.net> In-Reply-To: <4B892EB4.6030000@harpegolden.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.8 (--) 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.8 (--) It does not happen in 23.1. Reverting this change: 2009-11-13 Stefan Monnier * scroll-bar.el (scroll-bar-set-window-start, scroll-bar-drag-1) (scroll-bar-maybe-set-window-start): Use with-current-buffer. fixes it. I don't know if that is the right thing to do. Adding a save-excursion in scroll-bar-drag-1 also fixes it: --- lisp/scroll-bar.el 2010-01-13 08:35:10 +0000 +++ lisp/scroll-bar.el 2010-02-28 11:41:09 +0000 @@ -211,12 +211,13 @@ (window (nth 0 start-position)) (portion-whole (nth 2 start-position))) (with-current-buffer (window-buffer window) + (save-excursion ;; Calculate position relative to the accessible part of the buffer. (goto-char (+ (point-min) (scroll-bar-scale portion-whole (- (point-max) (point-min))))) (vertical-motion 0 window) - (set-window-start window (point))))) + (set-window-start window (point)))))) (defun scroll-bar-drag (event) "Scroll the window by dragging the scroll bar slider. Jan D. David De La Harpe Golden skrev: > Don't actually use the scrollbar very much, so not presently sure if > this was just always the way emacs acted and I simply didn't notice, but > right now (23.1.93), if you "move the scrollbar" a tiny bit (not enough > to actually visibly scroll the buffer), the point warps to the top of > the window. > > recipe: > > * emacs -Q on X11, with gtk+ (debian libgtk 2.18.6-1) toolkit scrollbars: > > place point somewhere other than start of buffer. (if you've just done > emacs -Q, it'll probably be at the end of the *scratch* buffer anyway). > > mouse-1 down on scrollbar. move even a tiny amount, not enough to > scroll. If you've just done emacs -Q, it'll already be at the top, so > you could just push it against the top, which you might not expect to do > anything, really. Point warps to window start. This happens before > you mouse-1 up. > > > * emacs -Q on X11, with lucid with toolkit scrollbars: (i.e. 90s-looking > 3d-effect scrollbar): > > same as gtk+ > > * emacs -Q on X11, with lucid without toolkit scrollbars (i.e. flat > looking scrollbar): > > no warp on mouse-1, but of course mouse-1 means something different for > these scrollbars - there is an immediate warp, but I think that's also > different since these scrollbars immediately scroll to a location > corresponding to the position on the scrollbar you mouse-2 down on. So > this case might be irrelevant and it's only something that's happening > for toolkit scrollbars. > > > > > > > > > > > > From unknown Sun Aug 10 07:30:45 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5654: Even slightest scrollbar move warping point Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Feb 2010 13:50:03 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5654 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: 5654@debbugs.gnu.org, David De La Harpe Golden Received: via spool by 5654-submit@debbugs.gnu.org id=B5654.12673649849195 (code B ref 5654); Sun, 28 Feb 2010 13:50:03 +0000 Received: (at 5654) by debbugs.gnu.org; 28 Feb 2010 13:49:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NljWi-0002OG-Gq for submit@debbugs.gnu.org; Sun, 28 Feb 2010 08:49:44 -0500 Received: from pantheon-po25.its.yale.edu ([130.132.50.119]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NljWg-0002OB-I4 for 5654@debbugs.gnu.org; Sun, 28 Feb 2010 08:49:42 -0500 Received: from furry (adsl-99-70-212-195.dsl.wlfrct.sbcglobal.net [99.70.212.195]) (authenticated bits=0) by pantheon-po25.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o1SDnaFM019901 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 28 Feb 2010 08:49:37 -0500 Received: by furry (Postfix, from userid 1000) id 03F64C05D; Sun, 28 Feb 2010 08:49:35 -0500 (EST) From: Chong Yidong References: <4B892EB4.6030000@harpegolden.net> <4B8A5678.1080404@swipnet.se> Date: Sun, 28 Feb 2010 08:49:34 -0500 In-Reply-To: <4B8A5678.1080404@swipnet.se> ("Jan =?UTF-8?Q?Dj=C3=A4rv"'s?= message of "Sun, 28 Feb 2010 12:41:44 +0100") Message-ID: <874ol1h3m9.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.6 (--) 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.6 (--) Jan Dj=C3=A4rv writes: > Adding a save-excursion in scroll-bar-drag-1 also fixes it: I think this is the right fix. Please check in, thanks. From unknown Sun Aug 10 07:30:45 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: bug-gnu-emacs@gnu.org From: bug-gnu-emacs@gnu.org (Emacs bug Tracking System) To: David De La Harpe Golden Subject: bug#5654 closed by Jan =?UTF-8?Q?Dj=C3=A4rv?= (Re: bug#5654: Even slightest scrollbar move warping point) Message-ID: References: <4B8A8027.7080801@swipnet.se> <4B892EB4.6030000@harpegolden.net> X-Emacs-PR-Message: they-closed 5654 X-Emacs-PR-Package: emacs Reply-To: 5654@debbugs.gnu.org Date: Sun, 28 Feb 2010 14:40:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1267368002-11482-1" This is a multi-part message in MIME format... ------------=_1267368002-11482-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #5654: Even slightest scrollbar move warping point It has been closed by Jan Dj=C3=A4rv . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Jan Dj=C3=A4rv by replying to this email. --=20 5654: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5654 Emacs Bug Tracking System Contact bug-gnu-emacs@gnu.org with problems ------------=_1267368002-11482-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 5654-done) by debbugs.gnu.org; 28 Feb 2010 14:39:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlkJ6-0002yr-CQ for submit@debbugs.gnu.org; Sun, 28 Feb 2010 09:39:44 -0500 Received: from smtprelay-h12.telenor.se ([62.127.194.5]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlkJ4-0002yk-Cc for 5654-done@debbugs.gnu.org; Sun, 28 Feb 2010 09:39:42 -0500 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h12.telenor.se (Postfix) with ESMTP id EC68E14B68 for <5654-done@debbugs.gnu.org>; Sun, 28 Feb 2010 15:39:36 +0100 (CET) X-SMTPAUTH-B2: X-SENDER-IP: 85.225.45.110 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmAvAEoPiktV4S1uPGdsb2JhbACDBIRVk0IMAQEBATctqQqPKIE0gl1qBA X-IronPort-AV: E=Sophos;i="4.49,555,1262559600"; d="scan'208";a="43609247" Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb1.telenor.se with ESMTP; 28 Feb 2010 15:39:36 +0100 Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id D04197FA01A; Sun, 28 Feb 2010 15:39:35 +0100 (CET) Message-ID: <4B8A8027.7080801@swipnet.se> Date: Sun, 28 Feb 2010 15:39:35 +0100 From: =?UTF-8?B?SmFuIERqw6Rydg==?= User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Chong Yidong Subject: Re: bug#5654: Even slightest scrollbar move warping point References: <4B892EB4.6030000@harpegolden.net> <4B8A5678.1080404@swipnet.se> <874ol1h3m9.fsf@stupidchicken.com> In-Reply-To: <874ol1h3m9.fsf@stupidchicken.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 5654-done Cc: 5654-done@debbugs.gnu.org, David De La Harpe Golden 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.8 (--) Chong Yidong skrev: > Jan Dj=C3=A4rv writes: >=20 >> Adding a save-excursion in scroll-bar-drag-1 also fixes it: >=20 > I think this is the right fix. Please check in, thanks. Done. Jan D. ------------=_1267368002-11482-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Feb 2010 14:40:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlNps-0002qI-Js for submit@debbugs.gnu.org; Sat, 27 Feb 2010 09:40:05 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlNpq-0002pq-6Z for submit@debbugs.gnu.org; Sat, 27 Feb 2010 09:40:02 -0500 Received: from mail.gnu.org ([199.232.76.166]:36315 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlNpl-0007U8-9H for submit@debbugs.gnu.org; Sat, 27 Feb 2010 09:39:57 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NlNpj-00048o-Sa for submit@debbugs.gnu.org; Sat, 27 Feb 2010 09:39:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:59602) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NlNpj-00048k-NX for submit@debbugs.gnu.org; Sat, 27 Feb 2010 09:39:55 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NlNpj-0004we-1a for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2010 09:39:55 -0500 Received: from [140.186.70.92] (port=48159 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlNph-0004wT-RO for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2010 09:39:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NlNpg-0007zQ-V4 for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2010 09:39:53 -0500 Received: from harpegolden.net ([65.99.215.13]:36222) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlNpg-0007zI-Pg for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2010 09:39:52 -0500 Received: from [87.198.54.190] (87-198-54-190.ptr.magnet.ie [87.198.54.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTP id 3062F8E6B for ; Sat, 27 Feb 2010 14:39:51 +0000 (GMT) Message-ID: <4B892EB4.6030000@harpegolden.net> Date: Sat, 27 Feb 2010 14:39:48 +0000 From: David De La Harpe Golden User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: Even slightest scrollbar move warping point Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: submit 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: -4.6 (----) Don't actually use the scrollbar very much, so not presently sure if this was just always the way emacs acted and I simply didn't notice, but right now (23.1.93), if you "move the scrollbar" a tiny bit (not enough to actually visibly scroll the buffer), the point warps to the top of the window. recipe: * emacs -Q on X11, with gtk+ (debian libgtk 2.18.6-1) toolkit scrollbars: place point somewhere other than start of buffer. (if you've just done emacs -Q, it'll probably be at the end of the *scratch* buffer anyway). mouse-1 down on scrollbar. move even a tiny amount, not enough to scroll. If you've just done emacs -Q, it'll already be at the top, so you could just push it against the top, which you might not expect to do anything, really. Point warps to window start. This happens before you mouse-1 up. * emacs -Q on X11, with lucid with toolkit scrollbars: (i.e. 90s-looking 3d-effect scrollbar): same as gtk+ * emacs -Q on X11, with lucid without toolkit scrollbars (i.e. flat looking scrollbar): no warp on mouse-1, but of course mouse-1 means something different for these scrollbars - there is an immediate warp, but I think that's also different since these scrollbars immediately scroll to a location corresponding to the position on the scrollbar you mouse-2 down on. So this case might be irrelevant and it's only something that's happening for toolkit scrollbars. ------------=_1267368002-11482-1-- From unknown Sun Aug 10 07:30:45 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5654: Even slightest scrollbar move warping point Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Feb 2010 20:34:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5654 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: 5654@debbugs.gnu.org, David De La Harpe Golden Received: via spool by 5654-submit@debbugs.gnu.org id=B5654.126738924126830 (code B ref 5654); Sun, 28 Feb 2010 20:34:02 +0000 Received: (at 5654) by debbugs.gnu.org; 28 Feb 2010 20:34:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nlppw-0006yh-T1 for submit@debbugs.gnu.org; Sun, 28 Feb 2010 15:34:01 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nlppt-0006yW-FZ for 5654@debbugs.gnu.org; Sun, 28 Feb 2010 15:33:59 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAI5hiktMCrTT/2dsb2JhbACbG3S4EYR7BIMXh3E X-IronPort-AV: E=Sophos;i="4.49,557,1262581200"; d="scan'208";a="57019825" Received: from 76-10-180-211.dsl.teksavvy.com (HELO ceviche.home) ([76.10.180.211]) by ironport2-out.pppoe.ca with ESMTP; 28 Feb 2010 15:33:52 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 95FF1B407C; Sun, 28 Feb 2010 15:33:52 -0500 (EST) From: Stefan Monnier Message-ID: References: <4B892EB4.6030000@harpegolden.net> <4B8A5678.1080404@swipnet.se> Date: Sun, 28 Feb 2010 15:33:52 -0500 In-Reply-To: <4B8A5678.1080404@swipnet.se> ("Jan =?UTF-8?Q?Dj=C3=A4rv"'s?= message of "Sun, 28 Feb 2010 12:41:44 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.0 (--) 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.0 (--) > Adding a save-excursion in scroll-bar-drag-1 also fixes it: Thanks, that's indeed the right fix, Stefan