From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrey Listopadov Newsgroups: gmane.emacs.bugs Subject: bug#68786: 30.0.50; Horizontal overscroll Date: Wed, 31 Jan 2024 19:40:02 +0300 Message-ID: <874jetjvwg.fsf@gmail.com> References: <871qa1b08i.fsf@gmail.com> <86msso4abj.fsf@gnu.org> <87wmrs9fyt.fsf@gmail.com> <86ttmw2bxx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39030"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.11; emacs 30.0.50 Cc: 68786@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 31 17:45:06 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rVDhx-0009sD-Sj for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Jan 2024 17:45:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVDhm-0008KF-6y; Wed, 31 Jan 2024 11:44:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVDhk-0008Jn-BP for bug-gnu-emacs@gnu.org; Wed, 31 Jan 2024 11:44:52 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVDhk-0004az-3F for bug-gnu-emacs@gnu.org; Wed, 31 Jan 2024 11:44:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rVDht-0004gM-Lu for bug-gnu-emacs@gnu.org; Wed, 31 Jan 2024 11:45:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrey Listopadov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Jan 2024 16:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68786 X-GNU-PR-Package: emacs Original-Received: via spool by 68786-submit@debbugs.gnu.org id=B68786.170671944717891 (code B ref 68786); Wed, 31 Jan 2024 16:45:01 +0000 Original-Received: (at 68786) by debbugs.gnu.org; 31 Jan 2024 16:44:07 +0000 Original-Received: from localhost ([127.0.0.1]:39006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVDh1-0004eV-4D for submit@debbugs.gnu.org; Wed, 31 Jan 2024 11:44:07 -0500 Original-Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:46238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVDgv-0004dj-I5 for 68786@debbugs.gnu.org; Wed, 31 Jan 2024 11:44:05 -0500 Original-Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2d0600551e8so440631fa.0 for <68786@debbugs.gnu.org>; Wed, 31 Jan 2024 08:43:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706719425; x=1707324225; darn=debbugs.gnu.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=wJGI6nwX+w0u7BVsPA6JCx0AeaUGMzqotFcLsMjwVow=; b=F4fJqmMguBQ0+LFaYlGgx9FtlCB629zaB1AUVwNkeMlc+0xf0eDq5rnq61KggdhhYc CbeGd6M/2LSUWZY/9iBlmy/hSBAo4CnpLDK5eGD/qNJuP9n9ck7kdKWAeskIhqf3o17T JxhjcooJmpikMrhy64LzC/OkbHfJoNqY9tjzfExeXKaaJksPecR5NwV73Vl68Ds6yYZW xgfouGP2eg1diPh7HKZuFJ87nz3l3LoL8V9RLE1+gOwepfThPeswEFJNfqlSBaVa4DJk gU8xDNML+k8II2zaIx4DTn54nw3vgJWadO/x0aVxVx3EpJBEb002eNhDmniLf9Zx2eI8 kgjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706719425; x=1707324225; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wJGI6nwX+w0u7BVsPA6JCx0AeaUGMzqotFcLsMjwVow=; b=Qmm3hhoFCTvLoPl7EAh9khh+pft1bQVMcNYYg19gvykXOHrsKX3GMNUe87U+UBGFfR KlCjIcL5fcGOp+8oDNz05XK7nuIj5xZua5efxkyq22OpP8Ccptgkp+2CWtPzfhbfLy/k fy767w+JvESIx0G82jAPTOLv31oK6+WQza13ROWNocIgcppuUw7/l/SAcIo79ci4hzmH AU9Djr5snhMFj7WCUj6a/qmH+bJHON/MZBypqWiGlLbP4wDYCI2pskXT18nCPsLMYW/N eN+CyAPO4/YG7rci4TsWmODVuTZI37WbMwN7TEoyeofTf4cmg/vdi2KUcl0K2Yy4iWss 5dZg== X-Gm-Message-State: AOJu0YxCmJIfssy48gwGX4rzjBztv7P5qvK2qdF1FH68Of3gLgQs1FTb 3TxDcgO6koRQn3kO7E/0xZaQdgl2o08PMps4S4GuyPEy6XPhbyT6EsvXhWwR X-Google-Smtp-Source: AGHT+IH2K57CNKGlr3EtkN8GcUZcRNzke9ql6sdf4GI7ci9SsdTRj9xTidaOe6ZwfuE9YPzZYWGLgg== X-Received: by 2002:a2e:8395:0:b0:2cd:cd28:beea with SMTP id x21-20020a2e8395000000b002cdcd28beeamr1328785ljg.35.1706719425379; Wed, 31 Jan 2024 08:43:45 -0800 (PST) Original-Received: from toolbox.smtp.gmail.com ([185.9.75.213]) by smtp.gmail.com with ESMTPSA id m5-20020a2ea585000000b002d06019a917sm576196ljp.106.2024.01.31.08.43.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 08:43:44 -0800 (PST) In-reply-to: <86ttmw2bxx.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279235 Archived-At: Eli Zaretskii writes: > That calculation is in xdisp.c:set_horizontal_scroll_bar, which also > sets the size of the scroll-bar thumb. After a bit of testing, it appears that it uses the same naive kind of calculation that I tried to use for the advice in the beginning, but it doesn't play nicely with scaled fonts and the `display-line-numbers-mode'. The scrollbar doesn't scroll all the way in this configuration. Comments in the `truncated-lines-p' function that I sent describe the reasons why simple calculation like that did not work. -- Andrey Listopadov