[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hl-line-mode is buffer-local in spite of its documentation
From: |
Lute Kamstra |
Subject: |
Re: hl-line-mode is buffer-local in spite of its documentation |
Date: |
Mon, 08 Sep 2003 17:07:41 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
Peter S Galbraith <psg.debian.org@mixing.qc.dfo.ca> writes:
> hl-line.el says that `hl-line-mode' is a global mode and that:
>
> ;; You could make variable `hl-line-mode' buffer-local to avoid
> ;; highlighting specific buffers.
>
> but somehow hl-line-mode is always a buffer-local variable after
> invoking `emacs21 -q --no-site-file'. The side-effect is that it
> doesn't work as expected. If you turn it on, it is enabled in only
> that buffer and not globally. If you turn it on in a second buffer,
> it works in both buffers now, but if you turn it off in one of those
> buffers then it doesn't work in either since the hooks are removed
> globally.
Thanks for you report. You are right. It is already fixed in CVS.
In fact, line highlighting has changed somewhat. You can check it out
at:
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/emacs/emacs/lisp/hl-line.el?rev=HEAD&content-type=text/plain
Regards,
Lute Kamstra.