Subject: Re: bug#63372: [PATCH] Add variable: eglot-apply-text-edits-function

From: João Távora <[email-masked]>
Date: Thu, 11 May 2023 20:54:32 +0100

After having another look at eglot-x.el i don't
think eglot--apply-text-edits (plural) is the right
place to put the generic.  You'd just repeat a lot
of code of the original, with no clear way to reuse it.

Maybe you want something more akin to the attached patch,
which introduces eglot-apply-text-edit (singular).  In your
override for this function you can check conditions to either
proceed with the non-standard edit or delegate to the default
implementation with (cl-call-next-method).

João