Subject: bug#14694: 24.3; format-mode-line failing with :eval form via a variable in a conditional construct

From: Stefan Monnier <[email-masked]>
Date: Sun, 23 Jun 2013 12:45:42 -0400

ELISP> (setq indirect-eval '(:eval "indirect eval"))
ELISP> (format-mode-line '(t indirect-eval "else"))
> ""

You need (put 'indirect-eval 'risky-local-variable t)

        Stefan