]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot: tests must work on 26.3
authorJoão Távora <joaotavora@gmail.com>
Sat, 8 Mar 2025 04:42:21 +0000 (04:42 +0000)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Mar 2025 10:25:57 +0000 (11:25 +0100)
;; IMPORTANT: Since Eglot is a :core ELPA package, these tests are
;; supposed to run on Emacsen down to 26.3.  Do not use bleeding-edge
;; functionality not compatible with that Emacs version.

* test/lisp/progmodes/eglot-tests.el (eglot--call-with-timeout):
Back to cl-gensym.

(cherry picked from commit 331492a148588991af5ce9a24a2020b3d380e03f)

test/lisp/progmodes/eglot-tests.el

index 2b6e09a4d166e366336b0d65124af920f516a0a4..07e96fad588f38be2acc9e91b6a5dfd792e5cf3f 100644 (file)
@@ -165,7 +165,7 @@ directory hierarchy."
   `(eglot--call-with-timeout ,timeout (lambda () ,@body)))
 
 (defun eglot--call-with-timeout (timeout fn)
-  (let* ((tag (gensym "eglot-test-timeout"))
+  (let* ((tag (cl-gensym "eglot-test-timeout"))
          (timed-out (make-symbol "timeout"))
          (timeout-and-message
           (if (listp timeout) timeout