[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trunk r115036: * lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding
From: |
Stefan Monnier |
Subject: |
Re: trunk r115036: * lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding): Use |
Date: |
Fri, 08 Nov 2013 15:35:39 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> 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.
No, I'm saying that the format of a "case" branch is (CASES &rest
FORMS), where CASES can be a list of values. In your case, CASES is
"'ruby" which is a shorthand for "(quote ruby)", i.e. you test 2 values.
Stefan