[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/kind-icon 9a20879 30/51: Use widget-value in customize
From: |
ELPA Syncer |
Subject: |
[elpa] externals/kind-icon 9a20879 30/51: Use widget-value in customize preview |
Date: |
Wed, 17 Nov 2021 15:57:44 -0500 (EST) |
branch: externals/kind-icon
commit 9a20879139a8f5497e86173eaf950430665c1d74
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>
Use widget-value in customize preview
---
kind-icon.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/kind-icon.el b/kind-icon.el
index 7716211..7d8439c 100644
--- a/kind-icon.el
+++ b/kind-icon.el
@@ -153,10 +153,10 @@ otherwise defaulting to the frame background color."
See `svg-lib-style-compute-default'."
:type 'plist)
-(defun kind-icon--preview (_w _e)
- (goto-char (field-end))
- (let ((icon (buffer-substring (point) (field-end))))
- (message "%S looks like: %s" icon
+(defun kind-icon--preview (widget _e)
+ (let* ((icon (widget-value widget)))
+ (message "%S [%s] looks like: %s" icon
+ (pp-to-string (widget- widget))
(propertize "**" 'display
(apply #'svg-lib-icon
icon nil kind-icon-default-style)))))
- [elpa] externals/kind-icon 4b066c6 03/51: Rename and remove corfu dependency, (continued)
- [elpa] externals/kind-icon 4b066c6 03/51: Rename and remove corfu dependency, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon 7f9ba65 04/51: Initial kind-prefix import, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon f96c6a4 08/51: Add provide, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon 84e6654 10/51: doc cleanup, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon 3b25b8d 27/51: Update README.md, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon ffa75e7 21/51: Update README.md, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon 01d76af 07/51: Make kind-prefix-reset-cache a command, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon eaeea12 12/51: Doc, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon 3b0c9c3 11/51: Renamed kind-icon, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon 366232c 36/51: Quiet svg-lib-icon warning, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon 9a20879 30/51: Use widget-value in customize preview,
ELPA Syncer <=
- [elpa] externals/kind-icon 9098597 33/51: Update kinds to match LSP spec, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon fcfe9ea 14/51: kind-icon-formatted: 3 char-width icon/centered 1 or 2 char text, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon 8d6fa99 46/51: Update README.md, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon b88e809 48/51: kind-formatter -> margin-formatters, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon f6de892 37/51: Remove add-variable-watcher in favor of custom :set, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon 94ff0ac 13/51: customize interface for mappings, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon cfa3d73 38/51: Guard against network or other icon retrieval issues (text fallback), ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon ba0f94e 17/51: Re-enable mapping customization preview button, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon 0921fe2 35/51: Separate kind-icon--cache, and return ?? when kind missing, ELPA Syncer, 2021/11/17
- [elpa] externals/kind-icon 0d92763 31/51: add kinds constructor, event, reference, typeparameter, ELPA Syncer, 2021/11/17