From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75165 Path: news.gmane.org!not-for-mail From: Eric S Fraga Newsgroups: gmane.emacs.gnus.general Subject: Re: colourising newlines Date: Thu, 16 Dec 2010 20:25:15 +0000 Message-ID: <878vzpifgw.fsf@ucl.ac.uk> References: <87vd2vlxq8.fsf@lifelogs.com> <87ei9ivje3.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292534397 6544 80.91.229.12 (16 Dec 2010 21:19:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Dec 2010 21:19:57 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M23520@lists.math.uh.edu Thu Dec 16 22:19:53 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PTLEt-0006xG-An for ding-account@gmane.org; Thu, 16 Dec 2010 22:19:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PTLDx-00066N-U7; Thu, 16 Dec 2010 15:18:53 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PTLDw-00066B-IN for ding@lists.math.uh.edu; Thu, 16 Dec 2010 15:18:52 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PTLDs-0006Me-9r for ding@lists.math.uh.edu; Thu, 16 Dec 2010 15:18:52 -0600 Original-Received: from vscane-b.ucl.ac.uk ([144.82.108.141]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PTLDo-0000mF-Ju for ding@gnus.org; Thu, 16 Dec 2010 22:18:44 +0100 Original-Received: from 79-67-228-71.dynamic.dsl.as9105.com ([79.67.228.71] helo=localhost) by vscane-b.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72) (envelope-from ) id 1PTLDk-00036Z-6F for ding@gnus.org; Thu, 16 Dec 2010 21:18:40 +0000 X-Face: av6A"vZ{AypDB`d^.T35oG%$E*Qh]4F)K=*$-NHz5{7WZfAFQFB]F@gf}l9`XLs9(iD?D/! nafKE,S#G!4W/flj=9(U{]t'lP,,5~:s*~;kKR User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) X-UCL-MailScanner-Information: Please contact the UCL Helpdesk, helpdesk@ucl.ac.uk for more information X-UCL-MailScanner: Found to be clean X-UCL-MailScanner-From: e.fraga@ucl.ac.uk X-Spam-Status: No X-Spam-Score: -3.9 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75165 Archived-At: Lars Magne Ingebrigtsen writes: > Ted Zlatanov writes: > >> Does it? Maybe you can font-lock it to take N spaces but actually be >> zero. > > I don't think that's possible with Emacs' display engine, but I'd love > to be wrong on that point. > >> I don't know, honestly, but dammit I know what looks good and ragged >> backgrounds are not it :) > > No, it looks quite awkward at present. Perhaps colourising the newline > (i.e., extending the colour block up to the right frame end) is the best > of two not very good options. What about using an overlay (with appropriate face) instead of font-locking, as is done by hl-line mode (cf. hl-line.el in emacs 23.2 at least). This mode overlays a background from the left edge of the window to the right edge regardless of the number of characters on the line (i.e. no space padding required) and the code in hl-line-move looks like it could easily be extended to cover a number of lines instead of just a single line? Just a thought from an elisp novice... so feel free to ignore me (as many do ;-). -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 + No Gnus v0.11