GNU bug report logs - #36283
27.0.50; hl-line-mode updates the wrong window after clone-indirect-buffer

Previous Next

Package: emacs;

Reported by: Matthew Newton <matt <at> knosis.org>

Date: Tue, 18 Jun 2019 18:20:02 UTC

Severity: minor

Tags: confirmed

Found in versions 27.0.50, 24.5

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #12 received at control <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Matthew Newton <matt <at> knosis.org>
Cc: 36283 <at> debbugs.gnu.org
Subject: Re: bug#36283: 27.0.50;
 hl-line-mode updates the wrong window after clone-indirect-buffer
Date: Thu, 04 Jul 2019 17:16:28 -0400
found 36283 24.5
tags 36283 + confirmed
severity 36283 minor
quit

Matthew Newton <matt <at> knosis.org> writes:

> In GUI Emacs on MacOS:
>
> emacs -Q
> M-x hl-line-mode
> C-p
> M-x clone-indirect-buffer
> C-p
>
> The highlighted line moves in the inactive window and does not move in the active window.
>
> I tested this on Emacs 24.5 from https://emacsformacosx.com/ so it doesn’t appear to be recent or specific to my build.
>
> Note that if global-hl-line-mode is active, it works as expected, highlighting the line in the active window. 

I guess hl-line-mode needs to add an entry to clone-indirect-buffer-hook
(and clone-buffer-hook; clone-buffer seems to have the same problem)
to handle copying of hl-line-overlay.





This bug report was last modified 4 years and 114 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.