[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/eglot-inactive-regions 437d09e552 53/66: revert to depreca
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/eglot-inactive-regions 437d09e552 53/66: revert to deprecated eglot functions |
Date: |
Fri, 6 Dec 2024 06:59:57 -0500 (EST) |
branch: elpa/eglot-inactive-regions
commit 437d09e5526ff25eccb0b161b38a967039740264
Author: Filippo Argiolas <filippo.argiolas@gmail.com>
Commit: Filippo Argiolas <filippo.argiolas@gmail.com>
revert to deprecated eglot functions
keep using private eglot obsolete aliases for 29.1 backwards compat
---
eglot-inactive-regions.el | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/eglot-inactive-regions.el b/eglot-inactive-regions.el
index 20b230b6b6..2e3dd984c9 100644
--- a/eglot-inactive-regions.el
+++ b/eglot-inactive-regions.el
@@ -49,12 +49,13 @@
(require 'color)
(require 'font-lock)
-(defgroup inactive-regions nil "Eglot Inactive Regions."
+(defgroup inactive-regions nil
+ "Eglot Inactive Regions."
:group 'tools
:prefix "eglot-inactive-regions-")
(defun eglot-inactive-regions--set-and-refresh (sym val)
- "Set custom variable SYM to value VAL trigger a refresh of all active
buffers."
+ "Set custom variable SYM to value VAL and trigger a refresh of all active
buffers."
(set sym val)
(when (fboundp 'eglot-inactive-regions-refresh-all)
(eglot-inactive-regions-refresh-all)))
@@ -77,7 +78,7 @@ background face. The higher the less visible the shading
will be."
:group 'inactive-regions)
(defcustom eglot-inactive-regions-method 'darken-foreground
- "Shading method to apply to the inactive code regions.
+ "Shading method to apply to the inactive code regions.
Allowed methods:
- darken-foreground: dim foreground color
- shade-background: shade background color
@@ -159,9 +160,9 @@ factor."
(to-rgb (color-name-to-rgb to-color))
(alpha (min 1.0 (max 0.0 alpha))))
(if (and from-rgb to-rgb)
- (apply 'color-rgb-to-hex
- (cl-mapcar #'(lambda (a b) (+ (* a alpha) (* b (- 1.0 alpha))))
- from-rgb to-rgb))
+ (apply 'color-rgb-to-hex
+ (cl-mapcar #'(lambda (a b) (+ (* a alpha) (* b (- 1.0 alpha))))
+ from-rgb to-rgb))
'unspecified)))
(defun eglot-inactive-regions-cleanup ()
@@ -321,7 +322,7 @@ Useful to update colors after a face or theme change."
(defun eglot-inactive-regions--handle-notification (uri regions)
"Update inactive REGIONS for the buffer corresponding to URI."
- (if-let* ((path (expand-file-name (eglot-uri-to-path uri)))
+ (if-let* ((path (expand-file-name (eglot--uri-to-path uri)))
(buffer (find-buffer-visiting path)))
(with-current-buffer buffer
(when eglot-inactive-regions-mode
@@ -330,7 +331,7 @@ Useful to update colors after a face or theme change."
(setq eglot-inactive-regions--ranges '())
(cl-loop
for r across regions
- for (beg . end) = (eglot-range-region r)
+ for (beg . end) = (eglot--range-region r)
do
(push (cons beg end) eglot-inactive-regions--ranges))
(eglot-inactive-regions-refresh)))))
- [nongnu] elpa/eglot-inactive-regions 6ad3ce4337 47/66: experimental support for ccls skippedRanges, (continued)
- [nongnu] elpa/eglot-inactive-regions 6ad3ce4337 47/66: experimental support for ccls skippedRanges, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions bdf568d9ff 63/66: suppress warnings for obsolete eglot functions, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 20cacf2b2d 16/66: Warn if shading method is unknown, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 879c5cf032 20/66: Advice default fontify region function instead of local one, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions a17388e4b4 30/66: Update docs and comments, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 8f341e9ad7 32/66: Minor cosmetics, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 9f439654dc 27/66: Only run our fontification hook if our mode is enabled, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 42f37d0970 33/66: update README.md, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 5d1580f32b 38/66: fix docs and bump version, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions cd53f3244a 56/66: rename darken-foreground dimmed faces, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 437d09e552 53/66: revert to deprecated eglot functions,
ELPA Syncer <=
- [nongnu] elpa/eglot-inactive-regions bf51947630 55/66: prefer when-let if no else clause is needed, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 193827fdeb 58/66: missing clangd references after rename, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 5c20f58422 60/66: clean up after review on emacs-devel, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 80c1b60009 44/66: Revert "revert to deprecated eglot functions", ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 26f3b61b45 51/66: readme update, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions badb4e403a 46/66: cleanup on major mode changes, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions a810593308 59/66: bump version to 0.6, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 7e4eb584e0 61/66: fallback to deprecated functions, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 6ac373dfd0 62/66: bump version after emacs-devel review, ELPA Syncer, 2024/12/06
- [nongnu] elpa/eglot-inactive-regions 3569bd5dc7 24/66: Properly enable/clean up state on minor mode toggle, ELPA Syncer, 2024/12/06