]> git.eshelyaron.com Git - emacs.git/commit
(again): fix issue with replace-buffer-contents
authorJoão Távora <joaotavora@gmail.com>
Mon, 21 Oct 2019 12:08:45 +0000 (13:08 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 21 Oct 2019 12:08:45 +0000 (13:08 +0100)
commitf71716e91427d893773ca68d5d3dec417a963571
tree45dfd7d91aff716237cf398e77174e3aa1219cd3
parent703a09113cf3e21a01c6c14b86faa97233c8f0b1
(again): fix issue with replace-buffer-contents

Manually calling the before/after change hooks for Emacs 26.1's buggy
replace-buffer-contents must be done with absolute positions, not
markers.

* eglot.el (eglot--apply-text-edits): Call change hooks with
buffer positions, not markers.

GitHub-reference: fix https://github.com/joaotavora/eglot/issues/259
lisp/progmodes/eglot.el