From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kevin Liu Newsgroups: gmane.emacs.bugs Subject: bug#42653: 28.0.50; scroll-margin is sometimes ignored with hl-line/display-line-numbers-mode Date: Sat, 01 Aug 2020 03:39:57 -0700 Message-ID: <87r1sqtzsy.fsf@nivekuil.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20704"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.3; emacs 28.0.50 To: 42653@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 01 18:27:12 2020 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 1k1uLn-0005GW-MF for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Aug 2020 18:27:11 +0200 Original-Received: from localhost ([::1]:49486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k1uLm-0005N7-C7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Aug 2020 12:27:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1uLf-0005Mf-B8 for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 12:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57650) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k1uLe-0002fU-Hr for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 12:27:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k1uLe-0005u1-Dc for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 12:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kevin Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Aug 2020 16:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42653 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159629920022648 (code B ref -1); Sat, 01 Aug 2020 16:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Aug 2020 16:26:40 +0000 Original-Received: from localhost ([127.0.0.1]:40961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1uLE-0005t8-PS for submit@debbugs.gnu.org; Sat, 01 Aug 2020 12:26:40 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:43316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1ovu-0003YZ-Qf for submit@debbugs.gnu.org; Sat, 01 Aug 2020 06:40:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1ovu-0000K3-Ix for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 06:40:06 -0400 Original-Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21179) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1k1ovs-0003ov-9w for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 06:40:06 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1596278399; cv=none; d=zohomail.com; s=zohoarc; b=djxjpgziAR4w9hzPMkkrPlrCxsgUXjxfSpXcApyzgIiyt9a6R/YDFhBBfyXPQ9BDv+Zu9rIAberet0VBBeTIxv9suinxhdsUfUH2fwdRKIqr7ZghvtfmrgxVcSYM8AhBLmu5XjJ0CF4DFUu6Dr4eS9eezXS5qY3pEXaRD1AdTaM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1596278399; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; bh=PJN1h+Rks08Ftq6YDpgBVc+q2aYzcNRuNLYGc5+j05I=; b=gsE1urW9HE2+Rd9VSy1eK6x0AiHQTaS90Cpq/hzbLI4pq5yebiTeIlUhVj5eMnCAhWzWzkIreRPoddoH71PeX9CJJHAe5a1FuJj16i6N1y6/5HGW3DVffsJKrl9lhuMjPpLOoMoMgX+hm6N7nH0ce3Srw1zZPftcb3FM95y0KVM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=nivekuil.com; spf=pass smtp.mailfrom=kevin@nivekuil.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1596278399; s=mail; d=nivekuil.com; i=kevin@nivekuil.com; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; bh=PJN1h+Rks08Ftq6YDpgBVc+q2aYzcNRuNLYGc5+j05I=; b=JLGJQ+ylwn7RQItHH/Qlf99Ww9NjQhUfrSviGp58fKB8ySbhKKDRfD01OX/jaMaX CtWNW9rGK+Ls83VEaFJsdfiMtjCgj43WuWopP/NaP4EN3/6uk7tmWSeQWWzQfb9Is8p IoOJcXwERTv9E1BNVrXXXT4rusxXHKT5ZG6lpNyI= Original-Received: from machina (71.212.158.154 [71.212.158.154]) by mx.zohomail.com with SMTPS id 1596278398462153.8951947689842; Sat, 1 Aug 2020 03:39:58 -0700 (PDT) X-ZohoMailClient: External Received-SPF: none client-ip=136.143.188.51; envelope-from=kevin@nivekuil.com; helo=sender4-of-o51.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/01 06:40:00 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 01 Aug 2020 12:26:35 -0400 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" Xref: news.gmane.io gmane.emacs.bugs:183777 Archived-At: This has been a bug since at least 24.x, and I think Eli even fixed something like it once before: https://lists.gnu.org/archive/html/bug-gnu-emacs/2012-11/msg00838.html This problem is a little different because it involves scroll-margin. When scrolling up, the cursor will seem to ignore it until it hits the top, and then jumps back down to the margin. To quickly reproduce this, run emacs -Q and then eval (progn (global-hl-line-mode) (setq scroll-margin 5) (setq scroll-conservatively 101) (view-hello-file) (end-of-buffer)) Then (previous-line) until you see the problem. Further reference: - https://emacs.stackexchange.com/questions/48340/line-numbers-break-scroll-margin - https://github.com/syl20bnr/spacemacs/issues/8224