diff options
| author | João Távora | 2026-01-11 12:43:48 +0000 |
|---|---|---|
| committer | João Távora | 2026-01-11 13:15:27 +0000 |
| commit | 67dd97a4f76839e4f4c41357f7a2bd27cc9d59bd (patch) | |
| tree | da3a7d73826e6eea618ecca524cbc34e26c0c13d | |
| parent | a59fafde755acc8fe29b3ec8464f8200a9be4591 (diff) | |
| download | emacs-67dd97a4f76839e4f4c41357f7a2bd27cc9d59bd.tar.gz emacs-67dd97a4f76839e4f4c41357f7a2bd27cc9d59bd.zip | |
Eglot: solve misc Elisp compatibility problems on Emacs 26.3
* lisp/progmodes/eglot.el (eglot--semtok-request)
(eglot--semtok-after-send-changes): Unbreak for 26.3.
* test/lisp/progmodes/eglot-tests.el (eglot--tests-connect): Use
split-string.
(eglot-test-rust-completion-exit-function): Use skip-unless.
| -rw-r--r-- | lisp/progmodes/eglot.el | 4 | ||||
| -rw-r--r-- | test/lisp/progmodes/eglot-tests.el | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 05075bffc87..587b03ee1ba 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el | |||
| @@ -5018,11 +5018,11 @@ See `eglot--semtok-request' implementation for details.") | |||
| 5018 | 5018 | ||
| 5019 | (defun eglot--semtok-after-send-changes () | 5019 | (defun eglot--semtok-after-send-changes () |
| 5020 | ;; (trace-values "Dispatching") | 5020 | ;; (trace-values "Dispatching") |
| 5021 | (setf (plist-get eglot--semtok-state :dispatched) t)) | 5021 | (setf (cl-getf eglot--semtok-state :dispatched) t)) |
| 5022 | 5022 | ||
| 5023 | (cl-defun eglot--semtok-request (beg end &aux (docver eglot--docver)) | 5023 | (cl-defun eglot--semtok-request (beg end &aux (docver eglot--docver)) |
| 5024 | "Ask for tokens. Arrange for BEG..END to be font-lock flushed." | 5024 | "Ask for tokens. Arrange for BEG..END to be font-lock flushed." |
| 5025 | (cl-macrolet ((c (tag) `(plist-get eglot--semtok-state ,tag))) | 5025 | (cl-macrolet ((c (tag) `(cl-getf eglot--semtok-state ,tag))) |
| 5026 | (cl-labels | 5026 | (cl-labels |
| 5027 | ((req (method &optional params cont | 5027 | ((req (method &optional params cont |
| 5028 | &aux (buf (current-buffer))) | 5028 | &aux (buf (current-buffer))) |
diff --git a/test/lisp/progmodes/eglot-tests.el b/test/lisp/progmodes/eglot-tests.el index c2d67dc3530..0924058121f 100644 --- a/test/lisp/progmodes/eglot-tests.el +++ b/test/lisp/progmodes/eglot-tests.el | |||
| @@ -299,7 +299,7 @@ directory hierarchy." | |||
| 299 | (eglot-sync-connect t) | 299 | (eglot-sync-connect t) |
| 300 | (eglot-connect-timeout timeout) | 300 | (eglot-connect-timeout timeout) |
| 301 | (eglot-server-programs | 301 | (eglot-server-programs |
| 302 | (if server `((,major-mode . ,(string-split server))) | 302 | (if server `((,major-mode . ,(split-string server))) |
| 303 | eglot-server-programs))) | 303 | eglot-server-programs))) |
| 304 | (apply #'eglot--connect (eglot--guess-contact)))) | 304 | (apply #'eglot--connect (eglot--guess-contact)))) |
| 305 | 305 | ||
| @@ -775,7 +775,7 @@ directory hierarchy." | |||
| 775 | ;; This originally appeared in github#1339 | 775 | ;; This originally appeared in github#1339 |
| 776 | (skip-unless (executable-find "rust-analyzer")) | 776 | (skip-unless (executable-find "rust-analyzer")) |
| 777 | (skip-unless (executable-find "cargo")) | 777 | (skip-unless (executable-find "cargo")) |
| 778 | (skip-when (getenv "EMACS_EMBA_CI")) | 778 | (skip-unless (not (getenv "EMACS_EMBA_CI"))) |
| 779 | (eglot--with-fixture | 779 | (eglot--with-fixture |
| 780 | '(("cmpl-project" . | 780 | '(("cmpl-project" . |
| 781 | (("main.rs" . | 781 | (("main.rs" . |