From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32002: 24.4; Scroll bar start, end not correct Date: Sat, 21 Jul 2018 16:53:49 +0300 Message-ID: <83lga4y9si.fsf@gnu.org> References: <11390.1531705676@alto> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1532181126 11003 195.159.176.226 (21 Jul 2018 13:52:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2018 13:52:06 +0000 (UTC) Cc: 32002@debbugs.gnu.org, kurn@sfu.ca To: Mike Kupfer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 21 15:52:02 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgsIj-0002ku-3P for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Jul 2018 15:52:01 +0200 Original-Received: from localhost ([::1]:52532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgsKq-0005Am-29 for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Jul 2018 09:54:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgsKh-0005AV-8j for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 09:54:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgsKg-0001L3-5J for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 09:54:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45334) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fgsKg-0001Kz-1U for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 09:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fgsKf-0005qJ-Qb for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 09:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Jul 2018 13:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32002 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 32002-submit@debbugs.gnu.org id=B32002.153218123822450 (code B ref 32002); Sat, 21 Jul 2018 13:54:01 +0000 Original-Received: (at 32002) by debbugs.gnu.org; 21 Jul 2018 13:53:58 +0000 Original-Received: from localhost ([127.0.0.1]:50352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgsKb-0005q1-Tg for submit@debbugs.gnu.org; Sat, 21 Jul 2018 09:53:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgsKZ-0005pp-MH for 32002@debbugs.gnu.org; Sat, 21 Jul 2018 09:53:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgsKR-0001F6-Gv for 32002@debbugs.gnu.org; Sat, 21 Jul 2018 09:53:50 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgsKR-0001Ev-CV; Sat, 21 Jul 2018 09:53:47 -0400 Original-Received: from [176.228.60.248] (port=2549 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fgsKQ-0005WA-Pi; Sat, 21 Jul 2018 09:53:47 -0400 In-reply-to: <11390.1531705676@alto> (message from Mike Kupfer on Sun, 15 Jul 2018 18:47:56 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148782 Archived-At: > From: Mike Kupfer > cc: kurn@sfu.ca, 32002@debbugs.gnu.org > Date: Sun, 15 Jul 2018 18:47:56 -0700 > > What I see is that in scroll-bar-drag-1, portion-whole is (1 . 1), both > when I drag the mouse down and when I drag it up. So scroll-bar-drag-1 > always does (goto-char (point-max)). > > Should scroll-bar-drag-1 be doing the correction to account for > scroll-bar-adjust-thumb-portion, or should that be done higher up the > stack? (If scroll-bar-drag-1 needs to apply a correction, then I > suspect there are other functions that also need to apply a correction. > Perhaps it would be cleaner to make the correction early on, so that it > only needs to be done once. But I'm not familiar with the code, so > there may well be aspects to this that I'm missing.) The question is what kind of correction can be applied here? I understand that when scroll-bar-adjust-thumb-portion is nil, the thumb doesn't move, and so we don't even know that the thumb was dragged upwards, is that true? If so, how can we know that the user meant scrolling up?