From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: fxbois@gmail.com Newsgroups: gmane.emacs.help Subject: Re: set background color without using faces Date: Mon, 8 Apr 2013 12:26:42 -0700 (PDT) Message-ID: <4b0e7cc9-ff09-42db-b3bf-7356d1a2fd68@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1365457484 4520 80.91.229.3 (8 Apr 2013 21:44:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Apr 2013 21:44:44 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 08 23:44:48 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UPJrq-0001Ya-AX for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Apr 2013 23:44:46 +0200 Original-Received: from localhost ([::1]:40458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPJrp-00047c-Vb for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Apr 2013 17:44:45 -0400 X-Received: by 10.224.18.132 with SMTP id w4mr6469431qaa.1.1365449202763; Mon, 08 Apr 2013 12:26:42 -0700 (PDT) X-Received: by 10.49.127.200 with SMTP id ni8mr1882557qeb.42.1365449202731; Mon, 08 Apr 2013 12:26:42 -0700 (PDT) Original-Path: usenet.stanford.edu!ca1no36442983qab.0!news-out.google.com!ef9ni9246qab.0!nntp.google.com!ca1no36442981qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.239.58.78; posting-account=0QyaEgoAAABFDjU-yAB1K_WvoPsHZg3y Original-NNTP-Posting-Host: 82.239.58.78 User-Agent: G2/1.0 Injection-Date: Mon, 08 Apr 2013 19:26:42 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:197780 X-Mailman-Approved-At: Mon, 08 Apr 2013 17:44:35 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90047 Archived-At: > What's wrong with the same technique, i.e. using font-lock-fontify-region? For my keyword rules I almost never set the "override" element to t So if i use a first keyword that set all the entire region (".*") to a face that set the background, the other rules won't work. An other issue with this kind of "background rule", my code that shows the whitespaces would not work either. Is it possible for a (point) in the buffer to have a face and a background color that is different from the background property of the face ? This way I would be able to set the background of the region and after that play with faces.