[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/eglot-inactive-regions 4f5ab3203c 17/66: No need to copy-t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/eglot-inactive-regions 4f5ab3203c 17/66: No need to copy-tree ranges |
Date: |
Fri, 6 Dec 2024 06:59:52 -0500 (EST) |
branch: elpa/eglot-inactive-regions
commit 4f5ab3203c24ef6484241a109daeef6cd1e8d7ed
Author: Filippo Argiolas <filippo.argiolas@gmail.com>
Commit: Filippo Argiolas <filippo.argiolas@gmail.com>
No need to copy-tree ranges
Stale code from an old revision where I was deleting ranges before
iterating and needed to iterate on a copy
---
clangd-inactive-regions.el | 43 ++++++++++++++++++++-----------------------
1 file changed, 20 insertions(+), 23 deletions(-)
diff --git a/clangd-inactive-regions.el b/clangd-inactive-regions.el
index 9e1eae169a..ede62702ae 100644
--- a/clangd-inactive-regions.el
+++ b/clangd-inactive-regions.el
@@ -207,29 +207,26 @@ foreground colors, if the face doesn't exist yet create
it."
(clangd-inactive-regions-cleanup)
(when (string= clangd-inactive-regions-method "shade-background")
(set-face-background 'clangd-inactive-regions-shade-face
- (clangd-inactive-regions--color-blend
- (face-foreground 'default)
- (face-background 'default)
- clangd-inactive-regions-shading)))
- (let ((ranges (copy-tree clangd-inactive-regions--ranges)))
- (dolist (range ranges)
- (let ((beg (car range))
- (end (cdr range)))
- (cond
- ((string= clangd-inactive-regions-method "darken-foreground")
- (with-silent-modifications
- (put-text-property beg end 'clangd-inactive-region t))
- (font-lock-flush beg end))
- ((string= clangd-inactive-regions-method "shadow")
- (let ((ov (make-overlay beg end)))
- (overlay-put ov 'face 'clangd-inactive-regions-shadow-face)
- (push ov clangd-inactive-regions--overlays)))
- ((string= clangd-inactive-regions-method "shade-background")
- (let ((ov (make-overlay beg (1+ end))))
- (overlay-put ov 'face 'clangd-inactive-regions-shade-face)
- (push ov clangd-inactive-regions--overlays)))
- )
- ))))
+ (clangd-inactive-regions--color-blend
+ (face-foreground 'default)
+ (face-background 'default)
+ clangd-inactive-regions-shading)))
+ (dolist (range clangd-inactive-regions--ranges)
+ (let ((beg (car range))
+ (end (cdr range)))
+ (cond
+ ((string= clangd-inactive-regions-method "darken-foreground")
+ (with-silent-modifications
+ (put-text-property beg end 'clangd-inactive-region t))
+ (font-lock-flush beg end))
+ ((string= clangd-inactive-regions-method "shadow")
+ (let ((ov (make-overlay beg end)))
+ (overlay-put ov 'face 'clangd-inactive-regions-shadow-face)
+ (push ov clangd-inactive-regions--overlays)))
+ ((string= clangd-inactive-regions-method "shade-background")
+ (let ((ov (make-overlay beg (1+ end))))
+ (overlay-put ov 'face 'clangd-inactive-regions-shade-face)
+ (push ov clangd-inactive-regions--overlays)))))))
(cl-defmethod eglot-client-capabilities :around (server)
- [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, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 4f5ab3203c 17/66: No need to copy-tree ranges,
ELPA Syncer <=
- [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
- [nongnu] elpa/eglot-inactive-regions e7be73b354 15/66: Invert shading factor, ELPA Syncer, 2024/12/06