[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/eglot-inactive-regions 2736b46310 10/66: Update dependenci
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/eglot-inactive-regions 2736b46310 10/66: Update dependencies and some minor changes |
Date: |
Fri, 6 Dec 2024 06:59:51 -0500 (EST) |
branch: elpa/eglot-inactive-regions
commit 2736b46310d9724a08cc98e03152d3e84f25684d
Author: Filippo Argiolas <filippo.argiolas@gmail.com>
Commit: Filippo Argiolas <filippo.argiolas@gmail.com>
Update dependencies and some minor changes
---
clangd-inactive-regions.el | 36 ++++++++++++++++--------------------
1 file changed, 16 insertions(+), 20 deletions(-)
diff --git a/clangd-inactive-regions.el b/clangd-inactive-regions.el
index ccb123c208..efff2d45cb 100644
--- a/clangd-inactive-regions.el
+++ b/clangd-inactive-regions.el
@@ -31,8 +31,10 @@
;;; Code:
-(require 'eglot)
(require 'cl-lib)
+(require 'eglot)
+(require 'color)
+(require 'font-lock)
(defvar clangd-inactive-regions-opacity 0.55
"Blending factor for the `darken-foreground' method. Used to mix
@@ -52,9 +54,6 @@ Allowed methods:
- shade-background: shade background color
- shadow: apply shadow face.")
-(defvar-local clangd-inactive-regions-overlays '())
-(defvar-local clangd-inactive-regions-ranges '())
-
(defface clangd-inactive-regions-shadow-face
'((t (:inherit shadow)))
"Face used to inactive code with shadow method.")
@@ -63,6 +62,9 @@ Allowed methods:
'((t (:extend t)))
"Face used to inactive code with shade-background method.")
+(defvar-local clangd-inactive-regions--overlays '())
+(defvar-local clangd-inactive-regions--ranges '())
+
(define-minor-mode clangd-inactive-regions-mode
""
:global nil
@@ -88,7 +90,7 @@ Allowed methods:
(defun clangd-inactive-regions-cleanup ()
"Clean up inactive regions."
- (mapc #'delete-overlay clangd-inactive-regions-overlays)
+ (mapc #'delete-overlay clangd-inactive-regions--overlays)
(with-silent-modifications
(remove-text-properties (point-min) (point-max) '(ecir-inactive nil)))
(font-lock-flush))
@@ -145,15 +147,10 @@ Allowed methods:
(let* ((fg (face-foreground cur-face nil 'default))
(bg (face-background cur-face nil 'default))
- (clangd-inactive-fg
- (clangd-inactive-regions--color-blend
- fg bg clangd-inactive-regions-opacity))
- (clangd-inactive-face-name
- (concat (face-name cur-face) "-clangd-inactive"))
+ (clangd-inactive-fg
(clangd-inactive-regions--color-blend fg bg clangd-inactive-regions-opacity))
+ (clangd-inactive-face-name (concat (face-name cur-face)
"-clangd-inactive"))
(clangd-inactive-face (intern
clangd-inactive-face-name))
- (clangd-inactive-doc
- (concat (face-documentation cur-face)
- " (clangd inactive region darkened face)")))
+ (clangd-inactive-doc (concat (face-documentation
cur-face) " (clangd inactive region darkened face)")))
(unless (facep clangd-inactive-face)
(eval `(defface ,clangd-inactive-face '((t nil))
,clangd-inactive-doc)))
@@ -171,13 +168,12 @@ Allowed methods:
face or theme change."
(clangd-inactive-regions-cleanup)
(when (string= clangd-inactive-regions-method "shade-background")
- (set-face-background
- 'clangd-inactive-regions-shade-face
+ (set-face-background 'clangd-inactive-regions-shade-face
(clangd-inactive-regions--color-blend
(face-background 'default)
(face-foreground 'default)
clangd-inactive-regions-shading)))
- (let ((ranges (copy-tree clangd-inactive-regions-ranges)))
+ (let ((ranges (copy-tree clangd-inactive-regions--ranges)))
(dolist (range ranges)
(let ((beg (car range))
(end (cdr range)))
@@ -189,11 +185,11 @@ Allowed methods:
((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)))
+ (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)))
+ (push ov clangd-inactive-regions--overlays)))
)
))))
@@ -215,12 +211,12 @@ Allowed methods:
(buffer (find-buffer-visiting path)))
(with-current-buffer buffer
(when clangd-inactive-regions-mode
- (setq clangd-inactive-regions-ranges '())
+ (setq clangd-inactive-regions--ranges '())
(cl-loop
for r across regions
for (beg . end) = (eglot--range-region r)
do
- (push (cons beg end) clangd-inactive-regions-ranges))
+ (push (cons beg end) clangd-inactive-regions--ranges))
(clangd-inactive-regions-refresh)))))
(provide 'clangd-inactive-regions)
- [nongnu] elpa/eglot-inactive-regions 3d3280c415 48/66: rename to eglot-inactive-regions.el, (continued)
- [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
- [nongnu] elpa/eglot-inactive-regions b81249c566 23/66: Update README with caveats section, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 4b01aba42f 29/66: Fix package-lint warnings, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 2346944d4b 05/66: Add clean up and refresh functions, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 3ba8e528f1 06/66: allow to change opacity on the fly, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 10f1772888 09/66: Drop eglot from the name, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 2736b46310 10/66: Update dependencies and some minor changes,
ELPA Syncer <=
- [nongnu] elpa/eglot-inactive-regions 15d6db2d6d 13/66: Add some helper methods to set UI options, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions ae67afac14 12/66: Use overlays instead of changing text properties, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 343abb100c 26/66: Update README.md, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions e25016ddb8 22/66: Do not flush all inactive regions, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions d021d96fef 25/66: Update screenshots, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 52d2f80ccb 28/66: Tentatively limit global fontification hook to classic c modes, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 4ae3491ae3 39/66: doc and function names cleanup, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 21c26bc4e2 40/66: use built-in color to hex converter, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 4b698aaeb8 42/66: always enable inactiveRegions caps, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 6ad3ce4337 47/66: experimental support for ccls skippedRanges, ELPA Syncer, 2024/12/06