On Apr 22, 2015 1:55 PM, "Oleh Krehel" <ohwoeowho@gmail.com> wrote:
>
> Eli Zaretskii <eliz@gnu.org> writes:
> >> I got this code to work as I expect:
> >>
> >> (progn
> >>   (setq inhibit-message t)
> >>   (message "foo")
> >>   (setq inhibit-message nil))
> >>
> >> However, this doesn't work:
> >>
> >> (let ((inhibit-message t))
> >>   (message "foo"))
> >
> > How does it "not work"?  It did for me.
>
> I misunderstood that when "C-x C-e" would not print the message in
> *scratch*. But otherwise, it works.

C-x C-e does print the message. You just don't see it because it immediately prints the return values afterwards. :-)