Commit 25864c18 authored by Bozhidar Batsov's avatar Bozhidar Batsov
Browse files

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

Fix incorrect case conditions.
parent ffa2df72
......@@ -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")))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment