all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* hl-line-mode is buffer-local in spite of its documentation
@ 2003-09-08 14:21 Peter S Galbraith
  0 siblings, 0 replies; 3+ messages in thread
From: Peter S Galbraith @ 2003-09-08 14:21 UTC (permalink / raw)


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:
<help-echo> <help-echo> <escape> h l - l i n e - 
m o d e <return> C-h v h l - m o <tab> <backspace> 
<backspace> l i <tab> m <tab> <return> <escape> x r 
e p o t <backspace> r t <tab> <return>

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-08 16:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.359.1063031908.18171.bug-gnu-emacs@gnu.org>
2003-09-08 15:07 ` hl-line-mode is buffer-local in spite of its documentation Lute Kamstra
2003-09-08 16:05 ` Kevin Rodgers
2003-09-08 14:21 Peter S Galbraith

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.