]> git.eshelyaron.com Git - emacs.git/commit
Apply text edits as a single undoable edit
authorJoão Távora <joaotavora@gmail.com>
Thu, 21 Jun 2018 16:48:10 +0000 (17:48 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 21 Jun 2018 17:21:30 +0000 (18:21 +0100)
commit81b7c8e7d736d4118cb52afcaf6a46a55646fabf
tree190ada191da98ee7c7fa411c5899dff5bf53815e
parent1e49d2f3b45be49278f13a4b9fbb5dab2707952a
Apply text edits as a single undoable edit

As suggested by mkcms <k.michal@zoho.com>, but do it in
eglot--apply-text-edits, where it benefits all its users.

Also, just using undo-boundary is not enough, one needs
undo-amalgamate-change-group to mess with the boundaries already in
buffer-undo-list.

* eglot.el (eglot--apply-text-edits): Use
  undo-amalgamate-change-group.

GitHub-reference: close https://github.com/joaotavora/eglot/issues/22
lisp/progmodes/eglot.el