gnu: emacs-eglot-x: Fix compatibility with emacs-eglot.

The current emacs-eglot-x version we package is broken when used with an eglot
version higher than 1.16  (emacs-eglot is currently at version 1.17).
Upstream has an as-of-yet unreleased fix, so let's backport that to our
package.

* gnu/packages/patches/emacs-eglot-x-fix-apply-text-edits.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it here.
* gnu/packages/emacs-xyz.scm (emacs-eglot-x)[patches]: Use it here.

Change-Id: Id39f4805dc37902048139049785a4f7852202a8c
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
Javier Olaechea 2025-01-15 19:48:42 -05:00 committed by Liliana Marie Prikler
parent 56dff9d303
commit 5aa63d06a9
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87
3 changed files with 29 additions and 1 deletions

View file

@ -21505,7 +21505,11 @@ one if it fails.")
(file-name (git-file-name name version))
(sha256
(base32
"0s17nv59gzgqgskid41lfacsqnzdiq2p3ds0vglcfqwypr3k898c"))))
"0s17nv59gzgqgskid41lfacsqnzdiq2p3ds0vglcfqwypr3k898c"))
;; Backporting an unreleased fix from
;; https://github.com/nemethf/eglot-x/commit/354150c299e241df09c8b904b68177fd9b41fe0e
;; Remove this patch once version 0.7 is released
(patches (search-patches "emacs-eglot-x-fix-apply-text-edits.patch"))))
(build-system emacs-build-system)
(inputs (list emacs-eglot))
(home-page "https://github.com/nemethf/eglot-x")