From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#36283: 27.0.50; hl-line-mode updates the wrong window after clone-indirect-buffer Date: Mon, 01 Feb 2021 10:31:42 +0100 Message-ID: <87eei0p20x.fsf@gnus.org> References: <384E7CDE-A67E-46D9-9E0B-1587160115E9@knosis.org> <85ef35ec0j.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18705"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Matthew Newton , 36283@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 01 10:32:39 2021 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 1l6VZW-0004lV-IB for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Feb 2021 10:32:38 +0100 Original-Received: from localhost ([::1]:43964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6VZV-0003Ad-Ij for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Feb 2021 04:32:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6VYx-00039x-U8 for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2021 04:32:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47303) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6VYw-0006CM-BB for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2021 04:32:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6VYw-0007WD-7f for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2021 04:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Feb 2021 09:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36283 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 36283-submit@debbugs.gnu.org id=B36283.161217191928762 (code B ref 36283); Mon, 01 Feb 2021 09:32:02 +0000 Original-Received: (at 36283) by debbugs.gnu.org; 1 Feb 2021 09:31:59 +0000 Original-Received: from localhost ([127.0.0.1]:58846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6VYt-0007TW-3l for submit@debbugs.gnu.org; Mon, 01 Feb 2021 04:31:59 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:46866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6VYp-0007NS-SJ for 36283@debbugs.gnu.org; Mon, 01 Feb 2021 04:31:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=78kyeZMh6ejZyyMp3duseu9AuGPPAAlaT3RT1MXs59s=; b=qThSgb32uR4VrdOXG0o8+7gxxy UFD8wmSjnxF2rgXkBE6IS559k4PBHft8eihXZzkhmQ8Rls+uKHUnvOvPEZF/9ekFDnzdybpDV9TWa 0KgeRsM1f+Hq5AwKn7Z6Fut7Csj1BLL22r9gvs90qwF9QbO8pMaXGBTkPqFKI6vi3hvU=; Original-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 1l6VYh-0007Xh-BM; Mon, 01 Feb 2021 10:31:49 +0100 X-Now-Playing: Normil Hawaiians's _What's Going On?_: "Louise Michel" In-Reply-To: <85ef35ec0j.fsf@gmail.com> (Noam Postavsky's message of "Thu, 04 Jul 2019 17:16:28 -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:199066 Archived-At: Noam Postavsky writes: > Matthew Newton 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=E2=80=99t 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. I'm not sure it's a bug, though? `hl-line-mode' switches on highlighting in one specific buffer. An indirect buffer is a new buffer, and if you want line highlighting there, you should switch it on there, I think? Automatically switching on the mode in the indirect buffer would be surprising, I think. So I'm closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no