* lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding):

Fix incorrect case conditions.
This commit is contained in:
Bozhidar Batsov 2013-11-08 23:41:25 +02:00
parent ffa2df72a8
commit 25864c18c5

View file

@ -655,9 +655,9 @@ explicitly declared in magic comment."
(t (when ruby-insert-encoding-magic-comment
(let ((encoding-magic-comment-template
(case ruby-encoding-magic-comment-style
('ruby "# coding: %s")
('emacs "# -*- coding: %s -*-")
('custom ruby-custom-encoding-magic-comment-template))))
(ruby "# coding: %s")
(emacs "# -*- coding: %s -*-")
(custom ruby-custom-encoding-magic-comment-template))))
(insert
(format encoding-magic-comment-template coding-system)
"\n")))))