[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/alect-themes 4c25d22 160/269: Update README for Emacs 24.4
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/alect-themes 4c25d22 160/269: Update README for Emacs 24.4 |
Date: |
Thu, 21 Oct 2021 17:59:10 -0400 (EDT) |
branch: elpa/alect-themes
commit 4c25d223bc52c6e4ef5591a5c14411dc3fe4bce1
Author: Alex Kost <alezost@gmail.com>
Commit: Alex Kost <alezost@gmail.com>
Update README for Emacs 24.4
---
README.md | 45 +++++++++++++++++++++++----------------------
1 file changed, 23 insertions(+), 22 deletions(-)
diff --git a/README.md b/README.md
index 366ee9d..607333b 100644
--- a/README.md
+++ b/README.md
@@ -247,30 +247,31 @@ instead of the themed colored buttons (the right picture):
<img src="http://i.imgur.com/66G9VvX.png" title="alect-light - Custom-mode
(proper colors)"/></a>
This happens because Emacs applies default face settings even for a
-themed face. This behaviour is changed in new versions of Emacs: since
-24.4 (not released yet) you will always get pure themes without
-unintended face settings. If you use a previous version of Emacs, you
-can try the following workaround to achieve the new behaviour:
+themed face. This behaviour is changed in the new versions of Emacs:
+since 24.4 you will always get pure themes without unintended face
+settings. If you use a previous version, you can try the following
+workaround to achieve the new behaviour:
```elisp
-(defun face-spec-recalc-new (face frame)
- "Improved version of `face-spec-recalc'."
- (while (get face 'face-alias)
- (setq face (get face 'face-alias)))
- (face-spec-reset-face face frame)
- ;; If FACE is customized or themed, set the custom spec from
- ;; `theme-face' records, which completely replace the defface spec
- ;; rather than inheriting from it.
- (let ((theme-faces (get face 'theme-face)))
- (if theme-faces
- (dolist (spec (reverse theme-faces))
- (face-spec-set-2 face frame (cadr spec)))
- (face-spec-set-2 face frame (face-default-spec face))))
- (face-spec-set-2 face frame (get face 'face-override-spec)))
-
-(defadvice face-spec-recalc (around new-recalc (face frame) activate)
- "Use `face-spec-recalc-new' instead."
- (face-spec-recalc-new face frame))
+(when (version< emacs-version "24.3.50")
+ (defun face-spec-recalc-new (face frame)
+ "Improved version of `face-spec-recalc'."
+ (while (get face 'face-alias)
+ (setq face (get face 'face-alias)))
+ (face-spec-reset-face face frame)
+ ;; If FACE is customized or themed, set the custom spec from
+ ;; `theme-face' records, which completely replace the defface spec
+ ;; rather than inheriting from it.
+ (let ((theme-faces (get face 'theme-face)))
+ (if theme-faces
+ (dolist (spec (reverse theme-faces))
+ (face-spec-set-2 face frame (cadr spec)))
+ (face-spec-set-2 face frame (face-default-spec face))))
+ (face-spec-set-2 face frame (get face 'face-override-spec)))
+
+ (defadvice face-spec-recalc (around new-recalc (face frame) activate)
+ "Use `face-spec-recalc-new' instead."
+ (face-spec-recalc-new face frame)))
```
That version of `face-spec-recalc` (wrapped with advice) is one of the
- [nongnu] elpa/alect-themes b511c45 119/269: Add support for ignoring faces and variables, (continued)
- [nongnu] elpa/alect-themes b511c45 119/269: Add support for ignoring faces and variables, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 2cfa632 129/269: Add `error' face, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 2c18173 155/269: Add auxiliary faces for header-line tabs, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes b9e9da3 159/269: Fix 'gnus-header-from' face, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 6ac9f6a 151/269: Add geiser faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 1b5de07 157/269: Improve guix faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 8812116 156/269: Add support for tabbar-mode, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 5f96e30 142/269: Improve faces for whitespace-mode, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 763c879 161/269: Add 'guix-package-info-heading' face, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes de000ba 150/269: Add some ediff faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 4c25d22 160/269: Update README for Emacs 24.4,
ELPA Syncer <=
- [nongnu] elpa/alect-themes 6e80f5f 164/269: Modify 'ido-only-match' face, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 72ab2dc 145/269: Add `Info-quoted' face, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 561a382 149/269: Add helm faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes c86e334 170/269: Modify 'which-func' face, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 2e240ef 172/269: Remove "alect-themes-pkg.el", ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 87fcb3f 184/269: Add 'alect-author' auxiliary face, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes c232a30 186/269: Add 'alect-key' auxiliary face, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes d92f034 187/269: Add support for 'mu4e', ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 6f72dc2 191/269: Add 'alect-faces' customization group, ELPA Syncer, 2021/10/21
- [nongnu] elpa/alect-themes 69f19b8 195/269: Add support for 'speedbar', ELPA Syncer, 2021/10/21