From: João Távora Date: Sat, 6 Mar 2021 21:20:42 +0000 (+0000) Subject: Autoload eglot-workspace-configuration's safe-l-v spec X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~153 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e43c1ee0d46f3af209a0a263fa059b1ed839b0ad;p=emacs.git 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 --- 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)