diff options
| author | Richard M. Stallman | 1993-05-16 15:41:50 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-16 15:41:50 +0000 |
| commit | ebea97d856c869a5e7930964f7c0dfeccee41145 (patch) | |
| tree | 9f6bf6e91d8447f80bd690687c241e8c0e31546c | |
| parent | 6be72a0b35686edb52480f8b67136fc6a4857e45 (diff) | |
| download | emacs-ebea97d856c869a5e7930964f7c0dfeccee41145.tar.gz emacs-ebea97d856c869a5e7930964f7c0dfeccee41145.zip | |
(face-initialize): Do make the modeline face.
(x-initialize-frame-faces): Explicitly invert `modeline' face.
(x-create-frame-with-faces): Simplify; do nothing special
with `default' or `modeline' face.
| -rw-r--r-- | lisp/faces.el | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index 0c1e4180ad9..40408685355 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -601,7 +601,7 @@ If NOERROR is non-nil, return nil on failure." | |||
| 601 | 601 | ||
| 602 | (defun face-initialize () | 602 | (defun face-initialize () |
| 603 | (make-face 'default) | 603 | (make-face 'default) |
| 604 | ;;; (make-face 'modeline) | 604 | (make-face 'modeline) |
| 605 | (make-face 'highlight) | 605 | (make-face 'highlight) |
| 606 | ;; | 606 | ;; |
| 607 | ;; These aren't really special in any way, but they're nice to have around. | 607 | ;; These aren't really special in any way, but they're nice to have around. |
| @@ -687,6 +687,9 @@ If NOERROR is non-nil, return nil on failure." | |||
| 687 | (set-face-background 'region "gray" frame) | 687 | (set-face-background 'region "gray" frame) |
| 688 | (error (invert-face 'region frame)))) | 688 | (error (invert-face 'region frame)))) |
| 689 | 689 | ||
| 690 | (or (face-differs-from-default-p 'modeline frame) | ||
| 691 | (invert-face 'modeline frame)) | ||
| 692 | |||
| 690 | (or (face-differs-from-default-p 'secondary-selection frame) | 693 | (or (face-differs-from-default-p 'secondary-selection frame) |
| 691 | (condition-case () | 694 | (condition-case () |
| 692 | (condition-case () | 695 | (condition-case () |
| @@ -718,8 +721,7 @@ If NOERROR is non-nil, return nil on failure." | |||
| 718 | (x-create-frame parameters) | 721 | (x-create-frame parameters) |
| 719 | (let* ((frame (x-create-frame parameters)) | 722 | (let* ((frame (x-create-frame parameters)) |
| 720 | (faces (copy-alist global-face-data)) | 723 | (faces (copy-alist global-face-data)) |
| 721 | (rest faces) | 724 | (rest faces)) |
| 722 | default modeline) | ||
| 723 | (set-frame-face-alist frame faces) | 725 | (set-frame-face-alist frame faces) |
| 724 | 726 | ||
| 725 | ;; Copy the vectors that represent the faces. | 727 | ;; Copy the vectors that represent the faces. |
| @@ -729,20 +731,8 @@ If NOERROR is non-nil, return nil on failure." | |||
| 729 | (make-face-x-resource-internal (cdr (car rest)) frame t) | 731 | (make-face-x-resource-internal (cdr (car rest)) frame t) |
| 730 | (setq rest (cdr rest))) | 732 | (setq rest (cdr rest))) |
| 731 | 733 | ||
| 732 | (setq default (internal-get-face 'default frame) | ||
| 733 | modeline (internal-get-face 'modeline frame)) | ||
| 734 | |||
| 735 | (x-initialize-frame-faces frame) | 734 | (x-initialize-frame-faces frame) |
| 736 | 735 | ||
| 737 | ;;; ;; Make sure the modeline face is fully qualified. | ||
| 738 | ;;; (if (and (not (face-font modeline frame)) (face-font default frame)) | ||
| 739 | ;;; (set-face-font modeline (face-font default frame) frame)) | ||
| 740 | ;;; (if (and (not (face-background modeline frame)) | ||
| 741 | ;;; (face-background default frame)) | ||
| 742 | ;;; (set-face-background modeline (face-background default frame) frame)) | ||
| 743 | ;;; (if (and (not (face-foreground modeline frame)) | ||
| 744 | ;;; (face-foreground default frame)) | ||
| 745 | ;;; (set-face-foreground modeline (face-foreground default frame) frame)) | ||
| 746 | frame))) | 736 | frame))) |
| 747 | 737 | ||
| 748 | ;; If we are already using x-window frames, initialize faces for them. | 738 | ;; If we are already using x-window frames, initialize faces for them. |