summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorTrevor Spiteri <tspiteri@ieee.org>2020-04-27 01:11:47 +0200
committerNathan Moreau <nathan.moreau@m4x.org>2020-04-29 04:13:28 +0200
commit39f32ccd6a1183df26a223a23db255a67076cd2d (patch)
treed3596b0170d4fb3ef69e46d98c3b87fa55ceaa51 /.github
parent1f8a7631da96423fc08734fcee8db6055a3d0e31 (diff)
downloadrust-mode-39f32ccd6a1183df26a223a23db255a67076cd2d.tar.gz
In emacs >= 26.2, use replace-buffer-contents after formatting
This saves the position and the markers in the buffer, so there is no need to save positions of direct and indirect buffers and windows. This also plays better with e.g. grep, as otherwise all grep markers would be destroyed when replacing the contents of the buffer with copy-to-buffer. While replace-buffer-contents was added in Emacs 26.1, it was broken for non-ASCII contents and would corrupt the buffer contents. This was fixed in 26.2, so we require version 26.2 for this.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions