[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sun, 22 Oct 2000 20:21:43 +0900 (JST)
Can anyone explain the logic behind the faces used by outline mode?
It associates each level in the outline with a different font-lock face;
since font-lock faces have no particular ordering, this results in a
seemingly arbitrary amount of emphasis for the different outline levels.
Here are the mappings used by outline-mode:
'((1 . font-lock-function-name-face)
(2 . font-lock-variable-name-face)
(3 . font-lock-keyword-face)
(4 . font-lock-builtin-face)
(5 . font-lock-comment-face)
(6 . font-lock-constant-face)
(7 . font-lock-type-face)
(8 . font-lock-string-face))))
When reading the NEWS file under `emacs -q' on a (black-backgrond) tty,
this results in the following output:
1 - boldface blue (not bad, decently emphasized)
2 - (normal) green (much less emphasized)
3 - boldface cyan (extremely noticable, more so than level 1)
so the result is that level 3 items, the least important, are the most
noticable, and level 2 items kind of disappear into the background.
[the colors used on light-background X display are different, but the
lack of sensible ordering is still present]
I guess it's probably too late to change this for 21.1, but outline mode
seems like it really needs its own set of faces...
- outline-mode faces,
Miles Bader <=