GNU bug report logs - #51580
hl-line-mode doesn't override global-hl-line-mode in current buffer

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefan <at> marxist.se>

Date: Wed, 3 Nov 2021 06:48:01 UTC

Severity: normal

Fixed in version 29.1

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

Bug is archived. No further changes may be made.

Full log


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

From: Gregory Heytings <gregory <at> heytings.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 51580 <at> debbugs.gnu.org
Subject: Re: bug#51580: hl-line-mode doesn't override global-hl-line-mode in
 current buffer
Date: Wed, 03 Nov 2021 11:51:49 +0000
And of course this could become a command:

(defun buffer-toggle-global-hl-line-mode ()
  (interactive)
  (make-variable-buffer-local 'global-hl-line-mode)
  (if global-hl-line-mode
      (global-hl-line-unhighlight)
    (global-hl-line-highlight))
  (setq global-hl-line-mode (not global-hl-line-mode)))




This bug report was last modified 2 years and 245 days ago.

Previous Next


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