emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/eglot-inactive-regions 80c1b60009 44/66: Revert "revert to


From: ELPA Syncer
Subject: [nongnu] elpa/eglot-inactive-regions 80c1b60009 44/66: Revert "revert to deprecated eglot functions"
Date: Fri, 6 Dec 2024 06:59:56 -0500 (EST)

branch: elpa/eglot-inactive-regions
commit 80c1b60009d00c75ec4f48abac86d7f2da90d12b
Author: Filippo Argiolas <filippo.argiolas@gmail.com>
Commit: Filippo Argiolas <filippo.argiolas@gmail.com>

    Revert "revert to deprecated eglot functions"
    
    This reverts commit e3d63eeac05208a12a74d36d5af7c9d326e3603b.
---
 clangd-inactive-regions.el | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/clangd-inactive-regions.el b/clangd-inactive-regions.el
index 8e184aaa0b..612d0188af 100644
--- a/clangd-inactive-regions.el
+++ b/clangd-inactive-regions.el
@@ -299,18 +299,18 @@ Useful to update colors after a face or theme change."
   (_server (_method (eql textDocument/inactiveRegions))
            &key regions textDocument &allow-other-keys)
   "Update inactive regions when clangd reports them."
-  (if-let* ((path (expand-file-name (eglot--uri-to-path
-                                     (cl-getf textDocument :uri))))
-            (buffer (find-buffer-visiting path)))
-      (with-current-buffer buffer
-        (when clangd-inactive-regions-mode
-          (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))
-          (clangd-inactive-regions-refresh)))))
+    (if-let* ((path (expand-file-name (eglot-uri-to-path
+                                       (cl-getf textDocument :uri))))
+              (buffer (find-buffer-visiting path)))
+        (with-current-buffer buffer
+          (when clangd-inactive-regions-mode
+            (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))
+            (clangd-inactive-regions-refresh)))))
 
 (provide 'clangd-inactive-regions)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]