diff options
| author | Trevor Spiteri <tspiteri@ieee.org> | 2020-04-27 01:11:47 +0200 |
|---|---|---|
| committer | Nathan Moreau <nathan.moreau@m4x.org> | 2020-04-29 04:13:28 +0200 |
| commit | 39f32ccd6a1183df26a223a23db255a67076cd2d (patch) | |
| tree | d3596b0170d4fb3ef69e46d98c3b87fa55ceaa51 /.github/workflows/test.yml | |
| parent | 1f8a7631da96423fc08734fcee8db6055a3d0e31 (diff) | |
| download | rust-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/workflows/test.yml')
0 files changed, 0 insertions, 0 deletions
