From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "=?iso-8859-1?B?3m9ybmU=?=" Newsgroups: gmane.emacs.help Subject: font-lock-add-keywords confusion Date: 10 Feb 2007 06:25:40 -0800 Organization: http://groups.google.com Message-ID: <1171117540.517798.173870@a34g2000cwb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1171118441 15333 80.91.229.12 (10 Feb 2007 14:40:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 10 Feb 2007 14:40:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 10 15:40:35 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HFtOz-0005is-B8 for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Feb 2007 15:40:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HFtOy-00054M-U1 for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Feb 2007 09:40:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!a34g2000cwb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: 65.203.232.102 Original-X-Trace: posting.google.com 1171117546 31937 127.0.0.1 (10 Feb 2007 14:25:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 10 Feb 2007 14:25:46 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: a34g2000cwb.googlegroups.com; posting-host=65.203.232.102; posting-account=ex57WA0AAACaCEDAUgwge-MEQqyxT87Q Original-Xref: shelby.stanford.edu gnu.emacs.help:145460 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:41064 Archived-At: I'm having major trouble understanding the documentation on faces-- specifically font-lock-add-keywords. This works for me (emacs 21.3.1 Windows): (font-lock-add-keywords nil '(("foo" 0 font-lock-builtin-face))) but this does not: (font-lock-add-keywords nil '(("foo" 0 underline))) Nor with any other face--except the font-lock faces. If i do M-x list- faces-display, `underline' is there and looks right. So i try: (defface font-lock-underlined-face '((t (:underline t))) "Font Lock mode face used to underline." :group 'font-lock-highlighting-faces) (font-lock-add-keywords nil '(("foo" 0 font-lock-underlined-face))) but still no luck, even though again it looks like the new face is defined ok and works--at least in customize and in list-faces- display. So what am i missing?