From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Kuettner Newsgroups: gmane.emacs.help Subject: Re: background-image in emacs Date: Thu, 30 Nov 2006 14:01:43 +0100 Message-ID: <456ED637.5060708@gmail.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164891789 10619 80.91.229.2 (30 Nov 2006 13:03:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Nov 2006 13:03:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 30 14:03:03 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 1GplYu-0004ZV-QL for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Nov 2006 14:02:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GplYu-0004WN-Cy for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Nov 2006 08:02:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GplXz-0003l4-Gs for help-gnu-emacs@gnu.org; Thu, 30 Nov 2006 08:01:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GplXw-0003gY-BE for help-gnu-emacs@gnu.org; Thu, 30 Nov 2006 08:01:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GplXv-0003fO-DD for help-gnu-emacs@gnu.org; Thu, 30 Nov 2006 08:01:47 -0500 Original-Received: from [212.227.126.188] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GplXu-00069s-BK for help-gnu-emacs@gnu.org; Thu, 30 Nov 2006 08:01:46 -0500 Original-Received: from [84.187.209.56] (helo=[192.168.1.102]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis), id 0ML25U-1GplXr3cDe-0003Hm; Thu, 30 Nov 2006 14:01:44 +0100 User-Agent: Thunderbird 1.5.0.8 (Macintosh/20061025) Original-To: Mathias Dahl , help-gnu-emacs@gnu.org In-Reply-To: X-Provags-ID: kundenserver.de abuse@kundenserver.de login:2cac69a258edb5cbde65560cb194ce8a 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:39129 Archived-At: Mathias Dahl wrote: > M G Berberich writes: > >> at the moemnt I'm using xemacs, and I have a background-image, which >> improves usability (in my opinion). Is there a way to get this >> appearance in emacs too? >> >> (see: http://www.forwiss.uni-passau.de/~berberic/xemacs-bg.png) > newest research from the orgmode mailinglist: >> "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. :) > > The name of the thread is "Re: Coloring window parts without content" if you want to search the archives. <> Christopher