unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5502: compile.el uses non-mode-line faces in the mode line
@ 2010-02-01  2:04 Karl Berry
  2010-02-01 15:54 ` Stefan Monnier
  0 siblings, 1 reply; 12+ messages in thread
From: Karl Berry @ 2010-02-01  2:04 UTC (permalink / raw)
  To: 5502

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







^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-09-25 22:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-01  2:04 bug#5502: compile.el uses non-mode-line faces in the mode line Karl Berry
2010-02-01 15:54 ` 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

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).