diff options
| author | Diep Pham | 2026-04-06 12:54:25 +0100 |
|---|---|---|
| committer | João Távora | 2026-04-06 12:54:39 +0100 |
| commit | 8205f39b6caca3f7ed528aaa34fad572f3bb4b4c (patch) | |
| tree | e3fa6d2c437cff676eb0c661d70a268292385ea6 | |
| parent | 7679855281b0a91fd6acce81555be2807d7fa5aa (diff) | |
| download | emacs-8205f39b6caca3f7ed528aaa34fad572f3bb4b4c.tar.gz emacs-8205f39b6caca3f7ed528aaa34fad572f3bb4b4c.zip | |
Eglot: improve safety spec of eglot-workspace-configuration
* lisp/progmodes/eglot.el (eglot-workspace-configuration): Improve
safety spec.
Copyright-paperwork-exempt: Yes
| -rw-r--r-- | lisp/progmodes/eglot.el | 3 |
1 files changed, 2 insertions, 1 deletions
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 | |||
| 3087 | format described above.") | 3087 | format described above.") |
| 3088 | 3088 | ||
| 3089 | ;;;###autoload | 3089 | ;;;###autoload |
| 3090 | (put 'eglot-workspace-configuration 'safe-local-variable #'listp) | 3090 | (put 'eglot-workspace-configuration 'safe-local-variable |
| 3091 | (lambda (v) (and (listp v) (not (functionp v))))) | ||
| 3091 | 3092 | ||
| 3092 | (defun eglot-show-workspace-configuration (&optional server) | 3093 | (defun eglot-show-workspace-configuration (&optional server) |
| 3093 | "Dump `eglot-workspace-configuration' as JSON for debugging." | 3094 | "Dump `eglot-workspace-configuration' as JSON for debugging." |