From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help Subject: Re: Coloring window parts without content Date: Thu, 30 Nov 2006 09:01:04 +0100 Organization: The Church of Emacs Message-ID: <87zma91hz3.fsf@hans.local.net> References: <1164797289.350661.184140@h54g2000cwb.googlegroups.com> <1164871165.904214.171900@j72g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164873722 17637 80.91.229.2 (30 Nov 2006 08:02:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Nov 2006 08:02:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 30 09:01:58 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gpgrc-0002aa-GY for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Nov 2006 09:01:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gpgrb-0000sY-U7 for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Nov 2006 03:01:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GpgrK-0000rI-60 for help-gnu-emacs@gnu.org; Thu, 30 Nov 2006 03:01:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GpgrI-0000pL-8E for help-gnu-emacs@gnu.org; Thu, 30 Nov 2006 03:01:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpgrI-0000pC-33 for help-gnu-emacs@gnu.org; Thu, 30 Nov 2006 03:01:28 -0500 Original-Received: from [212.227.126.177] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GpgrH-000101-BR for help-gnu-emacs@gnu.org; Thu, 30 Nov 2006 03:01:27 -0500 Original-Received: from [84.167.25.87] (helo=duenenhof-wilhelm.de) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis), id 0MKwh2-1GpgrG0Jj7-0001HI; Thu, 30 Nov 2006 09:01:26 +0100 Original-Received: by duenenhof-wilhelm.de (Postfix, from userid 1000) id 0703C755B5; Thu, 30 Nov 2006 09:01:04 +0100 (CET) Original-To: "spamfilteraccount\@gmail.com" In-Reply-To: <1164871165.904214.171900@j72g2000cwa.googlegroups.com> (spamfilteraccount@gmail.com's message of "29 Nov 2006 23\:19\:26 -0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:d7ab225b98a136e1c2910381f940ecb9 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39123 Archived-At: "spamfilteraccount@gmail.com" writes: > Dieter Wilhelm wrote: >> "spamfilteraccount@gmail.com" writes: >> >> > I'd like to color the headings in outline, so that the headings have a >> > distinct background color which spans horizontally across the visible >> > window. >> >> This reminds me a bit of hl-line-mode. > > I took a look at hl-line-mode implementation and the solution is very > simple. It puts an overlay onto the whole line including the newline > character (note the 1+): > > (move-overlay hl-line-overlay > (line-beginning-position) (1+ (line-end-position)) > (current-buffer))))) > > I also tried it with text properties and it works the same way: > > (put-text-property (line-beginning-position) (+ 1 > (line-end-position)) > 'face 'highlight) > > > I thought I finally found something which emacs couldn't do, but I was > wrong. Emacs cannot be beaten. :) > Thank you for your response, I learned something as well 8-) > > The only thing remaining is to hack outline mode somehow to propertize > headings this way. I think it's an improvement, so it should be > included (with an option maybe) in the default outline.el. Yes, it might improve readability (A graphic example comparing this would be ideal to convince people working on this). -- Best wishes H. Dieter Wilhelm Darmstadt, Germany