From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: glitches with font-lock-add-keywords Date: Sat, 03 Jun 2006 07:33:04 -0400 Message-ID: <44817370.7010003@speakeasy.net> Reply-To: gebser@speakeasy.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1149334409 20651 80.91.229.2 (3 Jun 2006 11:33:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Jun 2006 11:33:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 03 13:33:28 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 1FmUNj-0005Mu-TV for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Jun 2006 13:33:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FmUNj-0000dO-Ao for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Jun 2006 07:33:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FmUNX-0000c5-RV for help-gnu-emacs@gnu.org; Sat, 03 Jun 2006 07:33:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FmUNW-0000be-Ut for help-gnu-emacs@gnu.org; Sat, 03 Jun 2006 07:33:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FmUNW-0000bZ-RH for help-gnu-emacs@gnu.org; Sat, 03 Jun 2006 07:33:14 -0400 Original-Received: from [69.17.117.8] (helo=mail6.sea5.speakeasy.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FmUUD-0007HG-2R for help-gnu-emacs@gnu.org; Sat, 03 Jun 2006 07:40:09 -0400 Original-Received: (qmail 4618 invoked from network); 3 Jun 2006 11:33:12 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO [192.168.0.27]) (gebser@[66.93.11.17]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 3 Jun 2006 11:33:11 -0000 User-Agent: Mozilla Thunderbird 1.0 (X11/20041207) X-Accept-Language: en-us, en Original-To: GNU Emacs List 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:35321 Archived-At: In my ~/.emacs I have (defvar my-extra-keywords '(("\\<\\(FIXME\\):" 1 font-lock-warning-face prepend) ("\\<\\(XXX\\|xxx\\|???\\|(sp?)\\)\\>" . font-lock-keyword-face))) (add-hook 'text-mode-hook (lambda () (font-lock-add-keywords nil my-extra-keywords))) (add-hook 'html-helper-mode-hook (lambda () (font-lock-add-keywords nil my-extra-keywords))) (add-hook 'emacs-lisp-mode-hook (lambda () (font-lock-add-keywords nil my-extra-keywords))) The strings "XXX" and "xxx" are the only ones which are colorized at all, showing up as magenta. I would like all of them to be something more striking, like lime-green. Is there a table or some sort of "translation" which can be used to determine what actual color names correspond to vars like "font-lock-warning-face" and "font-lock-keyword"? Or, better, can actual color names be used instead, and if so, where would I find a table or listing of them? Secondly: None of the strings containing a '?' are colorized at all (they're just black, the same as "normal" text); I understand that '?' is a special character in elisp and so requires some minor syntactical gymnastics to induce emacs to treat it as a regular character. So what is the syntax I should use for that here? Thanks much, ken -- As a statistic, the US Unemployment Rate is like saying that no one is drowning because the flood waters have risen only five inches today.