mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-06 14:22:31 -07:00
Eglot: improve safety spec of eglot-workspace-configuration
* lisp/progmodes/eglot.el (eglot-workspace-configuration): Improve safety spec. Copyright-paperwork-exempt: Yes
This commit is contained in:
parent
7679855281
commit
8205f39b6c
1 changed files with 2 additions and 1 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue