]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding):
authorBozhidar Batsov <bozhidar@batsov.com>
Fri, 8 Nov 2013 21:41:25 +0000 (23:41 +0200)
committerBozhidar Batsov <bozhidar@batsov.com>
Fri, 8 Nov 2013 21:41:25 +0000 (23:41 +0200)
Fix incorrect case conditions.

lisp/progmodes/ruby-mode.el

index 7b40bf536f86f2c5260874621e5818d432e0b69f..ef47916bca78276cfb76d7ce876a01b0ff9fe8e8 100644 (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")))))