aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJoão Távora2024-08-07 12:51:16 +0100
committerJoão Távora2024-08-07 14:43:47 +0100
commit628f2bf579d958bcaddb66c0a58c1a21650d76af (patch)
tree3b85060a9ff965c976ead81c8911926193b98b27 /test
parent2b087abdbb99fee2a670896fb34c666199e9ba84 (diff)
downloademacs-628f2bf579d958bcaddb66c0a58c1a21650d76af.tar.gz
emacs-628f2bf579d958bcaddb66c0a58c1a21650d76af.zip
Eglot: simplify eglot--lookup-mode
No longer reorder the LANGUAGES return value to have the originating mode upfront, since it doesn't seem to serve any practical purpose anymore. bug#72343 * lisp/progmodes/eglot.el (eglot--lookup-mode): Simplify. * test/lisp/progmodes/eglot-tests.el (eglot-test-server-programs-guess-lang): Adjust.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/progmodes/eglot-tests.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lisp/progmodes/eglot-tests.el b/test/lisp/progmodes/eglot-tests.el
index 1e653716a2c..534c47b2646 100644
--- a/test/lisp/progmodes/eglot-tests.el
+++ b/test/lisp/progmodes/eglot-tests.el
@@ -1235,8 +1235,8 @@ GUESSED-MAJOR-MODES-SYM are bound to the useful return values of
1235 (let ((eglot-server-programs '(((baz-mode (foo-mode :language-id "bar")) 1235 (let ((eglot-server-programs '(((baz-mode (foo-mode :language-id "bar"))
1236 . ("prog-executable"))))) 1236 . ("prog-executable")))))
1237 (eglot--guessing-contact (_ nil _ _ modes guessed-langs) 1237 (eglot--guessing-contact (_ nil _ _ modes guessed-langs)
1238 (should (equal guessed-langs '("bar" "baz"))) 1238 (should (equal guessed-langs '("baz" "bar")))
1239 (should (equal modes '(foo-mode baz-mode))))))) 1239 (should (equal modes '(baz-mode foo-mode)))))))
1240 1240
1241(defun eglot--glob-match (glob str) 1241(defun eglot--glob-match (glob str)
1242 (funcall (eglot--glob-compile glob t t) str)) 1242 (funcall (eglot--glob-compile glob t t) str))