* 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.
Showing
Please register or sign in to comment