From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andrey Orst Newsgroups: gmane.emacs.bugs Subject: bug#37848: Fwd: bug#37848: 27.0.50; hl-line and line-numbers out of sync Date: Mon, 21 Oct 2019 14:43:51 +0300 Message-ID: References: <83wocy2yjo.fsf@gnu.org> <83tv822x14.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cb2bd905956a34e8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="220235"; mail-complaints-to="usenet@blaine.gmane.org" To: 37848@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 21 13:45:16 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 1iMW7f-000v9g-ES for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Oct 2019 13:45:15 +0200 Original-Received: from localhost ([::1]:38866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMW7d-0004Wj-SU for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Oct 2019 07:45:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52320) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMW7U-0004Uu-DK for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2019 07:45:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMW7T-0001vq-C1 for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2019 07:45:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47002) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMW7S-0001uV-3D for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2019 07:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iMW7R-00018J-M9 for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2019 07:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrey Orst Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Oct 2019 11:45:01 +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.15716582774285 (code B ref 37848); Mon, 21 Oct 2019 11:45:01 +0000 Original-Received: (at 37848) by debbugs.gnu.org; 21 Oct 2019 11:44:37 +0000 Original-Received: from localhost ([127.0.0.1]:55823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMW72-000173-Q4 for submit@debbugs.gnu.org; Mon, 21 Oct 2019 07:44:36 -0400 Original-Received: from mail-yb1-f175.google.com ([209.85.219.175]:41693) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMW70-00016h-4E for 37848@debbugs.gnu.org; Mon, 21 Oct 2019 07:44:35 -0400 Original-Received: by mail-yb1-f175.google.com with SMTP id 206so3908183ybc.8 for <37848@debbugs.gnu.org>; Mon, 21 Oct 2019 04:44:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=B8yYeRtLamsyb40Hn7cUf00eAhTeehdHYRMzCchXVWY=; b=tD27eGMji/TcTT3QS3NfJwWKXkgXXyEh4/25rwiXHA9RMUposo254uXZxo1CnGdV/z MwMYybqdcSHaSo/viuEs5wCKkXts7HN6wXyQpUD2Cgi8HeWZOrKLk1t3DsY4keTDgVqi FmlyacTnmksOBHAYHfazBibdpi6wgz3q8Yo4Xy/EO70dt8Xkzd+dl7zanerwQ/4XCQiA xpfbEPj/fyrqWtXgAJI9paPPt/HOAvmnhLpme1wyKC3sS+pr8l7cRwb4dZQgkaNnlm9p EuQymrSDSKV6dtqLfcv1/Ni4nGNb54ozenR/af8Aquh0BMSPb3JWN8fKjzt7bH8N2hdA /NPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=B8yYeRtLamsyb40Hn7cUf00eAhTeehdHYRMzCchXVWY=; b=q1IfG0i3ZGmHWpNzX5cARlQ50+YMrE44mA/hvelI/Ze5WPTbMcbt4pakWyoYzf57YG fsgxlo5LiGuaYpPo9SBDETrYcN9C0CiyFR2/UK7+zP31Ca2tYtFueW2xvTh9xBKfYn8t imCAG18W2cT/CpRdLiaSqiTAni5XavvD3UJtLX93EcZ1WsBdsp7uKz+4+H5Qz/Bq/oxk khcTBiyfoCIHWWGz65yJkFPmP2akxCC96+2HVvmNEeTuhMfeCu8Nz/JrpxO38JqzX8NE V7kYpMLaHHqNrm/cnVgpxRz8Z2P3snQ0K4kvJUaOINgiet6HS1MsbjV0uSd0TqsNUhNU plKg== X-Gm-Message-State: APjAAAXP03JxfjfUPLOMjI3V3Mc8G/vi7eIPByIVPif+vD2GccX/Y1OQ zxvDoM5SU6rsZBz7SqAa5qo0o7r8ExawKU2E4SWJ0Q== X-Google-Smtp-Source: APXvYqx2Eo5o7DhBk4DKDDDgaLWerJQIx3EXMwbRPByhD7fkaT8F6CWWodmoRIdYQye/PNjNXVJi15REjmlXE1/V8YU= X-Received: by 2002:a25:e5c2:: with SMTP id c185mr15091906ybh.332.1571658268353; Mon, 21 Oct 2019 04:44:28 -0700 (PDT) In-Reply-To: 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:169900 Archived-At: --000000000000cb2bd905956a34e8 Content-Type: text/plain; charset="UTF-8" > 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. Unfortunately adding these hooks doesn't fix issue: (add-hook 'pre-redisplay-function #'hl-line-highlight nil t) (add-hook 'pre-redisplay-function #'hl-line-maybe-unhighlight nil t) (add-hook 'pre-redisplay-function #'global-hl-line-highlight) (add-hook 'pre-redisplay-function #'global-hl-line-maybe-unhighlight) These two functions are used in `hl-line.el'. I've tried pre-redisplay-functions hook as well with no effect. -- Best regards, Andrey Orst --000000000000cb2bd905956a34e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> It&#= 39;s a bug in hl-line that needs to be fixed.
>
> The display e= ngine runs pre-redisplay-function for the window in this
> case, so p= erhaps hl-line could install its hook there and fix its
> overlay whe= n it is called.
>
> Patches are welcome.

Unfortunately adding these hooks doesn't fix issue:

(add-hook = 'pre-redisplay-function #'hl-line-highlight nil t)
(add-hook = 9;pre-redisplay-function #'hl-line-maybe-unhighlight nil t)
(add-hoo= k 'pre-redisplay-function #'global-hl-line-highlight)
(add-hook = 'pre-redisplay-function #'global-hl-line-maybe-unhighlight)

= These two functions are used in `hl-line.el'.
I've tried pre-re= display-functions hook as well with no effect.

--=C2=A0
Best regards,
Andrey Orst
=
--000000000000cb2bd905956a34e8--