[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/fontaine 219b5b0a79 7/7: Add :match for the inherit opt
From: |
ELPA Syncer |
Subject: |
[elpa] externals/fontaine 219b5b0a79 7/7: Add :match for the inherit option in fontaine-presets (see FIXME) |
Date: |
Wed, 21 Feb 2024 03:58:04 -0500 (EST) |
branch: externals/fontaine
commit 219b5b0a79eea7dae42f787b17d8f36f8a1a1e8a
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Add :match for the inherit option in fontaine-presets (see FIXME)
---
fontaine.el | 19 +++++--------------
1 file changed, 5 insertions(+), 14 deletions(-)
diff --git a/fontaine.el b/fontaine.el
index cd3c045ebb..b633e2193b 100644
--- a/fontaine.el
+++ b/fontaine.el
@@ -288,24 +288,15 @@ Caveats or further notes:
(delq 'default fontaine-faces))
((const :tag "Line spacing" :line-spacing) ,(get
'line-spacing 'custom-type))
- ;; FIXME 2023-01-19: Adding the (choice
- ;; ,@(fontaine--inheritable-presets-widget)) instead
- ;; of `symbol' does not have the desired effect
- ;; because it does not re-read `fontaine-presets'.
- ((const :tag "Inherit another preset" :inherit) symbol)))
- :key-type symbol)
+ ((const :tag "Inherit another preset" :inherit) symbol
+ ;; FIXME 2024-02-21: Is this correct? It does not seem to
work...
+ :match (lambda (_widget value)
+ (memq value (delq t (mapcar #'car
fontaine-presets))))))
+ :key-type symbol))
:package-version '(fontaine . "1.1.0")
:group 'fontaine
:link '(info-link "(fontaine) Shared and implicit fallback values for
presets"))
-;; ;; See FIXME above in `fontaine-presets' :type.
-;; ;;
-;; (defun fontaine--inheritable-presets-widget ()
-;; "Return widget with choice among named presets."
-;; (mapcar (lambda (s)
-;; (list 'const s))
-;; (delq t (mapcar #'car fontaine-presets))))
-
(defcustom fontaine-latest-state-file
(locate-user-emacs-file "fontaine-latest-state.eld")
"File to save the latest value of `fontaine-set-preset'.
- [elpa] externals/fontaine updated (debfe17e30 -> 219b5b0a79), ELPA Syncer, 2024/02/21
- [elpa] externals/fontaine 219b5b0a79 7/7: Add :match for the inherit option in fontaine-presets (see FIXME),
ELPA Syncer <=
- [elpa] externals/fontaine 1835207b01 5/7: Fix parentheses in fontaine--get-face-widget, ELPA Syncer, 2024/02/21
- [elpa] externals/fontaine 525be73f36 4/7: Add missing parenthesis, ELPA Syncer, 2024/02/21
- [elpa] externals/fontaine e8d9916066 6/7: Reformat fontaine--get-face-widget, ELPA Syncer, 2024/02/21
- [elpa] externals/fontaine cb608be0a9 2/7: Define widget for font slants, ELPA Syncer, 2024/02/21
- [elpa] externals/fontaine 19b778a32b 1/7: Make nil weight an acceptable fallback value in the Custom UI, ELPA Syncer, 2024/02/21
- [elpa] externals/fontaine 9aeb488a70 3/7: Simplify how faces are added to the fontaine-presets :type; set groundwork for font slant, ELPA Syncer, 2024/02/21