From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#5129: 23.1.50; adding font-lock-keywords for face highlight Date: Sat, 05 Dec 2009 13:15:31 -0600 Message-ID: <878wdhp6zw.fsf@regnitz.physics.niu.edu> Reply-To: Roland Winkler , 5129@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1260041267 20789 80.91.229.12 (5 Dec 2009 19:27:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2009 19:27:47 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 05 20:27:40 2009 Return-path: Envelope-to: geb-bug-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 1NH0I8-0007XJ-6w for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 20:27:40 +0100 Original-Received: from localhost ([127.0.0.1]:47914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH0I7-0004PW-Kw for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 14:27:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NH0I3-0004O7-EG for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 14:27:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NH0Hz-0004Me-14 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 14:27:35 -0500 Original-Received: from [199.232.76.173] (port=56780 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH0Hy-0004Mb-Q3 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 14:27:30 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41413) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NH0Hy-000154-DD for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 14:27:30 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5JRPZV019545; Sat, 5 Dec 2009 11:27:28 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB5JK4LD018681; Sat, 5 Dec 2009 11:20:04 -0800 Resent-Date: Sat, 5 Dec 2009 11:20:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Roland Winkler" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 05 Dec 2009 19:20:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 5129 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.126004054318506 (code B ref -1); Sat, 05 Dec 2009 19:20:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 5 Dec 2009 19:15:43 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5JFfMp018502 for ; Sat, 5 Dec 2009 11:15:43 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:40656) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1NH06W-0003Qh-W9 for emacs-pretest-bug@gnu.org; Sat, 05 Dec 2009 14:15:41 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NH06T-0000H5-N7 for emacs-pretest-bug@gnu.org; Sat, 05 Dec 2009 14:15:40 -0500 Original-Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]:10132) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NH06T-0000Gn-8I for emacs-pretest-bug@gnu.org; Sat, 05 Dec 2009 14:15:37 -0500 Original-Received: from regnitz.physics.niu.edu (adsl-68-77-29-3.dsl.emhril.ameritech.net [68.77.29.3]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id E71A723532 for ; Sat, 5 Dec 2009 20:15:34 +0100 (CET) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 05 Dec 2009 14:27:35 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33257 gmane.emacs.pretest.bugs:25283 Archived-At: The highlight face is somehow treated special in an odd way: If I eval the following in a buffer it will highlight all occurences of "foo" as expected: (font-lock-add-keywords nil '(("foo" . font-lock-constant-face))) Yet when I do instead (font-lock-add-keywords nil '(("foo" . highlight))) it gives me the message (in the *Messages* buffer) Invalid face reference: 0 When I put point at the position of the string "foo" and evaluate (get-text-property (point) 'face) this gives me (0 highlight) which probably explains the "invalid face reference" error. Why is the face `0' added? In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-12-04 on regnitz Windowing system distributor `The X.Org Foundation', version 11.0.10502000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: en_GB.utf8 value of $LANG: en_US.ISO-8859-15 value of $XMODIFIERS: nil locale-coding-system: iso-latin-9-unix default enable-multibyte-characters: t