emacs-diffs
[Top][All Lists]
Advanced

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

feature/eglot2emacs cc5d1a5a72 091/120: Always default eglot-strict-mode


From: João Távora
Subject: feature/eglot2emacs cc5d1a5a72 091/120: Always default eglot-strict-mode to nil
Date: Thu, 20 Oct 2022 07:17:03 -0400 (EDT)

branch: feature/eglot2emacs
commit cc5d1a5a72ccceaecc6ef1c3eb905481802a3b03
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.
---
 lisp/progmodes/eglot.el | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index f9a7d2d1e7..2e332c470f 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/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]