[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/orderless 582b3a9fa8 031/204: Make all `defface' syntax
From: |
ELPA Syncer |
Subject: |
[elpa] externals/orderless 582b3a9fa8 031/204: Make all `defface' syntax more efficient+readable |
Date: |
Tue, 11 Jan 2022 12:58:15 -0500 (EST) |
branch: externals/orderless
commit 582b3a9fa819d2d31b2010d3e76324b8dab70f3d
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make all `defface' syntax more efficient+readable
These changes are informed by the docstring of `defface'. Specifically:
As a special exception, in the first element of SPEC, DISPLAY can be
the special value ‘default’. Then the ATTS in that element act as
defaults for all the following elements.
`M-x find-library faces' offers some examples that follow this
pattern, such as `error'.
---
orderless.el | 36 ++++++++++++++++--------------------
1 file changed, 16 insertions(+), 20 deletions(-)
diff --git a/orderless.el b/orderless.el
index 9e0ca24b08..f082ba6035 100644
--- a/orderless.el
+++ b/orderless.el
@@ -52,38 +52,34 @@
:group 'completion)
(defface orderless-match-face-0
- '((((class color) (min-colors 88) (background dark))
- (:foreground "#72a4ff" :weight bold))
- (((class color) (min-colors 88) (background light))
- (:foreground "#223fbf" :weight bold))
- (t :foreground "blue" :weight bold))
+ '((default :weight bold)
+ (((class color) (min-colors 88) (background dark)) :foreground "#72a4ff")
+ (((class color) (min-colors 88) (background light)) :foreground "#223fbf")
+ (t :foreground "blue"))
"Face for matches of components numbered 0 mod 4."
:group 'orderless)
(defface orderless-match-face-1
- '((((class color) (min-colors 88) (background dark))
- (:foreground "#ed92f8" :weight bold))
- (((class color) (min-colors 88) (background light))
- (:foreground "#8f0075" :weight bold))
- (t :foreground "magenta" :weight bold))
+ '((default :weight bold)
+ (((class color) (min-colors 88) (background dark)) :foreground "#ed92f8")
+ (((class color) (min-colors 88) (background light)) :foreground "#8f0075")
+ (t :foreground "magenta"))
"Face for matches of components numbered 1 mod 4."
:group 'orderless)
(defface orderless-match-face-2
- '((((class color) (min-colors 88) (background dark))
- (:foreground "#90d800" :weight bold))
- (((class color) (min-colors 88) (background light))
- (:foreground "#145a00" :weight bold))
- (t :foreground "green" :weight bold))
+ '((default :weight bold)
+ (((class color) (min-colors 88) (background dark)) :foreground "#90d800")
+ (((class color) (min-colors 88) (background light)) :foreground "#145a00")
+ (t :foreground "green"))
"Face for matches of components numbered 2 mod 4."
:group 'orderless)
(defface orderless-match-face-3
- '((((class color) (min-colors 88) (background dark))
- (:foreground "#f0ce43" :weight bold))
- (((class color) (min-colors 88) (background light))
- (:foreground "#804000" :weight bold))
- (t :foreground "yellow" :weight bold))
+ '((default :weight bold)
+ (((class color) (min-colors 88) (background dark)) :foreground "#f0ce43")
+ (((class color) (min-colors 88) (background light)) :foreground "#804000")
+ (t :foreground "yellow"))
"Face for matches of components numbered 3 mod 4."
:group 'orderless)
- [elpa] externals/orderless 43896f3e10 140/204: Accidentally omitted the overview! Bring it back, (continued)
- [elpa] externals/orderless 43896f3e10 140/204: Accidentally omitted the overview! Bring it back, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless b059c15911 052/204: Make orderless-prefixes more like partial-completion, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless dc3f8da022 076/204: Avoid other cl-pushnes in an autoload, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless a11302737e 018/204: Keep split-string from modifying global match data, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless c9ae65ea16 023/204: Highlight component matches in one of four faces, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 044fac0859 029/204: Revert "Better match face defaults (kindly contributed by Protesilaos)", ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 2813ffb2b1 039/204: Optimization: check if first component is string literal, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 25266dfc60 033/204: Update README.org, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 39202177e1 040/204: Undo previous optimization as it is invalid in general :(, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless ecddc3da2e 045/204: Un-nest definition of orderless--highlight-matches, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 582b3a9fa8 031/204: Make all `defface' syntax more efficient+readable,
ELPA Syncer <=
- [elpa] externals/orderless c51037b8ef 024/204: Add custom variable for component separator regexp, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 9856eeed32 047/204: Mention prefixes style in overview, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless cacd856f9a 041/204: Leverage completion-regexp-list: simplify code, increase speed!, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 3005cf8ee9 077/204: Merge pull request #12 from noctuid/feature/strict-initialism, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless f8efbdae4d 087/204: Document style dispatches in the README, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless e16fc5ddb1 099/204: Ido has progressive completion too!, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless dc1a31b5fc 098/204: Merge remote-tracking branch 'github/master', ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 306fb267f5 100/204: Mark orderless-temporarily-change-separator obsolete (#15), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 09f4c74280 105/204: Update dispatchers documentation, add transient vars, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless bc9e48216e 120/204: Add option for "smart case" matching, ELPA Syncer, 2022/01/11