all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Temporarily turning message logging off
@ 2007-05-24  3:56 Davin Pearson
  2007-05-24  5:03 ` Katsumi Yamaoka
  0 siblings, 1 reply; 10+ messages in thread
From: Davin Pearson @ 2007-05-24  3:56 UTC (permalink / raw)
  To: help-gnu-emacs


I would like to temporarily undefine the function message so that
messages are temporarily turned off.  Here is some Elisp code that I
have written to achieve this:


;;;
;;; (progn (message "hello") (sit-for 1))
;;;

(defun my-message--turn-messages-off ()
  (progn
    (fset 'message-old (symbol-function 'message))
    (defun message (string &rest arguments)
      ))
  )

(defun my-message--turn-messages-on ()
  (progn
    (fset 'message (symbol-function 'message-old)))
 )

Unfortunately it does not appear to work.  For example
when you save a file with messages turned off, it still
generates the message "Wrote <filename>"

What do I have to do to turn message logging off?

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

end of thread, other threads:[~2007-05-25  7:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-24  3:56 Temporarily turning message logging off Davin Pearson
2007-05-24  5:03 ` Katsumi Yamaoka
2007-05-24  7:56   ` Eli Zaretskii
     [not found]   ` <mailman.1132.1179993370.32220.help-gnu-emacs@gnu.org>
2007-05-24  8:25     ` Katsumi Yamaoka
2007-05-24 10:47       ` Eli Zaretskii
     [not found]       ` <mailman.1141.1180003694.32220.help-gnu-emacs@gnu.org>
2007-05-24 11:43         ` Katsumi Yamaoka
2007-05-25  6:30         ` Davin Pearson
2007-05-25  7:00           ` Katsumi Yamaoka
2007-05-25  7:44           ` David Hansen
2007-05-24  9:14     ` Tim X

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.