From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Global Font Lock by default Date: Tue, 01 Nov 2005 07:05:57 -0800 Message-ID: <200511011506.jA1F61KN010578@scanner2.ics.uci.edu> References: <200510311648.j9VGmgKN020532@scanner2.ics.uci.edu> <878xw9r3tu.fsf@pacem.orebokech.com> <200510311747.j9VHl2KN024250@scanner2.ics.uci.edu> <871x21r0v6.fsf@pacem.orebokech.com> <200510312048.j9VKm8KN006460@scanner2.ics.uci.edu> <87r7a1pf1h.fsf@pacem.orebokech.com> <200510312124.j9VLO7KN008775@scanner2.ics.uci.edu> <87ll09pd8v.fsf@pacem.orebokech.com> <200510312207.j9VM79KN011654@scanner2.ics.uci.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130858239 28154 80.91.229.2 (1 Nov 2005 15:17:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Nov 2005 15:17:19 +0000 (UTC) Cc: Romain Francoise , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 01 16:17:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EWxr2-0006yH-8P for ged-emacs-devel@m.gmane.org; Tue, 01 Nov 2005 16:15:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWxr1-0000n6-CJ for ged-emacs-devel@m.gmane.org; Tue, 01 Nov 2005 10:15:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EWxjF-00067H-7U for emacs-devel@gnu.org; Tue, 01 Nov 2005 10:07:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EWxjE-00066V-DI for emacs-devel@gnu.org; Tue, 01 Nov 2005 10:07:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWxjE-00066B-2e for emacs-devel@gnu.org; Tue, 01 Nov 2005 10:07:12 -0500 Original-Received: from [128.195.1.36] (helo=scanner2.ics.uci.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EWxjD-0005Hg-QP for emacs-devel@gnu.org; Tue, 01 Nov 2005 10:07:12 -0500 Original-Received: from vino.ics.uci.edu (dann@vino.ics.uci.edu [128.195.11.198]) by scanner2.ics.uci.edu (8.12.10/8.12.10) with ESMTP id jA1F61KN010578; Tue, 1 Nov 2005 07:06:01 -0800 (PST) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Mon, 31 Oct 2005 17:21:54 -0500") Original-Lines: 38 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-100, required 5, USER_IN_WHITELIST) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45246 Archived-At: Stefan Monnier writes: > > ! (:inherit default)) > > Inheriting from default is rarely what you want to do. Here it's just > a workaround. The only case I can think of where it makes sense to inherit > from `default' is in cases where you want this face to override the effects > of other faces, e.g. if you want to override the background color of the > header-line on some part of the header-line text, you can place on that text > a face that inherits from `default'. How about this as a better workaround? *** font-lock.el 31 Oct 2005 08:29:09 -0800 1.280 --- font-lock.el 01 Nov 2005 07:05:12 -0800 *************** *** 1691,1699 **** (((class color) (min-colors 16) (background dark)) (:foreground "red1")) (((class color) (min-colors 8) (background light)) ! ) (((class color) (min-colors 8) (background dark)) ! ) (t (:weight bold :slant italic))) "Font Lock mode face used to highlight comments." :group 'font-lock-highlighting-faces) --- 1691,1701 ---- (((class color) (min-colors 16) (background dark)) (:foreground "red1")) (((class color) (min-colors 8) (background light)) ! ;; ":foreground nil" is a no-op in this case, but it forces the ! ;; face to be reset at run time. ! (:foreground nil)) (((class color) (min-colors 8) (background dark)) ! (:foreground nil)) (t (:weight bold :slant italic))) "Font Lock mode face used to highlight comments." :group 'font-lock-highlighting-faces)