So you're saying I should use `cond', right? I was under the impression that `case' is preferable if you'll be always checking the value of the same expression. On 8 November 2013 21:04, Stefan Monnier wrote: > >> + (case ruby-encoding-magic-comment-style > >> + ('ruby "# coding: %s") > >> + ('emacs "# -*- coding: %s -*-") > >> + ('custom > ruby-custom-encoding-magic-comment-template)))) > > This will use the first branch if ruby-encoding-magic-comment-style is > `quote' (and the two other branches will also check to see if > ruby-encoding-magic-comment-style is equal to `quote' tho that check > will be redundant). > > > Stefan >