all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: help-gnu-emacs@gnu.org
Subject: Re: e23 inverse video on mode line and nowhere else
Date: Sun, 17 Jan 2010 00:35:46 +0200	[thread overview]
Message-ID: <87zl4dd6f1.fsf@mail.jurta.org> (raw)
In-Reply-To: 201001130142.o0D1gPRH010981@f7.net

> 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/





  parent reply	other threads:[~2010-01-16 22:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-13  1:42 e23 inverse video on mode line and nowhere else Karl Berry
2010-01-13  8:31 ` Leo
2010-01-16 22:35 ` Juri Linkov [this message]
     [not found] <20100115004221.598A8AF600@mxperim7.sea5.speakeasy.net>
2010-01-14 23:04 ` Karl Berry
2010-01-15  4:13   ` Steve Revilak
2010-01-15 20:23   ` Leo
     [not found] <mailman.1436.1263510311.18930.help-gnu-emacs@gnu.org>
2010-01-15  0:32 ` Tim X
2010-01-15  8:21   ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2010-02-01  2:04 Karl Berry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zl4dd6f1.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.