From 4acf013ffd0fa36b278a742226fb853fb594d8a0 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 31 May 2010 09:27:06 +0000 Subject: [PATCH] * misc/ruby-mode.el (ruby-mode-set-encoding): commit miss. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- misc/ruby-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index a5a9d91bf2..0072f1e0d5 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -342,7 +342,7 @@ Also ignores spaces after parenthesis when 'space." (cdr (assq coding-system ruby-encoding-map))) coding-system)) "ascii-8bit")) - (unless (looking-at "^#![^\n]*ruby") (beginning-of-line 2)) + (if (looking-at "^#!") (beginning-of-line 2)) (cond ((looking-at "\\s *#.*-\*-\\s *\\(en\\)?coding\\s *:\\s *\\([-a-z0-9_]*\\)\\s *\\(;\\|-\*-\\)") (unless (string= (match-string 2) coding-system) (goto-char (match-beginning 2))