From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: highlight current line when Emacs is idle Date: Mon, 4 Sep 2006 11:04:09 -0700 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1157393097 17116 80.91.229.2 (4 Sep 2006 18:04:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Sep 2006 18:04:57 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 04 20:04:55 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GKIoO-0002Z8-0o for ged-emacs-devel@m.gmane.org; Mon, 04 Sep 2006 20:04:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKIoN-0000Ne-M9 for ged-emacs-devel@m.gmane.org; Mon, 04 Sep 2006 14:04:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GKIoC-0000NG-95 for emacs-devel@gnu.org; Mon, 04 Sep 2006 14:04:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GKIoA-0000Mv-Qy for emacs-devel@gnu.org; Mon, 04 Sep 2006 14:04:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKIoA-0000Ms-No for emacs-devel@gnu.org; Mon, 04 Sep 2006 14:04:30 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1GKIyj-0005hB-UF for emacs-devel@gnu.org; Mon, 04 Sep 2006 14:15:26 -0400 Original-Received: from rgmsgw02.us.oracle.com (rgmsgw02.us.oracle.com [138.1.186.52]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k84I4RWC011708 for ; Mon, 4 Sep 2006 13:04:27 -0500 Original-Received: from dradamslap (dhcp-amer-csvpn-gw2-141-144-72-252.vpn.oracle.com [141.144.72.252]) by rgmsgw02.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k84I4QMU029968 for ; Mon, 4 Sep 2006 12:04:26 -0600 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59332 Archived-At: This suggestion (for after the release) is a follow-on to my suggestion to change the cursor to a box when Emacs is idle in order to more easily spot it. Suggestion: Optionally turn on `global-hl-line-mode' and highlight the current line only when Emacs is idle. I use such an option in my code, and I find it useful, for the same reason that changing to a box cursor when idle is useful. I use a similar implementation for both (an input event ends the highlighting). I use a (configurable) idle-timer interval of several seconds - longer than the timer interval for the cursor-type change. I also use a less-obtrusive, yellow underline face for the highlighting (my background is light blue). My guess is that more people might find hl-line useful with this option added. The main reason some people don't like it is that it is very intrusive and can be distracting. In fact, I suspect that most people who use `global-hl-line-mode' (or `hl-line-mode') would prefer this idle-only highlighting: there is usually no need to continue highlighting the line after you have already noticed it.