* lisp/progmodes/ruby-mode.el (ruby-mode): Add `ruby-mode-set-encoding'
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 13 Oct 2013 21:35:31 +0000 (00:35 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 13 Oct 2013 21:35:31 +0000 (00:35 +0300)
commita9ba094b81d899218e8762a66377b2fe71274d35
tree0ed1c3a278fb85ad25202cc66bdfb772f5e1b519
parent7a068717166757eacc702cb499dc803be0645211
* lisp/progmodes/ruby-mode.el (ruby-mode): Add `ruby-mode-set-encoding'
to `after-save-hook' instead of `before-save-hook'.
(ruby-mode-set-encoding): Use the value of coding system used to
write the file.  Call `basic-save-buffer-1' after modifying the
buffer.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el