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

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

[nongnu] elpa/eglot-inactive-regions 20cacf2b2d 16/66: Warn if shading m


From: ELPA Syncer
Subject: [nongnu] elpa/eglot-inactive-regions 20cacf2b2d 16/66: Warn if shading method is unknown
Date: Fri, 6 Dec 2024 06:59:52 -0500 (EST)

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

    Warn if shading method is unknown
---
 clangd-inactive-regions.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/clangd-inactive-regions.el b/clangd-inactive-regions.el
index 320e123517..9e1eae169a 100644
--- a/clangd-inactive-regions.el
+++ b/clangd-inactive-regions.el
@@ -82,6 +82,8 @@ Allowed methods:
    (list (let ((completion-ignore-case t)
               (prompt "Set inactive regions shading method: "))
           (completing-read prompt clangd-inactive-regions--methods nil t 
nil))))
+  (unless (member method clangd-inactive-regions--methods)
+    (error "Unknown shading method: %s" method))
   (setq clangd-inactive-regions-method method)
   (when (clangd-inactive-regions-mode)
     (clangd-inactive-regions-refresh)))



reply via email to

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