From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: font-lock-face-attributes not changing Date: Thu, 30 Apr 2015 19:08:42 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1430446157 11701 80.91.229.3 (1 May 2015 02:09:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 May 2015 02:09:17 +0000 (UTC) To: Ken Goldman , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 01 04:09:17 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yo0OC-0006yN-Ma for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 04:09:16 +0200 Original-Received: from localhost ([::1]:46500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yo0OB-0001qz-PP for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Apr 2015 22:09:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yo0O0-0001qr-Fb for help-gnu-emacs@gnu.org; Thu, 30 Apr 2015 22:09:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yo0Nz-0002tg-MD for help-gnu-emacs@gnu.org; Thu, 30 Apr 2015 22:09:04 -0400 Original-Received: from mail-oi0-x22d.google.com ([2607:f8b0:4003:c06::22d]:34705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yo0Nz-0002tb-HM for help-gnu-emacs@gnu.org; Thu, 30 Apr 2015 22:09:03 -0400 Original-Received: by oiko83 with SMTP id o83so62258357oik.1 for ; Thu, 30 Apr 2015 19:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=nLVUKNvK7tI1Dc41eCDI73k3q9ECdaRaZMDjGWxNTd0=; b=HIH+4t4eTaYJXBkxMGfh2grWyykE3mUfqkPJqoUdA8kvzUFS0yn7sTAgUnaGHDTG8z +3WcWUM4tQo0oFV1dKVn4vGiS2Q9n2khErKdgBQzNd1vmOn8D86PybGtG5CFxU7lnTqE TchWzHYi4O4pnyreVYecPCKGBMZQ/QaPtM+6/vgsRjof94VbrexHSltwR9gySFpFoRqt TRBw9rh2fsEU1BKm2srdTam6IxLBE9KgUfV5pH0wzf83JbpgREQ/MTJ1hMtg9bxQNqiA E9bDGj93028ZsWDJQISizUL4SUc8kcyIUb6EyR3+vf74v8SVwHnjnpDxTV3A/0ZCGw9b j8rw== X-Received: by 10.202.210.194 with SMTP id j185mr5631324oig.68.1430446142574; Thu, 30 Apr 2015 19:09:02 -0700 (PDT) Original-Received: by 10.76.107.19 with HTTP; Thu, 30 Apr 2015 19:08:42 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::22d X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104119 Archived-At: Hi Ken, > I have a common .emacs file that I use across Linux and Windows > platforms. One one (24.3.1, a bit newer than the others) , > font-lock-face-attributes has no effect. I get the default colors. > > When I start .emacs, I don't see any warnings, and messages says the > .emacs is being read. What else should I look for? It looks like the variable `font-lock-face-attributes' was made obsolete. I found this in the NEWS (a file distributed with Emacs) dating back to Emacs 20.1: The variables font-lock-face-attributes, font-lock-display-type and font-lock-background-mode are now obsolete; the recommended way to specify the faces to use for Font Lock mode is with M-x customize-group on the new custom group font-lock-faces. If you set font-lock-face-attributes in your ~/.emacs file, Font Lock mode will respect its value. However, you should consider converting from setting that variable to using M-x customize. I wasn't familiar with it before your question, but I take it `font-lock-face-attributes' was still respected for some time after that, though seemingly no longer. (Which seems reasonable to me, considering how long ago Emacs 20.1 was released.) > The other hint is that it claims this is an invalid face, but it works > on several other Linux platforms. > > (set-face-foreground 'modeline "navy") > (set-face-background 'modeline "lightblue1") I didn't look into the history (if any) here, but on my Emacs (24.5) the face to use is `mode-line'. Hope that helps -- john