From cc5d1a5a72ccceaecc6ef1c3eb905481802a3b03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Fri, 22 Jul 2022 01:17:05 +0100 Subject: [PATCH] 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 f9a7d2d1e76..2e332c470f9 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 -- 2.39.5