[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pulsar 3b7ecc74ff 10/15: Avoid repetition in the user o
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pulsar 3b7ecc74ff 10/15: Avoid repetition in the user options for faces |
Date: |
Tue, 26 Nov 2024 03:58:51 -0500 (EST) |
branch: externals/pulsar
commit 3b7ecc74ffc7abdcdd77bf5c3f6815d00e1ce1fa
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Avoid repetition in the user options for faces
---
pulsar.el | 57 ++++++++++++++++++++++-----------------------------------
1 file changed, 22 insertions(+), 35 deletions(-)
diff --git a/pulsar.el b/pulsar.el
index 6014b73e02..152c461f73 100644
--- a/pulsar.el
+++ b/pulsar.el
@@ -188,6 +188,24 @@ accordingly."
:type 'boolean
:group 'pulsar)
+(defconst pulsar--face-choice-widget
+ '(radio :tag "Select another face"
+ (face :tag "Generic pulse.el face" pulsar-generic)
+ (face :tag "Red style" pulsar-red)
+ (face :tag "Green style" pulsar-green)
+ (face :tag "Yellow style" pulsar-yellow)
+ (face :tag "Blue style" pulsar-blue)
+ (face :tag "Magenta style" pulsar-magenta)
+ (face :tag "Cyan style" pulsar-cyan)
+ (face :tag "Other face (must have a background)"))
+ "Widget for `defcustom' type to select a face.")
+
+(defconst pulsar--face-with-default-and-choice-widget
+ `(choice :tag "Choose a face"
+ (variable :tag "Use the `pulsar-face'" pulsar-face)
+ ,pulsar--face-choice-widget)
+ "Like `pulsar--face-choice-widget' plus the `pulsar-face' option.")
+
(defcustom pulsar-face 'pulsar-generic
"Face of the regular pulse line effect (`pulsar-pulse-line').
The default is `pulsar-generic' which reuses the standard face
@@ -195,56 +213,25 @@ from the underlying pulse library. Users can select one
among
`pulsar-red', `pulsar-green', `pulsar-yellow', `pulsar-blue',
`pulsar-magenta', `pulsar-cyan', or any other face that has a
background attribute."
- :type '(radio (face :tag "Generic pulse.el face" pulsar-generic)
- (face :tag "Red style" pulsar-red)
- (face :tag "Green style" pulsar-green)
- (face :tag "Yellow style" pulsar-yellow)
- (face :tag "Blue style" pulsar-blue)
- (face :tag "Magenta style" pulsar-magenta)
- (face :tag "Cyan style" pulsar-cyan)
- (face :tag "Other face (must have a background)"))
+ :type pulsar--face-choice-widget
:package-version '(pulsar . "0.2.0")
:group 'pulsar)
(defcustom pulsar-highlight-face 'pulsar-face
"Face used in `pulsar-highlight-line'."
- :type '(choice (variable pulsar-face)
- (radio (face :tag "Generic pulse.el face" pulsar-generic)
- (face :tag "Red style" pulsar-red)
- (face :tag "Green style" pulsar-green)
- (face :tag "Yellow style" pulsar-yellow)
- (face :tag "Blue style" pulsar-blue)
- (face :tag "Magenta style" pulsar-magenta)
- (face :tag "Cyan style" pulsar-cyan)
- (face :tag "Other face (must have a background)")))
+ :type pulsar--face-with-default-and-choice-widget
:package-version '(pulsar . "0.3.0")
:group 'pulsar)
(defcustom pulsar-region-face 'pulsar-face
"Face to indicate non-destructive region changes."
- :type '(choice (variable pulsar-face)
- (radio (face :tag "Generic pulse.el face" pulsar-generic)
- (face :tag "Red style" pulsar-red)
- (face :tag "Green style" pulsar-green)
- (face :tag "Yellow style" pulsar-yellow)
- (face :tag "Blue style" pulsar-blue)
- (face :tag "Magenta style" pulsar-magenta)
- (face :tag "Cyan style" pulsar-cyan)
- (face :tag "Other face (must have a background)")))
+ :type pulsar--face-with-default-and-choice-widget
:package-version '(pulsar . "1.2.0")
:group 'pulsar)
(defcustom pulsar-region-change-face 'pulsar-face
"Face to indicate destructive region changes."
- :type '(choice (variable pulsar-face)
- (radio (face :tag "Generic pulse.el face" pulsar-generic)
- (face :tag "Red style" pulsar-red)
- (face :tag "Green style" pulsar-green)
- (face :tag "Yellow style" pulsar-yellow)
- (face :tag "Blue style" pulsar-blue)
- (face :tag "Magenta style" pulsar-magenta)
- (face :tag "Cyan style" pulsar-cyan)
- (face :tag "Other face (must have a background)")))
+ :type pulsar--face-with-default-and-choice-widget
:package-version '(pulsar . "1.2.0")
:group 'pulsar)
- [elpa] externals/pulsar updated (e231995122 -> c48b6abcdc), ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar 1a547adcb7 02/15: Refined pulsar-pulse-on-window-change, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar 0786efd0d3 06/15: Add pulsar-window-change-face pulsar-region-change-face misc items, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar e35f9d7677 01/15: Avoid double pulse in pulsar--pulse-on-window-change. Refine pulsar-pulse-region., ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar c93f6a3fb1 04/15: Continued...now includes after-change-functions and refined pulsing., ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar ac3d050113 08/15: Merge pull request #25 from shipmints/region-window-change-redux, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar d9eb079dda 07/15: Add kill-visual-line to pulsar-pulse-region-functions, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar 7263aaf819 09/15: Update acknowledgements to mention Abdelhak Bougouffa, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar 3b7ecc74ff 10/15: Avoid repetition in the user options for faces,
ELPA Syncer <=
- [elpa] externals/pulsar 67422e8d32 11/15: Make pulsar-window-change-face do the same as in commit 3b7ecc7, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar b6bbe57d06 14/15: Tweak the doc strings of the functions that deal with aliases, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar e81d0e26cd 12/15: Tweak a comment about the goggles package, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar 07122a68a2 13/15: Tweak the doc string of pulsar--after-change-function, ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar 8d24da2421 03/15: Further refine region pulse and window change pulse., ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar c5d528dc91 05/15: Put back the line pulse this helps for backward-kill-word, for example., ELPA Syncer, 2024/11/26
- [elpa] externals/pulsar c48b6abcdc 15/15: Refactor pulsar-resolve-function-aliases to be easier to read, ELPA Syncer, 2024/11/26