forked from aquamacs-emacs/aquamacs-emacs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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.
- Loading branch information
Showing
2 changed files
with
43 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters