From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "William Payne" Newsgroups: gmane.emacs.help Subject: font-locking..fails to set certain strings to bold/italics Date: Fri, 23 Apr 2004 20:36:12 +0200 Organization: Island, Linkoping University, Sweden Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1082747043 18721 80.91.224.253 (23 Apr 2004 19:04:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Apr 2004 19:04:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 23 21:03:52 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BH5xn-0007D8-00 for ; Fri, 23 Apr 2004 21:03:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BH5j4-0006qM-FF for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Apr 2004 14:48:38 -0400 Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: astmatix.ida.liu.se Original-X-Trace: news.island.liu.se 1082745368 21118 130.236.186.15 (23 Apr 2004 18:36:08 GMT) Original-X-Complaints-To: abuse@island.liu.se Original-NNTP-Posting-Date: Fri, 23 Apr 2004 18:36:08 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-stoc.telia.net!news-stoa.telia.net!telia.net!newsfeed.sunet.se!news01.sunet.se!puffinus.its.uu.se!news.Update.UU.SE!news.island.liu.se!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:122637 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17925 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17925 Hello, in my .emacs-file I have (among other things) this block of "statements": (custom-set-variables) (custom-set-faces '(font-lock-comment-face ((t (:italic t :foreground "Green")))) '(font-lock-reference-face ((((class color) (background light)) (:foreground "LightGreen")))) '(font-lock-string-face ((t (:italic t :foreground "Gray")))) '(font-lock-keyword-face ((t (:bold t :foreground "Cyan")))) '(font-lock-constant-face ((t (:foreground "Yellow")))) '(font-lock-type-face ((t (:bold t :foreground "White")))) '(font-lock-variable-name-face ((t (:foreground "Yellow")))) '(font-lock-function-name-face ((t (:foreground "Cyan")))) '(font-lock-builtin-face ((t (:bold t :foreground "LightGreen"))))) My problem is that it only sets the color, it fails to set certain types of "strings" to bold/italic as it should. I have been making a lot of changes lately to my .emacs-file but I haven't touched this part and it used to work. Has it to do with me adding a default font? I do that like this: (if (eq window-system 'w32) (progn (add-to-list 'load-path "c:/emacs-21.3/cc-mode-5.30.8") (set-default-font "-raster-Courier-normal-r-normal-normal-16-120-96-96-c-*-iso8859-1") (w32-send-sys-command ?\xf030) ; Start as maximized. Or use $ emacs --fullscreen )) Please help me! I really would like to know why it stopped working. / William Payne