* lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding):
Fix incorrect case conditions.
This commit is contained in:
parent
ffa2df72a8
commit
25864c18c5
1 changed files with 3 additions and 3 deletions
|
@ -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")))))
|
||||
|
|
Loading…
Add table
Reference in a new issue