From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "spamfilteraccount@gmail.com" Newsgroups: gmane.emacs.help Subject: Re: Coloring window parts without content Date: 4 Dec 2006 05:06:00 -0800 Organization: http://groups.google.com Message-ID: <1165237560.313410.220820@79g2000cws.googlegroups.com> References: <1164797289.350661.184140@h54g2000cwb.googlegroups.com> <1164871165.904214.171900@j72g2000cwa.googlegroups.com> <1164874668.673384.13940@j72g2000cwa.googlegroups.com> <1164957369.124804.126330@n67g2000cwd.googlegroups.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1165239636 31867 80.91.229.10 (4 Dec 2006 13:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Dec 2006 13:40:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 04 14:40:35 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GrE3X-0008Fk-0D for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Dec 2006 14:40:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GrE3W-0004Ul-SG for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Dec 2006 08:40:26 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!79g2000cws.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 194.88.55.211 Original-X-Trace: posting.google.com 1165237566 29532 127.0.0.1 (4 Dec 2006 13:06:06 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 4 Dec 2006 13:06:06 +0000 (UTC) In-Reply-To: <1164957369.124804.126330@n67g2000cwd.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.00 (X11; Linux i686; U; en),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 79g2000cws.googlegroups.com; posting-host=194.88.55.211; posting-account=b98TkQ0AAAD7PsllN8gfWGRoPOPWdnv4 Original-Xref: shelby.stanford.edu gnu.emacs.help:143648 Original-To: help-gnu-emacs@gnu.org 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:39250 Archived-At: spamfilteraccount@gmail.com wrote: > > BTW, the only thing the outline.el developers should do is to change > font locking so that the face property includes the ending newline > characters. If it is done then both the current coloring behavior and > the one I proposed could be used (depending on face settings), so it > could be the best of both worlds. If anyone wants to try it here's a simple hack. I replaced outline-font-lock-keywords with this definition (note the \xa after outline-regexp, the newline character is also matched): (defvar outline-font-lock-keywords ;; Highlight headings according to the level. '((eval . (list (concat "^" outline-regexp ".+\xa") 0 '(or (cdr (assq (outline-font-lock-level) '((1 . outline-1-face) (2 . outline-2-face) (3 . outline-3-face) (4 . outline-4-face) (5 . outline-5-face) (6 . outline-6-face) (7 . outline-7-face) (8 . outline-8-face)))) font-lock-warning-face) nil t)))) It's for emacs21. You have to define your own faces to use it: (defface outline-1-face '((t (:background "lightsteelblue1"))) "Outline face for level 1.") ...