From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Suggestion for hl-line.el Date: Wed, 07 May 2003 10:46:28 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200305071446.h47EkSJw014780@rum.cs.yale.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052318958 28138 80.91.224.249 (7 May 2003 14:49:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 7 May 2003 14:49:18 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed May 07 16:49:14 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19DQBc-00075c-00 for ; Wed, 07 May 2003 16:46:24 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19DQFd-0004ch-00 for ; Wed, 07 May 2003 16:50:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19DQCZ-0001hw-03 for emacs-devel@quimby.gnus.org; Wed, 07 May 2003 10:47:23 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19DQCE-0001hd-00 for emacs-devel@gnu.org; Wed, 07 May 2003 10:47:02 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19DQBi-0001WE-00 for emacs-devel@gnu.org; Wed, 07 May 2003 10:47:02 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19DQBi-0001WA-00 for emacs-devel@gnu.org; Wed, 07 May 2003 10:46:30 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h47EkSx6014782; Wed, 7 May 2003 10:46:28 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h47EkSJw014780; Wed, 7 May 2003 10:46:28 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Lute Kamstra X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13744 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13744 > Suppose one has two buffers visible: one buffer in a non-selected > window and some sort of summary of this buffer in the selected window. > hl-line-mode can now be used to highlight the current line in the > summary buffer. However if the window of the other buffer becomes > selected, the line in the summary buffer is no longer highlighted. I > would like it to stay highlighted. > > In order to accomplish this, a second pair of minor modes ("sticky" I think it makes more sense to add a hl-line-sticky variable. Better yet: make the buffer-local mode sticky, but the global mode non-sticky. Stefan