* lisp/progmodes/ruby-mode.el (ruby-mode): Add `ruby-mode-set-encoding'
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 5 Oct 2013 02:26:39 +0000 (05:26 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 5 Oct 2013 02:26:39 +0000 (05:26 +0300)
commit0106e5b3990b556bf7641fa646a4b049bf543297
tree1be3208474123d0a7f136ece4871a15834c572c3
parent34ca0f4c796bca424a0e3033b419eb15b79a2f59
* lisp/progmodes/ruby-mode.el (ruby-mode): Add `ruby-mode-set-encoding'
to `after-save-hook' instead of `before-save-hook', because then
we know exactly what encoding was used to write the file.
(ruby-mode-set-encoding): Use `last-coding-system-used' instead of
guessing.  Call `basic-save-buffer-1' after modifying the buffer.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el