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

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

[nongnu] elpa/eglot-inactive-regions bdf568d9ff 63/66: suppress warnings


From: ELPA Syncer
Subject: [nongnu] elpa/eglot-inactive-regions bdf568d9ff 63/66: suppress warnings for obsolete eglot functions
Date: Fri, 6 Dec 2024 06:59:59 -0500 (EST)

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

    suppress warnings for obsolete eglot functions
---
 eglot-inactive-regions.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/eglot-inactive-regions.el b/eglot-inactive-regions.el
index f48cc2c572..64ba687f0b 100644
--- a/eglot-inactive-regions.el
+++ b/eglot-inactive-regions.el
@@ -56,7 +56,7 @@
   :prefix "eglot-inactive-regions-")
 
 (defun eglot-inactive-regions--set-and-refresh (sym val)
-  "Set custom variable SYM to value VAL and trigger a refresh of all active 
buffers."
+  "Set custom variable SYM to value VAL and refresh of all active buffers."
   (set-default sym val)
   (when (fboundp 'eglot-inactive-regions-refresh-all)
     (eglot-inactive-regions-refresh-all)))
@@ -301,13 +301,15 @@ Useful to update colors after a face or theme change."
   "Fallback to deprecated uri-to-path URI if new function is not available."
   (if (fboundp 'eglot-uri-to-path)
       (eglot-uri-to-path uri)
-    (eglot--uri-to-path uri)))
+    (with-suppressed-warnings ((obsolete eglot--uri-to-path))
+      (eglot--uri-to-path uri))))
 
 (defun eglot-inactive-regions--range-region (range)
   "Fallback to deprecated range-region RANGE if new function is not available."
   (if (fboundp 'eglot-range-region)
       (eglot-range-region range)
-    (eglot--range-region range)))
+    (with-suppressed-warnings ((obsolete eglot--range-region))
+      (eglot--range-region range))))
 
 (defun eglot-inactive-regions--handle-notification (uri regions)
   "Update inactive REGIONS for the buffer corresponding to URI."



reply via email to

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