From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?S=E9bastien_Vauban?= Newsgroups: gmane.emacs.devel Subject: Re: Color-theme problems in Emacs 22+ (Ubuntu, Windows) Date: Thu, 01 Feb 2007 09:42:06 +0100 Organization: Sebastien Vauban Message-ID: <87wt32clr5.fsf_-_@mundaneum.mygooglest.com> References: <873b63os0c.fsf@stupidchicken.com> <87ps8wvh6g.fsf_-_@missioncriticalit.com> <87odogfn0u.fsf@stupidchicken.com> <1170232136.ZTHJWSQQAFHV@spammotel.com> <87veingqz1.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1170361673 11410 80.91.229.12 (1 Feb 2007 20:27:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Feb 2007 20:27:53 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: , cyd@stupidchicken.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 01 21:27:42 2007 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 1HCiWy-0005RF-K2 for ged-emacs-devel@m.gmane.org; Thu, 01 Feb 2007 21:27:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HCiWx-000189-OC for ged-emacs-devel@m.gmane.org; Thu, 01 Feb 2007 15:27:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HCXWz-0001Wm-Eu for emacs-devel@gnu.org; Thu, 01 Feb 2007 03:42:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HCXWv-0001W5-Vd for emacs-devel@gnu.org; Thu, 01 Feb 2007 03:42:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HCXWu-0001Vn-Ug for emacs-devel@gnu.org; Thu, 01 Feb 2007 03:42:53 -0500 Original-Received: from 81-188-7-133.sdsl.easynet.be ([81.188.7.133] helo=mail.missioncriticalit.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HCXWj-0000Up-Jb; Thu, 01 Feb 2007 03:42:41 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.missioncriticalit.com (Postfix) with ESMTP id E533D9E01F; Thu, 1 Feb 2007 09:42:28 +0100 (CET) Original-Received: from mail.missioncriticalit.com ([127.0.0.1]) by localhost (escher [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29227-10; Thu, 1 Feb 2007 09:42:07 +0100 (CET) Original-Received: from mundaneum. (unknown [10.10.10.1]) by mail.missioncriticalit.com (Postfix) with ESMTP id 29E9A9E01B; Thu, 1 Feb 2007 09:42:06 +0100 (CET) X-Www-site: Under construction... In-Reply-To: <87veingqz1.fsf@stupidchicken.com> (Chong Yidong's message of "Wed\, 31 Jan 2007 10\:23\:30 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at missioncriticalit.com X-detected-kernel: Linux 2.4-2.6 X-Mailman-Approved-At: Thu, 01 Feb 2007 15:27:29 -0500 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:65754 Archived-At: Hi Chong, > The problematic customization is in your .emacs file: > > ;; warning font lock (tabs, trailing spaces) > (defvar font-lock-keywords nil) > (add-hook 'font-lock-mode-hook > '(lambda () > (setq font-lock-keywords > (append font-lock-keywords > '(("\t+" > (0 'my-font-lock-tab-face t)) > ("[ \t]+$" > (0 'my-font-lock-trailing-space-face t)))))= )) > > When you munge font-lock-keywords manually, unpredicatable > things can occur. In this case, it seems like font-lock-mode > is taking over highlighting in buffers that normally specify > face properties manually, causing the normal text highlighting > to disappear. Thank you *very much* for that quick and right answer. Now, I'm relieved as I finally can jump to Emacs 22+, in Ubuntu and in Windows as well (sorry, forced to use it at work, while still refusing to use Outlook!). Weirdly enough, under Emacs22/Ubuntu, my groups are dark green, and under Emacs23/Windows, with the same config files, they are purple, as you saw them. Not important, though, as I have color-highlighting working, and so I know where are the empty groups and the other ones. I'm sorry to have disturbed you with a problem that appears to be within my .emacs file, but see the weird thing: everything worked perfectly in Emacs 21 (Ubuntu + Window$), and never in Emacs 22+ (on both platforms)... That's the kind of interaction that's difficult to spot. > The proper way to do what you want is to use the function > `font-lock-add-keywords'. See also hi-lock.el, which may do > what you want. Thanks for the hint on how to do it properly... Case is closed. Please receive a grateful hello from Brussels! Thank you very much, Seb --=20 S=E9bastien Vauban