[ruby-cvs:50328] knu:r43186 (trunk): misc/ruby-mode.el: Improve `ruby-mode-set-encoding`.

knu at ruby-lang.org knu at ruby-lang.org
Tue Oct 8 03:21:22 JST 2013


knu	2013-10-08 03:21:21 +0900 (Tue, 08 Oct 2013)

  New Revision: 43186

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43186

  Log:
    misc/ruby-mode.el: Improve `ruby-mode-set-encoding`.
    
    * misc/ruby-additional.el (ruby-mode-set-encoding): Add support
      for `prefer-utf-8` which was introduced in Emacs trunk.
    
    * misc/ruby-additional.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.
    
    * misc/ruby-additional.el (ruby-mode-set-encoding): Add support
      for encodings mapped to nil in `ruby-encoding-map`.
    
    * misc/ruby-additional.el (ruby-encoding-map): Map `us-ascii` and
      `utf-8` to nil by default, meaning they need not be explicitly
      declared in magic comment.
    
    * misc/ruby-additional.el (ruby-encoding-map): Add type
      declaration for better customize UI.
    
    * misc/ruby-mode.el: Ditto for the above.

  Modified files:
    trunk/ChangeLog
    trunk/misc/ruby-additional.el
    trunk/misc/ruby-mode.el


More information about the ruby-cvs mailing list