From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37848: 27.0.50; hl-line and line-numbers out of sync Date: Mon, 21 Oct 2019 13:49:43 +0300 Message-ID: <83tv822x14.fsf@gnu.org> References: <83wocy2yjo.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="254739"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37848@debbugs.gnu.org To: Andrey Orst Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 21 12:50:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iMVGS-00144N-IA for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Oct 2019 12:50:16 +0200 Original-Received: from localhost ([::1]:37602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMVGQ-0003S7-JV for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Oct 2019 06:50:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45340) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMVGJ-0003Rj-8N for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2019 06:50:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMVGE-000064-HT for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2019 06:50:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46983) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMVGE-00005z-8j for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2019 06:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iMVGE-0006Ce-5J for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2019 06:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Oct 2019 10:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37848 X-GNU-PR-Package: emacs Original-Received: via spool by 37848-submit@debbugs.gnu.org id=B37848.157165499823830 (code B ref 37848); Mon, 21 Oct 2019 10:50:02 +0000 Original-Received: (at 37848) by debbugs.gnu.org; 21 Oct 2019 10:49:58 +0000 Original-Received: from localhost ([127.0.0.1]:55804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMVGA-0006CI-4u for submit@debbugs.gnu.org; Mon, 21 Oct 2019 06:49:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMVG8-0006C6-1w for 37848@debbugs.gnu.org; Mon, 21 Oct 2019 06:49:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iMVG2-0008UD-NG; Mon, 21 Oct 2019 06:49:50 -0400 Original-Received: from [176.228.60.248] (port=3694 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iMVG2-0007ZV-2a; Mon, 21 Oct 2019 06:49:50 -0400 In-reply-to: (message from Andrey Orst on Mon, 21 Oct 2019 13:24:11 +0300) 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: 209.51.188.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:169898 Archived-At: > From: Andrey Orst > Date: Mon, 21 Oct 2019 13:24:11 +0300 > Cc: 37848@debbugs.gnu.org > > > The line-number display has nothing to do with this, it works > > correctly in this case. > > It may work correctly, but I the issue is with the fact that line > number and hl-line are out of sync. More accurately, hl-line's overlay is out of sync with the window-point. > Can I prevent this? It's a bug in hl-line that needs to be fixed. The display engine runs pre-redisplay-function for the window in this case, so perhaps hl-line could install its hook there and fix its overlay when it is called. Patches are welcome.