* progmodes/ruby-mode.el (ruby-encoding-map): Add a mapping from
authorAkinori MUSHA <knu@iDaemons.org>
Mon, 14 Oct 2013 00:23:29 +0000 (03:23 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 14 Oct 2013 00:23:29 +0000 (03:23 +0300)
commite70181b829d01a7a674c099978688347427a5f33
treed766f743d6b64a38d9eb1725c24fe9ecbdd0209c
parenta5d38e349aab01f93468fe950e6f4ecbd0fee1e0
* progmodes/ruby-mode.el (ruby-encoding-map): Add a mapping from
`japanese-cp932' to `cp932' to fix the problem where saving a
source file written in Shift_JIS twice would end up having
`coding: japanese-cp932' which Ruby could not recognize.
(ruby-mode-set-encoding): Add support for encodings mapped to nil
in `ruby-encoding-map'.
(ruby-encoding-map): Map `us-ascii' to nil by default, meaning it
doesn't need to be explicitly declared in magic comment.
(ruby-encoding-map): Add type declaration for better customize UI.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el