From unknown Sun Jul 27 03:20:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39458: 26.3; move-overlay affects the scroll-margin feature Resent-From: "Geza, Herman" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Feb 2020 20:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39458 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 39458@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158102039912927 (code B ref -1); Thu, 06 Feb 2020 20:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Feb 2020 20:19:59 +0000 Received: from localhost ([127.0.0.1]:48539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iznd0-0003MR-Hw for submit@debbugs.gnu.org; Thu, 06 Feb 2020 15:19:58 -0500 Received: from lists.gnu.org ([209.51.188.17]:41837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iznUv-000381-Rv for submit@debbugs.gnu.org; Thu, 06 Feb 2020 15:11:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40927) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iznUu-0007wl-KZ for bug-gnu-emacs@gnu.org; Thu, 06 Feb 2020 15:11:37 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iznUt-0002oh-GS for bug-gnu-emacs@gnu.org; Thu, 06 Feb 2020 15:11:36 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:40798) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iznUt-0002cy-9U for bug-gnu-emacs@gnu.org; Thu, 06 Feb 2020 15:11:35 -0500 Received: by mail-wm1-x32c.google.com with SMTP id t14so176590wmi.5 for ; Thu, 06 Feb 2020 12:11:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=EIkl44EmQs7NES19OH0MFSvk0YcLuTBTUNURMq/d4Sw=; b=CSZUurD5jKDtPiLymVn8GTSUsS9glulqXnw2dM+DhV6UIEZ8wt8L6BJ7Vj+6n1GUXL 6rnIhS/SapF33P/2ALJI5HB3tJ8CvwexrQmESfLVvnQb9YuIfEm+yPRYvot3JGMGVoJn ne4kKZsdtNmPt40XiU1Kdfrin6cpd1RwRdz8n6LlZbOxB3A9sEfjsTw/sktAlWADZzGa QcNPTzNJ6pbdMlJqrrE1NxMWsebAJPOUsJk0mfWloJyFEFguX19MdwPG5QmTnz97UnnX ldoayBQQKiKoPSAzqNBjiLYzf5LccKIErNs+PXeEuvGPcH8ldcxqoNMzkqDd7ZXR7SGo U5GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=EIkl44EmQs7NES19OH0MFSvk0YcLuTBTUNURMq/d4Sw=; b=QIeQQjd+1MV7vjylP8Q4Sv9xhLQonOd5RBhZRawfNZFLFKJxFrE/abhiB0fdYbGY6o 9Jju7q+ByMudxI8BhFGDH3djsTATwG5qbPFZUJD1lx7wjFlgkiKNFFY6ynG9l4Cr0F3l v2ZtiKJPVU025vk1ygFfYBEfuqfTp7n/35n9jJVzUYgOlkkYKkrF3CbtdI8cNuAKhLCo L1FvD70/66iwojLlVXQFg2Ml6NS6CfhHcxLorqLM3TAIo6MzMO0Vi4+SAAeUExgZ+gAc 4QztDajobnBWqQpbL2GhVzGLIAANosLrZSVcAG/2CP/Vla77bOjzdpqK5+0I+HJu1g6Q 6CdA== X-Gm-Message-State: APjAAAWZIznnzKXxLzUHLty7OzkOeIS/oVMJ3pOVUFmh3i6pg5VzVUHM aF7rAS+ZRRyZFaD87sO2Rz6CzaWU X-Google-Smtp-Source: APXvYqxxQ9MBkvK+l6T7xqCm7ShdukuMw1JNegCorg4QitnWQfN/4nO+quzT+yEokEgdsgb2oUUupA== X-Received: by 2002:a7b:c750:: with SMTP id w16mr6271016wmk.46.1581019893388; Thu, 06 Feb 2020 12:11:33 -0800 (PST) Received: from [10.0.50.117] (catv-89-134-149-1.catv.broadband.hu. [89.134.149.1]) by smtp.gmail.com with ESMTPSA id f1sm417618wro.85.2020.02.06.12.11.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Feb 2020 12:11:32 -0800 (PST) From: "Geza, Herman" Message-ID: Date: Thu, 6 Feb 2020 21:11:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32c X-Spam-Score: 2.3 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, I discovered a possible little bug. Put this into init.el: ----- snip --------- Content analysis details: (2.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: x.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [209.51.188.17 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (geza.herman[at]gmail.com) 2.0 SPOOFED_FREEMAIL No description available. X-Mailman-Approved-At: Thu, 06 Feb 2020 15:19:57 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hi, I discovered a possible little bug. Put this into init.el: ----- snip --------- (setq scroll-margin 10) (setq scroll-conservatively 101) (defun foo ()   (move-overlay overlay 1 2) ) (defun bar ()   (setq overlay (make-overlay (point) (point)))   (add-hook 'post-command-hook #'foo nil t) ) (add-hook 'after-change-major-mode-hook 'bar) ----- snip --------- Load a several-page large text file, and scroll down to the bottom. Try to position the document in a way that the window has an empty space at the bottom. Now, move the cursor upwards. Notice, that you can move the cursor at the very top of the window, the scroll-margin value is ignored. If you continue moving, the document will fill the whole window, and now emacs will take scroll-margin value into consideration. The overall effect is, when scrolling with some empty space at the bottom, scrolling is non-continuous. When the space is filled, it becomes continuous. If you remove the move-overlay call from foo, everything is fine. (I discovered this bug while using hl-line. You can see the same effect, if you just set the two scroll variables as I set them, and enable hl-line-mode) Emacs info: In GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11)  of 2019-09-22, modified by Debian built on x86-csail-01 Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description:    Debian GNU/Linux bullseye/sid Configured using:  'configure --build x86_64-linux-gnu --prefix=/usr  --sharedstatedir=/var/lib --libexecdir=/usr/lib  --localstatedir=/var/lib --infodir=/usr/share/info  --mandir=/usr/share/man --enable-libsystemd --with-pop=yes  --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp  --with-sound=alsa --without-gconf --with-mailutils --build  x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib  --libexecdir=/usr/lib --localstatedir=/var/lib  --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd  --with-pop=yes  --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp  --with-sound=alsa --without-gconf --with-mailutils --with-x=yes  --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2  -fdebug-prefix-map=/build/emacs-n8pPyG/emacs-26.3+1=. -fstack-protector-strong  -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time  -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LIBSYSTEMD LCMS2 Important settings:   value of $LC_ALL: C.UTF-8   value of $LANG: en_US.UTF-8   locale-coding-system: utf-8-unix Load-path shadows: /usr/share/emacs/site-lisp/llvm/tablegen-mode hides /usr/share/emacs/site-lisp/llvm-9/tablegen-mode /usr/share/emacs/site-lisp/llvm/llvm-mode hides /usr/share/emacs/site-lisp/llvm-9/llvm-mode /usr/share/emacs/site-lisp/llvm/emacs hides /usr/share/emacs/site-lisp/llvm-9/emacs /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/26.3/lisp/textmodes/rst From unknown Sun Jul 27 03:20:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39458: 26.3; move-overlay affects the scroll-margin feature Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Oct 2020 18:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39458 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Geza, Herman" Cc: 39458@debbugs.gnu.org Received: via spool by 39458-submit@debbugs.gnu.org id=B39458.160382439530482 (code B ref 39458); Tue, 27 Oct 2020 18:47:01 +0000 Received: (at 39458) by debbugs.gnu.org; 27 Oct 2020 18:46:35 +0000 Received: from localhost ([127.0.0.1]:45855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXTzP-0007vJ-Eo for submit@debbugs.gnu.org; Tue, 27 Oct 2020 14:46:35 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXTzN-0007o5-Ca for 39458@debbugs.gnu.org; Tue, 27 Oct 2020 14:46:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DRStjLCrSqlRqheok/ezRJQzH8nV0cv01iwYLCoFH78=; b=I2/4LEZScQEFbBw0QVER6YoNB9 qWFi2MT77evkusGLdbVr1CysoWhnxkLPh/0Mnl7wNfoZcjWyr6hkZfBFPc+dZVZ9oZSEOU+tYyWH/ I4c2dBxco81oQ4kOJ5tSk+NCCrEW1iAQsCa5Pn5B2Vgapj2mrXM11kG1D7Cd09xOfKus=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXTzE-0002de-8V; Tue, 27 Oct 2020 19:46:27 +0100 From: Lars Ingebrigtsen References: X-Now-Playing: Zola Jesus's _Live at Roadburn_: "Witness" Date: Tue, 27 Oct 2020 19:46:23 +0100 In-Reply-To: (Herman Geza's message of "Thu, 6 Feb 2020 21:11:32 +0100") Message-ID: <87zh47zev4.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Geza, Herman" writes: > Load a several-page large text file, and scroll down to the > bottom. Try to position the document in a way that the window has an empty > space at the bottom. Now, move the cursor upwards. Notice, [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Geza, Herman" writes: > Load a several-page large text file, and scroll down to the > bottom. Try to position the document in a way that the window has an empty > space at the bottom. Now, move the cursor upwards. Notice, that you can > move the cursor at the very top of the window, the scroll-margin value > is ignored. If you continue moving, the document will fill the whole > window, and now emacs will take scroll-margin value into consideration. I can reproduce this bug in Emacs 26.3, but not in Emacs 28, so I'm going to go ahead and guess that it's been fixed, and I'm closing this bug report. If this is still a problem in Emacs 28, please respond to the debbugs address and we'll reopen. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 27 14:46:42 2020 Received: (at control) by debbugs.gnu.org; 27 Oct 2020 18:46:42 +0000 Received: from localhost ([127.0.0.1]:45858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXTzV-000815-ME for submit@debbugs.gnu.org; Tue, 27 Oct 2020 14:46:41 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXTzT-0007tg-AX for control@debbugs.gnu.org; Tue, 27 Oct 2020 14:46:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ata/SqvNiSceILzdmy8JRsaPzYa90n9+fXeLSgUDvRI=; b=EZHS3VpIkTGJOVSTdJAq5l7RMB U89gRtHanaIaJRxQlAVY6HuEtvoEY0lQ8uqg+200/42mnFS93HJymwCPuDeoJ6yxfApr4lCFy36D/ DgVZQvnrtifEylw9ZoHx/0mdSgtaDF1t7vl1CneWJU0M9j9tQ8myzzBw7KLmC1SJ1G+o=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXTzL-0002dn-KQ for control@debbugs.gnu.org; Tue, 27 Oct 2020 19:46:33 +0100 Date: Tue, 27 Oct 2020 19:46:30 +0100 Message-Id: <87y2jrzeux.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #39458 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 39458 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 39458 quit From unknown Sun Jul 27 03:20:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39458: 26.3; move-overlay affects the scroll-margin feature Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Oct 2020 19:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39458 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 39458@debbugs.gnu.org, geza.herman@gmail.com Received: via spool by 39458-submit@debbugs.gnu.org id=B39458.160382655312211 (code B ref 39458); Tue, 27 Oct 2020 19:23:02 +0000 Received: (at 39458) by debbugs.gnu.org; 27 Oct 2020 19:22:33 +0000 Received: from localhost ([127.0.0.1]:45916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXUYD-0003At-JD for submit@debbugs.gnu.org; Tue, 27 Oct 2020 15:22:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXUYC-0003Ae-3O for 39458@debbugs.gnu.org; Tue, 27 Oct 2020 15:22:32 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56807) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXUY6-0003Xf-RW; Tue, 27 Oct 2020 15:22:26 -0400 Received: from [176.228.60.248] (port=1681 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kXUY6-0007Tr-76; Tue, 27 Oct 2020 15:22:26 -0400 Date: Tue, 27 Oct 2020 21:22:21 +0200 Message-Id: <83blgneaoi.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87zh47zev4.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 27 Oct 2020 19:46:23 +0100) References: <87zh47zev4.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Date: Tue, 27 Oct 2020 19:46:23 +0100 > Cc: 39458@debbugs.gnu.org > > "Geza, Herman" writes: > > > Load a several-page large text file, and scroll down to the > > bottom. Try to position the document in a way that the window has an empty > > space at the bottom. Now, move the cursor upwards. Notice, that you can > > move the cursor at the very top of the window, the scroll-margin value > > is ignored. If you continue moving, the document will fill the whole > > window, and now emacs will take scroll-margin value into consideration. > > I can reproduce this bug in Emacs 26.3, but not in Emacs 28, so I'm > going to go ahead and guess that it's been fixed Probably by the fix to bug#42653.