all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: karl@freefriends.org (Karl Berry)
To: 5502@debbugs.gnu.org
Subject: bug#5502: compile.el uses non-mode-line faces in the mode line
Date: Mon, 1 Feb 2010 02:04:05 GMT	[thread overview]
Message-ID: <201002010204.o11245tY019767@f7.net> (raw)

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







             reply	other threads:[~2010-02-01  2:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-01  2:04 Karl Berry [this message]
2010-02-01 15:54 ` bug#5502: compile.el uses non-mode-line faces in the mode line Stefan Monnier
2010-02-02  0:39   ` Karl Berry
2010-02-02  2:36     ` Stefan Monnier
2011-07-13 16:34       ` Lars Magne Ingebrigtsen
2011-07-14 20:56         ` Karl Berry
2011-07-14 21:14           ` Glenn Morris
2011-09-25 22:11             ` Karl Berry
2011-07-16 18:13           ` Stefan Monnier
2011-07-17 15:34             ` Karl Berry
2011-07-17 16:38               ` Eli Zaretskii
2010-02-02 23:45     ` Juri Linkov

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=201002010204.o11245tY019767@f7.net \
    --to=karl@freefriends.org \
    --cc=5502@debbugs.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.