]> git.eshelyaron.com Git - emacs.git/commit
(Finsert_file_contents): Keep buffer consistent in non-local exit
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 2 Jul 2019 22:02:51 +0000 (18:02 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 2 Jul 2019 22:02:51 +0000 (18:02 -0400)
commitfe3676fe18577643d9d247db2e6c32691f3acf80
tree638a1ef4ce2f7a82aea4929d81463affc111351d
parentc136f93dfad1a55c653e844d3cf25f804744275e
(Finsert_file_contents): Keep buffer consistent in non-local exit

* src/fileio.c (decide_coding_unwind): Delete function.
(Finsert_file_contents): Don't let invalid multibyte byte sequences
escape when we exit non-locally.

* test/src/fileio-tests.el (fileio-tests--insert-file-interrupt): New test.
src/fileio.c
test/src/fileio-tests.el