[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/eglot-inactive-regions 9dba1b222d 14/66: Check for valid r
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/eglot-inactive-regions 9dba1b222d 14/66: Check for valid ranges when setting parameters |
Date: |
Fri, 6 Dec 2024 06:59:51 -0500 (EST) |
branch: elpa/eglot-inactive-regions
commit 9dba1b222d50279ba3234548b3866e732304ac3c
Author: Filippo Argiolas <filippo.argiolas@gmail.com>
Commit: Filippo Argiolas <filippo.argiolas@gmail.com>
Check for valid ranges when setting parameters
---
clangd-inactive-regions.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/clangd-inactive-regions.el b/clangd-inactive-regions.el
index dfcc8f8e82..090e959ffc 100644
--- a/clangd-inactive-regions.el
+++ b/clangd-inactive-regions.el
@@ -89,7 +89,9 @@ Allowed methods:
(defun clangd-inactive-regions-set-opacity (opacity)
"Interactively set a new opacity value for inactive regions when
`darken-foreground' method is enabled."
- (interactive "nNew inactive region foreground color opacity: ")
+ (interactive "nNew inactive region foreground color opacity [0-1.0]: ")
+ (unless (and (>= opacity 0.0) (< opacity 1.0))
+ (error "Opacity should be between 0.0 and 1.0"))
(setq clangd-inactive-regions-opacity opacity)
(when (clangd-inactive-regions-mode)
(clangd-inactive-regions-refresh)))
@@ -97,7 +99,9 @@ Allowed methods:
(defun clangd-inactive-regions-set-shading (shading)
"Interactively set a new shading value for inactive regions when
`shade-background' method is enabled."
- (interactive "nNew inactive region background color shading: ")
+ (interactive "nNew inactive region background color shading [0-1.0]: ")
+ (unless (and (>= shading 0.0) (< shading 1.0))
+ (error "Shading factor should be between 0.0 and 1.0"))
(setq clangd-inactive-regions-shading shading)
(when (clangd-inactive-regions-mode)
(clangd-inactive-regions-refresh)))
- [nongnu] branch elpa/eglot-inactive-regions created (now 2c83a3230d), ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions f47d728c65 11/66: Stage basic README, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 65fbd7a7a1 08/66: Support for different shading methods to render inactive regions, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions ea8da46342 01/66: Initial commit, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 9dba1b222d 14/66: Check for valid ranges when setting parameters,
ELPA Syncer <=
- [nongnu] elpa/eglot-inactive-regions 4f5ab3203c 17/66: No need to copy-tree ranges, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 5528f4d3e1 03/66: fix gpl preamble, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 4fc6480bed 18/66: Move forward if forward-same-syntax does not, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 2e52c1a10a 19/66: Use my own forward function, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 3876101626 31/66: Update README., ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions b0ade8c12e 21/66: Handle face list properties, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 3d3280c415 48/66: rename to eglot-inactive-regions.el, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 475864a1a3 65/66: exclude screenshots from the tarball, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 17c9db32d3 02/66: initial commit, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions e15124a898 07/66: Rewrite the darkening logic using fontify-region, ELPA Syncer, 2024/12/06