From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: font-lock question Date: Thu, 24 Jul 2008 11:11:34 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216912331 3643 80.91.229.12 (24 Jul 2008 15:12:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2008 15:12:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: kzeitler@alcatel-lucent.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 24 17:12:59 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KM2Uh-0004ug-Ka for ged-emacs-devel@m.gmane.org; Thu, 24 Jul 2008 17:12:39 +0200 Original-Received: from localhost ([127.0.0.1]:47738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KM2To-0000sW-16 for ged-emacs-devel@m.gmane.org; Thu, 24 Jul 2008 11:11:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KM2Tj-0000sP-Eh for emacs-devel@gnu.org; Thu, 24 Jul 2008 11:11:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KM2Ti-0000s5-51 for emacs-devel@gnu.org; Thu, 24 Jul 2008 11:11:38 -0400 Original-Received: from [199.232.76.173] (port=49849 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KM2Th-0000s2-Pk for emacs-devel@gnu.org; Thu, 24 Jul 2008 11:11:37 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:39416) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KM2Th-0006Bx-EX for emacs-devel@gnu.org; Thu, 24 Jul 2008 11:11:37 -0400 Original-Received: from alfajor.home (vpn-132-204-232-118.acd.umontreal.ca [132.204.232.118]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m6OFBxfJ031700; Thu, 24 Jul 2008 11:12:00 -0400 Original-Received: by alfajor.home (Postfix, from userid 20848) id D07E21C523; Thu, 24 Jul 2008 11:11:34 -0400 (EDT) In-Reply-To: (Klaus Zeitler's message of "Tue, 15 Jul 2008 14:19:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3066=0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:101395 Archived-At: > For many years I had the following statement in my .emacs file: > (defun show-tabs () "Show tabs with a slightly changed background" > (font-lock-add-keywords nil '(("\t" (0 'tab-face t))) t)) > (add-hook 'font-lock-mode-hook 'show-tabs) > This has worked without any problems up to 22.1. > In version 22.2 and 23 I do have problems with syntax highlighting due > to these few lines above, e.g. when I try M-x list-faces-display > all colors are gone. > So here's my question. Did that only work by accident in older versions? > Maybe I have to change this code slightly for 22.2 and CVS version, but I > can't see what's wrong, when I look at the docu for font-lock-add-keywords. Yes, looks like a bug to me, Stefan