]> git.eshelyaron.com Git - emacs.git/commit
Eglot: abandon compat.el
authorJoão Távora <joaotavora@gmail.com>
Wed, 22 Jan 2025 21:43:10 +0000 (21:43 +0000)
committerEshel Yaron <me@eshelyaron.com>
Thu, 23 Jan 2025 10:28:32 +0000 (11:28 +0100)
commitd28accd5e8c664096867cf0e5a192506731cd967
treeada359d4071d02e9cd46cfa47ee5cc1ef61c28c2
parent4b34c81d62c4c44cae57f88489a11b3e3cf60386
Eglot: abandon compat.el

After period of months using this to help compatibility to older Emacs
versions.  It's not really buying us that much and complicates
maintenance, so it gets the axe.

A common problem is the compatibility alias for require-with-check,
which often errors with some "Feature X loaded from Y is now provided by
Z".  The tests for Emacs 26.3 were all failing in the Github tracker
ever since this (and track-changes.el) were added to Eglot.

* lisp/progmodes/eglot.el (compat): No longer require.
(eglot-alternatives): Reword comment.
(eglot-alternatives): Call eglot--executable-find.
(eglot--guess-contact): Call eglot--executable-find.
(eglot--connect): Check if package-get-version exists.
(eglot--format): Check if substitute-quotes exists.
(eglot--format-markup): Check if text-property-search exists.

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