]> git.eshelyaron.com Git - emacs.git/commit
Reduce delay between backing up a file and saving new version
authorGlenn Morris <rgm@gnu.org>
Thu, 31 Jan 2013 06:35:45 +0000 (22:35 -0800)
committerGlenn Morris <rgm@gnu.org>
Thu, 31 Jan 2013 06:35:45 +0000 (22:35 -0800)
commit9dbda100755158fd070931748f2b80ad09bc6815
tree4051909615adf3e1c618976602e66a2cbcc23a6e
parentad4de702e19bf1a8065cb84b6eefbc68190d9c3f
Reduce delay between backing up a file and saving new version

* lisp/files.el (basic-save-buffer-2):
Choose coding system for writing the file before backing it up.

* src/fileio.c (choose_write_coding_system): Make it callable from Lisp.
(Fwrite_region): If coding-system-for-write is set, don't call
choose_write_coding_system.
Move the last piece of choose_write_coding_system here.
(syms_of_fileio): Add choose-write-coding-system.

Fixes: debbugs:13522
lisp/ChangeLog
lisp/files.el
src/ChangeLog
src/fileio.c