diff options
| author | João Távora | 2024-08-07 12:51:16 +0100 |
|---|---|---|
| committer | João Távora | 2024-08-07 14:43:47 +0100 |
| commit | 628f2bf579d958bcaddb66c0a58c1a21650d76af (patch) | |
| tree | 3b85060a9ff965c976ead81c8911926193b98b27 /test | |
| parent | 2b087abdbb99fee2a670896fb34c666199e9ba84 (diff) | |
| download | emacs-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.el | 4 |
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)) |