From 8205f39b6caca3f7ed528aaa34fad572f3bb4b4c Mon Sep 17 00:00:00 2001 From: Diep Pham Date: Mon, 6 Apr 2026 12:54:25 +0100 Subject: [PATCH] Eglot: improve safety spec of eglot-workspace-configuration * lisp/progmodes/eglot.el (eglot-workspace-configuration): Improve safety spec. Copyright-paperwork-exempt: Yes --- lisp/progmodes/eglot.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 0e1ed519b43..bf6fbc69ba2 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -3087,7 +3087,8 @@ root of the current project. It should return an object of the format described above.") ;;;###autoload -(put 'eglot-workspace-configuration 'safe-local-variable #'listp) +(put 'eglot-workspace-configuration 'safe-local-variable + (lambda (v) (and (listp v) (not (functionp v))))) (defun eglot-show-workspace-configuration (&optional server) "Dump `eglot-workspace-configuration' as JSON for debugging."