all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* faces `compilation-info' and `compilation-line-number'
@ 2011-02-15 18:20 Drew Adams
  2011-02-15 21:07 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2011-02-15 18:20 UTC (permalink / raw)
  To: emacs-devel

Until recently, these faces were defined as follows (using inheritance from
`font-lock-variable-name-face'):

compilation-info:        Green3 foreground, and bold
         (Green1 if dark background; Green if min colors)
compilation-line-number: font-lock-variable-name-face

Now they are defined this way (inheritance):

compilation-info:        font-lock-type-face
compilation-line-number: font-lock-keyword-face

I suggest they be defined this way instead (inheritance):

compilation-info:        font-lock-keyword-face
compilation-line-number: font-lock-variable-name-face

I think that is more readable.  In compilation and grep buffers readability of
file names is more important than readability of line numbers.  And
`font-lock-keyword-face' is generally used more than `font-lock-type-face', so
the former tends to be more legible than the latter.  That's the case even
taking user customization into account: users tend to make sure that the most
commonly used faces fit their needs.

This would also keep the same face for line numbers that we had prior to the
recent change (going at least as far back as Emacs 20).  (True, keeping the same
line-number face is not too important.)  And `font-lock-variable-name-face' is
also a commonly used face, so it is likely to be more legible for more users
than is the more seldom seen `font-lock-type-face'.

Following this suggestion the only change from the past would thus be for face
`compilation-info' (highlighting file names): it would inherit from
`font-lock-keyword-face' instead of using a Green3 + bold foreground.  (FWIW,
prior to Emacs 22, `font-lock-warning-face' was used for the file names.)

I imagine that the recent change was made in order to inherit, but also to keep
face `compilation-info' as some shade of green (`ForestGreen' is the default
foreground for `font-lock-type-face').

Keeping the default foreground green is less important than readability, IMO.
Because of its widespread use, users are more likely to customize
`font-lock-keyword-face', so it is more likely that it is more readable than
`font-lock-type-face'.  (Likewise, `font-lock-variable-name-face' vs
`font-lock-type-face'.)

Example: I use a Blue3 foreground for `font-lock-keyword-face', and I don't
customize `font-lock-type-face' (or `font-lock-variable-name-face').  Blue3 is
much more readable for file names than is ForestGreen.  (I use a light
background.)




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

end of thread, other threads:[~2011-02-16  5:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-15 18:20 faces `compilation-info' and `compilation-line-number' Drew Adams
2011-02-15 21:07 ` Stefan Monnier
2011-02-15 21:41   ` Tim Cross
2011-02-16  4:02     ` John Yates
2011-02-16  5:36       ` Miles Bader

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.