From: Bozhidar Batsov Date: Fri, 8 Nov 2013 21:41:25 +0000 (+0200) Subject: * lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding): X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~891 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=25864c18c556454aa492732a224b78191e6c8ed3;p=emacs.git * lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding): Fix incorrect case conditions. --- diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 7b40bf536f8..ef47916bca7 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -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")))))