From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Hl-line and visual-line Date: Fri, 21 May 2010 11:17:08 +0300 Message-ID: <83wruxpt2z.fsf@gnu.org> References: <45790724-63FC-4B80-A70D-8CD49A92FEE3@gmail.com> <8339xmqob9.fsf@gnu.org> <94F28B33-A04E-4511-B93D-E5471EE4D0DE@gmail.com> <201005210834.28589.tassilo@member.fsf.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1274429851 14902 80.91.229.12 (21 May 2010 08:17:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 May 2010 08:17:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 21 10:17:27 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OFNQ6-0004pf-Jy for ged-emacs-devel@m.gmane.org; Fri, 21 May 2010 10:17:26 +0200 Original-Received: from localhost ([127.0.0.1]:60571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFNQ5-0007ja-UZ for ged-emacs-devel@m.gmane.org; Fri, 21 May 2010 04:17:25 -0400 Original-Received: from [140.186.70.92] (port=46134 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFNPw-0007jJ-1E for emacs-devel@gnu.org; Fri, 21 May 2010 04:17:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFNPt-0008Ei-OD for emacs-devel@gnu.org; Fri, 21 May 2010 04:17:15 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:38561) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFNPt-0008ES-9a for emacs-devel@gnu.org; Fri, 21 May 2010 04:17:13 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0L2R00I00G36D500@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Fri, 21 May 2010 11:17:08 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.33.125]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L2R00HD4GCKFC30@a-mtaout21.012.net.il>; Fri, 21 May 2010 11:17:08 +0300 (IDT) In-reply-to: <201005210834.28589.tassilo@member.fsf.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:124982 Archived-At: > From: Tassilo Horn > Date: Fri, 21 May 2010 08:34:28 +0200 > > On Friday 21 May 2010 04:35:44 David Reitter wrote: > > > On another note, I first thought of just implementing hl-line in the > > redisplay code, or perhaps as an option to the cursor display. When > > the cursor is drawn, we just highlight the line. No moving around > > overlays in Lisp... > > At a first glance, that would be cool. I like hl-line-mode, but I have > to disable it in some modes, because the hl-line-overlay's face > overrides the normal font-lock face Fixing that would mean introducing some feature that will allow you to request that an overlay's priority is below text properties. That sounds like a simpler change (we have negative priority values vacant for that, I think) than pushing line highlight to the level of the basic redisplay. The latter would have significant effect on the structure of the display code, just like region highlight does. And the display engine code is already too complex, to the degree that is almost unmaintainable.