all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: 51580@debbugs.gnu.org
Subject: bug#51580: hl-line-mode doesn't override global-hl-line-mode in current buffer
Date: Tue, 2 Nov 2021 23:47:14 -0700	[thread overview]
Message-ID: <CADwFkm=DOj4=ii9Wh6L34bXVw_62L5Lpe8KX7f0KnqXOGWSygg@mail.gmail.com> (raw)

It seems like there is currently no way to use `global-hl-line-mode'
while disabling it for individual buffers.

Steps to reproduce:

0. emacs -Q
1. M-x global-hl-line-mode
2. M-x hl-line-mode

Now, `global-hl-line-mode' is still in effect, and lines are still
highlighted.  I expect that running `hl-line-mode' turns off line
highlighting.

There is a comment in hl-line.el saying:

    ;; You could make variable `global-hl-line-mode' buffer-local and set
    ;; it to nil to avoid highlighting specific buffers, when the global
    ;; mode is used.

However, if I say M-x global-hl-line-mode and then

    M-: (setq-default global-hl-line-mode nil)

the highlighting overlay is left on the current line.





             reply	other threads:[~2021-11-03  6:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-03  6:47 Stefan Kangas [this message]
2021-11-03 10:06 ` bug#51580: hl-line-mode doesn't override global-hl-line-mode in current buffer Gregory Heytings
2021-11-03 11:28   ` Stefan Kangas
2021-11-03 11:42     ` Gregory Heytings
2021-11-03 11:51       ` Gregory Heytings
2021-11-03 13:11         ` Gregory Heytings
2021-11-04  0:06       ` Stefan Kangas
2021-11-04 18:09         ` Lars Ingebrigtsen
2022-09-20 11:55 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkm=DOj4=ii9Wh6L34bXVw_62L5Lpe8KX7f0KnqXOGWSygg@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=51580@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.