unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48672: outline faces
@ 2021-05-26 10:49 ludvig-faddeev
  2021-05-26 22:17 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: ludvig-faddeev @ 2021-05-26 10:49 UTC (permalink / raw)
  To: 48672

Currently outline faces uses name faces taken for ather purposes than outline
headings.

font-lock-function-name-face))
  "Level 1.")

(defface outline-2
  '((t :inherit font-lock-variable-name-face))
  "Level 2.")

(defface outline-3
  '((t :inherit font-lock-keyword-face))
  "Level 3.")

(defface outline-4
  '((t :inherit font-lock-comment-face))
  "Level 4.")

(defface outline-5
  '((t :inherit font-lock-type-face)
 "Level 5.")

(defface outline-6
  '((t :inherit font-lock-constant-face))
  "Level 6.")

(defface outline-7
  '((t :inherit font-lock-builtin-face))
  "Level 7.")

(defface outline-8
  '((t :inherit font-lock-string-face))
  "Level 8.")

It would be appreciated that outline faces have their own faces rather than inheriting
faces for faces assigned to functions, keywords, comments, etc...

Regards
Ludvig





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

* bug#48672: outline faces
  2021-05-26 10:49 bug#48672: outline faces ludvig-faddeev
@ 2021-05-26 22:17 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-26 22:17 UTC (permalink / raw)
  To: ludvig-faddeev; +Cc: 48672

ludvig-faddeev@gmx.com writes:

> (defface outline-8
>   '((t :inherit font-lock-string-face))
>   "Level 8.")
>
> It would be appreciated that outline faces have their own faces rather
> than inheriting faces for faces assigned to functions, keywords,
> comments, etc...

They are their own faces -- and inherit from common font-lock faces.  We
use this pattern all over Emacs to define faces, and it allows us to (by
default) have a smaller number of colour combinations to define.

If users want to change the outline faces, they can do so.  It's perhaps
slightly surprising that changing the font-lock faces also results in
changing the outline faces, but I think we can live with that.

Closing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2021-05-26 22:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 10:49 bug#48672: outline faces ludvig-faddeev
2021-05-26 22:17 ` Lars Ingebrigtsen

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