From 4d3349d83791a57cdc01374c82792fff6e1b8a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pit-Claudel?= Date: Sat, 16 May 2020 19:36:43 -0400 Subject: [PATCH] Move tab-bar and tab-line to faces.el (part of bug#41200) These are basic faces, so they need to be defined in faces.el (otherwise (get 'tab-line 'face) returns 0). * lisp/tab-bar.el (tab-bar): * lisp/tab-line.el (tab-line): Move from here... * lisp/faces.el (menu): ...to here. --- lisp/faces.el | 27 +++++++++++++++++++++++++++ lisp/tab-bar.el | 13 ------------- lisp/tab-line.el | 14 -------------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/lisp/faces.el b/lisp/faces.el index bb51797a38..b495fb6e87 100644 --- a/lisp/faces.el +++ b/lisp/faces.el @@ -2755,6 +2755,33 @@ tool-bar :version "21.1" :group 'basic-faces) +(defface tab-line + '((((class color) (min-colors 88)) + :inherit variable-pitch + :height 0.9 + :background "grey85" + :foreground "black") + (((class mono)) + :background "grey") + (t + :inverse-video t)) + "Tab line face." + :version "27.1" + :group 'basic-faces) + +(defface tab-bar + '((((class color) (min-colors 88)) + :inherit variable-pitch + :background "grey85" + :foreground "black") + (((class mono)) + :background "grey") + (t + :inverse-video t)) + "Tab bar face." + :version "27.1" + :group 'basic-faces) + (defface menu '((((type tty)) :inverse-video t) diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index ce6d8c33dd..689481b28b 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -50,19 +50,6 @@ tab-bar-faces :group 'faces :version "27.1") -(defface tab-bar - '((((class color) (min-colors 88)) - :inherit variable-pitch - :background "grey85" - :foreground "black") - (((class mono)) - :background "grey") - (t - :inverse-video t)) - "Tab bar face." - :version "27.1" - :group 'tab-bar-faces) - (defface tab-bar-tab '((default :inherit tab-bar) diff --git a/lisp/tab-line.el b/lisp/tab-line.el index 7a2bdc0b72..50ec40bacf 100644 --- a/lisp/tab-line.el +++ b/lisp/tab-line.el @@ -41,20 +41,6 @@ tab-line-faces :group 'faces :version "27.1") -(defface tab-line - '((((class color) (min-colors 88)) - :inherit variable-pitch - :height 0.9 - :background "grey85" - :foreground "black") - (((class mono)) - :background "grey") - (t - :inverse-video t)) - "Tab line face." - :version "27.1" - :group 'tab-line-faces) - (defface tab-line-tab '((default :inherit tab-line) -- 2.17.1