Function: case
case is a for cl-case, defined in cl-macs.el.gz.
This macro is obsolete since 27.1; use cl-case instead.
Signature
(case EXPR (KEYLIST BODY...)...)
Documentation
Eval EXPR and choose among clauses on that value.
Each clause looks like (KEYLIST BODY...). EXPR is evaluated and
compared against each key in each KEYLIST; the corresponding BODY
is evaluated. If no clause succeeds, this macro returns nil. A
single non-nil atom may be used in place of a KEYLIST of one
atom. A KEYLIST of t or otherwise is allowed only in the final
clause, and matches if no other keys match. Key values are
compared by eql.
Probably introduced at or before Emacs version 1.1.
Aliases
case (obsolete since 27.1)