зеркало из https://github.com/github/ruby.git
* misc/ruby-mode.el (ruby-mode-set-encoding): special treat for
compatibility with -Ks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
96240c6d2d
Коммит
c7e829292a
|
@ -253,6 +253,9 @@ Also ignores spaces after parenthesis when 'space."
|
|||
(if coding-system
|
||||
(symbol-name coding-system)
|
||||
"ascii-8bit"))
|
||||
;; special treat for compatibility with -Ks
|
||||
(if (string-equal coding-system "shift_jis")
|
||||
(setq coding-system "cp932"))
|
||||
(if (looking-at "^#![^\n]*ruby") (beginning-of-line 2))
|
||||
(cond ((looking-at "\\s *#.*-\*-\\s *\\(en\\)?coding\\s *:\\s *\\([-a-z0-9_]+\\)")
|
||||
(unless (string= (match-string 2) coding-system)
|
||||
|
|
Загрузка…
Ссылка в новой задаче