From e43c1ee0d46f3af209a0a263fa059b1ed839b0ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sat, 6 Mar 2021 21:20:42 +0000 Subject: [PATCH] Autoload eglot-workspace-configuration's safe-l-v spec This is useful for those who edit files in a certain source tree where this directory-local variable is set, but without having yet loaded eglot.el. Those users would be bothered by the usual risky-local-variable prompt. * eglot.el (eglot-workspace-configuration): Add autoload cookie. GitHub-reference: fix https://github.com/joaotavora/eglot/issues/555 --- lisp/progmodes/eglot.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 14c0fbc5444..79b90886f6c 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1848,6 +1848,7 @@ Records BEG, END and PRE-CHANGE-LENGTH locally." SECTION should be a keyword or a string, value can be anything that can be converted to JSON.") +;;;###autoload (put 'eglot-workspace-configuration 'safe-local-variable 'listp) (defun eglot-signal-didChangeConfiguration (server) -- 2.39.2