From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.help Subject: Re: e23 inverse video on mode line and nowhere else Date: Sun, 17 Jan 2010 00:35:46 +0200 Organization: JURTA Message-ID: <87zl4dd6f1.fsf@mail.jurta.org> References: <201001130142.o0D1gPRH010981@f7.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263681947 2019 80.91.229.12 (16 Jan 2010 22:45:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jan 2010 22:45:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 16 23:45:39 2010 Return-path: Envelope-to: geh-help-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 1NWHOk-0005MK-Sv for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Jan 2010 23:45:39 +0100 Original-Received: from localhost ([127.0.0.1]:41331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWHOl-0006eq-P9 for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Jan 2010 17:45:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWHOP-0006el-Ex for help-gnu-emacs@gnu.org; Sat, 16 Jan 2010 17:45:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWHOK-0006e4-D6 for help-gnu-emacs@gnu.org; Sat, 16 Jan 2010 17:45:16 -0500 Original-Received: from [199.232.76.173] (port=40118 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWHOK-0006dv-3S for help-gnu-emacs@gnu.org; Sat, 16 Jan 2010 17:45:12 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:45874) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NWHOJ-0002vb-Ja for help-gnu-emacs@gnu.org; Sat, 16 Jan 2010 17:45:11 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NWHOC-0005Cj-Ra for help-gnu-emacs@gnu.org; Sat, 16 Jan 2010 23:45:04 +0100 Original-Received: from 82.131.31.29.cable.starman.ee ([82.131.31.29]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Jan 2010 23:45:04 +0100 Original-Received: from juri by 82.131.31.29.cable.starman.ee with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Jan 2010 23:45:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 82.131.31.29.cable.starman.ee User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (x86_64-pc-linux-gnu) Cancel-Lock: sha1:NrhEI+YhiKRUCZ9ex3P3f29m3Og= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71267 Archived-At: > A couple years ago Juri Linkov kindly sent me the Elisp below to > disable faces by default, leaving only faces matching ^mode-line > untouched. This seems to generally give what I want. (Thanks again, Juri.) > > But what I'm finding now is that the compilation status string, such as > ":run", ": exit[0]", and so on, is shown as normal text (not inverse > video) in the mode line. > > I can get the compilation string in inverse video in the mode line with > this (or by excluding ^compilation in my-faces-fix below): > > (set-face-attribute 'compilation-info nil :inverse-video t) > (set-face-attribute 'compilation-warning nil :inverse-video t) > (set-face-attribute 'compilation-error nil :inverse-video t) > > But then filenames and various other strings show up in inverse video in > the buffer contents. > > Short of reverting back to old versions of M-x compile, etc., which I > don't want to do, is there any way to control this? > > Perhaps by doing something in the mode line display to force all faces > to inverse video? (It seems like the same compilation-* faces should > not be used both within the buffer contents and in the mode line, but > anyway.) Currently I see no way to display the compilation status string differently in the mode line and in the compilation buffer because compile.el reuses non-mode-line faces for the mode line. A good solution would be to add new faces to compile.el like mode-line-compilation-info mode-line-compilation-warning mode-line-compilation-error -- Juri Linkov http://www.jurta.org/emacs/