Revert 2013-01-31 change that decides coding system before backing up
commitf314e84fce8b394da20aa1d69121c74fb34f9a1e
authorGlenn Morris <rgm@gnu.org>
Mon, 11 Aug 2014 00:38:19 +0000 (10 17:38 -0700)
committerGlenn Morris <rgm@gnu.org>
Mon, 11 Aug 2014 00:38:19 +0000 (10 17:38 -0700)
tree214ada74bd8ae7e7450d5269b03cdf51ed87d11d
parentdb2f09ab1be010a06a88269d39fb14c191452f1c
Revert 2013-01-31 change that decides coding system before backing up

It causes a more serious problem than the one it solves.
This closes bug#18141, and reopens bug#13522.

* lisp/files.el (basic-save-buffer-2): Revert 2013-01-31 change.

* src/fileio.c: Revert 2013-01-31 change.
(choose_write_coding_system): No longer callable from Lisp.
Move last piece back here from Fwrite_region.
(Fwrite_region, syms_of_fileio): Update for above changes.

* test/automated/data/files-bug18141.el.gz: New file.
* test/automated/files.el (files-test-bug-18141-file):
New variable and test.
lisp/ChangeLog
lisp/files.el
src/ChangeLog
src/fileio.c
test/ChangeLog
test/automated/data/files-bug18141.el.gz [new file with mode: 0644]
test/automated/files.el