summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-add-hook.el
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2022-09-17 21:40:34 +0100
committerJoão Távora <joaotavora@gmail.com>2022-09-18 00:40:21 +0100
commit523547321e4caca6fc966bd71ecd7b60a6e98f73 (patch)
treee1c274d1a75d506cdd27148ffc940f6b37a5d3e0 /test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-add-hook.el
parentbef332a98314c5cbd76cce79ee0a60cb6aa94172 (diff)
downloademacs-523547321e4caca6fc966bd71ecd7b60a6e98f73.tar.gz
emacs-523547321e4caca6fc966bd71ecd7b60a6e98f73.tar.bz2
emacs-523547321e4caca6fc966bd71ecd7b60a6e98f73.zip
Allow :initializationoptions in eglot-server-programs
Also see https://github.com/joaotavora/eglot/issues/1038. This feature was poorly tested, and simply wouldn't work when trying to initialize the server object. The simple solution is to ignore :initializationOptions initarg in this context. It is still stored separately as and accessed as the 'eglot--saved-initargs' slot. Another complication arises in eglot--guess-contact, which tried too hard to be able to compose an interactive prompt (when the server program can't be found). The solution is just to give up when :autoport or :initializationOptions is found. It's not easy or practical to have the user provide non-string arguments via a string interface like the minibuffer. * eglot.el (initialize-instance :before eglot-lsp-server): Don't pass :initializationOptions initarg onward. (eglot--guess-contact): Simplify. Don't try heroics with :autoport and :initializationOptions. * eglot-tests.el (eglot-server-programs-simple-missing-executable): Update test. GitHub-reference: fix https://github.com/joaotavora/eglot/issues/940
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-add-hook.el')
0 files changed, 0 insertions, 0 deletions