From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: karl@freefriends.org (Karl Berry) Newsgroups: gmane.emacs.bugs Subject: bug#5502: compile.el uses non-mode-line faces in the mode line Date: Mon, 1 Feb 2010 02:04:05 GMT Message-ID: <201002010204.o11245tY019767@f7.net> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1264991267 16670 80.91.229.12 (1 Feb 2010 02:27:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Feb 2010 02:27:47 +0000 (UTC) To: 5502@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 01 03:27:42 2010 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.69) (envelope-from ) id 1Nbm0r-0005uW-EO for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Feb 2010 03:27:41 +0100 Original-Received: from localhost ([127.0.0.1]:48515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nbm0q-0000TH-ML for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Jan 2010 21:27:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nbm0m-0000TC-Cy for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2010 21:27:36 -0500 Original-Received: from [199.232.76.173] (port=52519 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nbm0l-0000T4-69 for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2010 21:27:35 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nbm0e-00061Q-Nb for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2010 21:27:35 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43741) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nbm0c-00061G-QN for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2010 21:27:27 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nblew-0007Kq-Dm; Sun, 31 Jan 2010 21:05:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: karl@freefriends.org (Karl Berry) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Feb 2010 02:05:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5502 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: X-Debbugs-Original-To: bug-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.126498986228167 (code B ref -1); Mon, 01 Feb 2010 02:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Feb 2010 02:04:22 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NbleG-0007KG-Rd for submit@debbugs.gnu.org; Sun, 31 Jan 2010 21:04:21 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NbleF-0007K8-4C for submit@debbugs.gnu.org; Sun, 31 Jan 2010 21:04:19 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]:34673) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NbleB-00021H-Ie for submit@debbugs.gnu.org; Sun, 31 Jan 2010 21:04:15 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NbleA-0004on-8Q for submit@debbugs.gnu.org; Sun, 31 Jan 2010 21:04:15 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:56600) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NbleA-0004oi-0N for submit@debbugs.gnu.org; Sun, 31 Jan 2010 21:04:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nble9-0008N4-Lo for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2010 21:04:13 -0500 Original-Received: from [199.232.76.173] (port=60011 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nble8-0008Mv-Ns for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2010 21:04:12 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nble7-0004oR-LE for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2010 21:04:12 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:46762) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nble7-0004oN-B9 for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2010 21:04:11 -0500 Original-Received: from mail.gnu.org ([199.232.76.166]:34672 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nble7-000218-5a for bug-emacs@gnu.org; Sun, 31 Jan 2010 21:04:11 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nble5-0004oF-TP for bug-emacs@gnu.org; Sun, 31 Jan 2010 21:04:11 -0500 Original-Received: from b0.f7.net ([66.148.120.132]:35867 helo=f7.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nble5-0004o7-Hx for bug-emacs@gnu.org; Sun, 31 Jan 2010 21:04:09 -0500 X-Envelope-From: karl@freefriends.org X-Envelope-To: Original-Received: from f7.net (sls-af11p1 [127.0.0.1]) by f7.net (8.14.4/8.14.4) with ESMTP id o112451q019769 for ; Sun, 31 Jan 2010 21:04:08 -0500 Original-Received: (from karl@localhost) by f7.net (8.14.4/8.14.4/submit) id o11245tY019767; Mon, 1 Feb 2010 02:04:05 GMT X-Authentication-Warning: localhost.localdomain: karl set sender to karl@freefriends.org using -f X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 31 Jan 2010 21:05:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:34830 Archived-At: In Emacs 23.1[.92], compile.el uses non-mode-line faces to propertize text used in the mode line. My goal is to have inverse video in the mode line, and regular text only (no underlines, fake bold, etc.) in the buffer contents. To reproduce: emacs -nw --no-site --no-init -l inv.el # where invtest.el is appended M-x compile RET [backspace to wipe out the "make -k", then] false RET Observe that the compilation status in the mode line is in "regular" video, unlike the rest of the mode line. Thanks, Karl Here is invtest.el: (setq compilation-mode-hook 'k-inverse-video-hook) (defun k-inverse-video-hook () (set-face-attribute 'compilation-info nil :inverse-video nil) (set-face-attribute 'compilation-warning nil :inverse-video nil) (set-face-attribute 'compilation-error nil :inverse-video nil) ) P.S. I don't suppose this is news to you, but it is apparently coming from the following three pieces of compile.el. If the mode line stuff used face names like mode-line-compilation-{warning,info,error}, which could default to the same values they get now, then (I surmise) they could be controlled independently. Everything else I've run across so far does use face names mode-line-* for text that goes in the mode line. (setq mode-line-process (list (propertize ":%s" 'face 'compilation-warning))) .. (setq mode-line-process (list (propertize ":run" 'face 'compilation-warning))) .. (propertize out-string 'help-echo msg 'face (if (> exit-status 0) 'compilation-error 'compilation-info))))