From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter S Galbraith Newsgroups: gmane.emacs.bugs Subject: hl-line-mode is buffer-local in spite of its documentation Date: Mon, 8 Sep 2003 10:21:32 -0400 (EDT) Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20030908142132.B791338F7E@mixing.qc.dfo.ca> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1063038503 30023 80.91.224.249 (8 Sep 2003 16:28:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2003 16:28:23 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 08 18:28:43 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19wOsc-0001rG-01 for ; Mon, 08 Sep 2003 18:28:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19wOqe-0005Zw-9I for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Sep 2003 12:26:40 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19wMyD-0005nd-MI for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2003 10:26:21 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19wMvV-0004nr-6c for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2003 10:23:40 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.22) id 19wMv5-0004bT-RD; Mon, 08 Sep 2003 10:23:08 -0400 Original-Received: from [216.226.40.21] (helo=mixing.qc.dfo.ca) by mx20.gnu.org with esmtp (Exim 4.22) id 19wMta-0000VU-M4; Mon, 08 Sep 2003 10:21:34 -0400 Original-Received: by mixing.qc.dfo.ca (Postfix, from userid 1000) id B791338F7E; Mon, 8 Sep 2003 10:21:32 -0400 (EDT) Original-To: bug-gnu-emacs@gnu.org, Dave Love X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list 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.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5759 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. Peter In GNU Emacs 21.2.1 (i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars) of 2002-03-22 on raven, modified by Debian configured using `configure i386-debian-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --with-x=yes --with-x-toolkit=athena --without-gif' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C locale-coding-system: nil default-enable-multibyte-characters: t Recent input: h l - l i n e - m o d e C-h v h l - m o l i m x r e p o t r t Recent messages: Loading image...done Loading tooltip...done For information about the GNU Project and its goals, type C-h C-p. Loading hl-line...done Hl-Line mode enabled Loading view...done Loading pp...done Loading /usr/lib/emacs/21.2/i386-debian-linux-gnu/fns-21.2.1.el (source)...done Type C-x 1 to remove help window. C-M-v to scroll the help. Loading emacsbug...done