all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Inhibiting Messages Temporarily
@ 2010-03-30 14:09 Nordlöw
  2010-03-30 15:36 ` Andreas Politz
  0 siblings, 1 reply; 2+ messages in thread
From: Nordlöw @ 2010-03-30 14:09 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Inhibiting Messages Temporarily
  2010-03-30 14:09 Inhibiting Messages Temporarily Nordlöw
@ 2010-03-30 15:36 ` Andreas Politz
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Politz @ 2010-03-30 15:36 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-30 15:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-30 14:09 Inhibiting Messages Temporarily Nordlöw
2010-03-30 15:36 ` Andreas Politz

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.