From 593855a0ff14083b5b790a07b058789af163e385 Mon Sep 17 00:00:00 2001 From: knu Date: Mon, 7 Oct 2013 19:15:11 +0000 Subject: [PATCH] * misc/ruby-additional.el (ruby-mode-set-encoding): Add a missing else clause to unbreak with `cp932`, etc. * misc/ruby-mode.el (ruby-mode-set-encoding): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ misc/ruby-additional.el | 3 ++- misc/ruby-mode.el | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3dedf50cd2..d0b69d0286 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Tue Oct 8 04:12:45 2013 Akinori MUSHA + + * misc/ruby-additional.el (ruby-mode-set-encoding): Add a missing + else clause to unbreak with `cp932`, etc. + + * misc/ruby-mode.el (ruby-mode-set-encoding): Ditto. + Tue Oct 8 03:57:34 2013 Akinori MUSHA * misc/ruby-additional.el (ruby-mode-set-encoding): Use diff --git a/misc/ruby-additional.el b/misc/ruby-additional.el index 1a80e34196..ce40970ec6 100644 --- a/misc/ruby-additional.el +++ b/misc/ruby-additional.el @@ -117,7 +117,8 @@ Emacs to Ruby." (coding-system-get default-buffer-file-coding-system :coding-type) 'ascii-8bit))) ((memq coding-type '(utf-8 shift-jis)) - coding-type)))))) + coding-type) + (t coding-system)))))) (coding-system (or coding-system 'us-ascii)) diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 4de0290706..4efa60a321 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -360,7 +360,8 @@ Emacs to Ruby." (coding-system-get default-buffer-file-coding-system :coding-type) 'ascii-8bit))) ((memq coding-type '(utf-8 shift-jis)) - coding-type)))))) + coding-type) + (t coding-system)))))) (coding-system (or coding-system 'us-ascii))