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

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

[elpa] externals/eglot 29690e88e3 13/15: Always default eglot-strict-mod


From: ELPA Syncer
Subject: [elpa] externals/eglot 29690e88e3 13/15: Always default eglot-strict-mode to nil
Date: Sun, 24 Jul 2022 14:57:35 -0400 (EDT)

branch: externals/eglot
commit 29690e88e3b1d2f5d5472d7457a56cc363fb2805
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Always default eglot-strict-mode to nil
    
    it's mostly useful for developers/debugger.  It's better to have the
    latter remember to set it than users being hindered by it.
    
    See https://github.com/joaotavora/eglot/issues/131#issuecomment-1191997167
    
    * eglot.el (eglot-strict-mode): default to nil.
---
 eglot.el | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/eglot.el b/eglot.el
index f9a7d2d1e7..2e332c470f 100644
--- a/eglot.el
+++ b/eglot.el
@@ -433,14 +433,12 @@ Here's what an element of this alist might look like:
     (Command ((:title . string) (:command . string)) (:arguments))"))
 
 (eval-and-compile
-  (defvar eglot-strict-mode (if load-file-name '()
-                              '(disallow-non-standard-keys
-                                ;; Uncomment these two for fun at
-                                ;; compile-time or with flymake-mode.
-                                ;;
-                                ;; enforce-required-keys
-                                ;; enforce-optional-keys
-                                ))
+  (defvar eglot-strict-mode
+    '(;; Uncomment next lines for fun and debugging
+      ;; disallow-non-standard-keys
+      ;; enforce-required-keys
+      ;; enforce-optional-keys
+      )
     "How strictly to check LSP interfaces at compile- and run-time.
 
 Value is a list of symbols (if the list is empty, no checks are



reply via email to

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