[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inhibiting Messages Temporarily
From: |
Andreas Politz |
Subject: |
Re: Inhibiting Messages Temporarily |
Date: |
Tue, 04 May 2010 15:43:43 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) |
Nordlöw <per.nordlow@gmail.com> writes:
> How can I temporarily (in block) inhibit messages during the
> evaluation of a specific block? Something like:
>
> (inhibit-message
> (message "something very secret and useless"))
>
> should not print anything at all.
>
> Thanks in advance,
> Nordlöw
(defmacro inhibit-message (&rest body)
`(flet ((message (&rest _)))
,@body))
-ap