]> git.eshelyaron.com Git - emacs.git/commit
Eglot: fix bug in eglot--lookup-mode
authorJoão Távora <joaotavora@gmail.com>
Fri, 7 Feb 2025 20:33:41 +0000 (20:33 +0000)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Feb 2025 08:44:12 +0000 (09:44 +0100)
commite8e525732dcf6ed807451c3dab450ff9a583cd31
tree9426f545e91878549989a6aa9fe1217d3434fb31
parent975aef07fd84c44aa238bb1bebc6ddc4906ea2c6
Eglot: fix bug in eglot--lookup-mode

When lookup in eglot-server-programs fails, fall back to a
half-decent (((foo-mode . "foo")) . nil) return value.  This
enables interactive M-x eglot for modes not yet registered in
e-s-p.

* lisp/progmodes/eglot.el (eglot--lookup-mode): Fallback when
lookup fails.

(cherry picked from commit 7169a5d5636ddede2fe70a31de098031f20f70b1)
lisp/progmodes/eglot.el