all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Davin Pearson <davin.pearson@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Temporarily turning message logging off
Date: 23 May 2007 20:56:41 -0700	[thread overview]
Message-ID: <1179979000.784693.89720@b40g2000prd.googlegroups.com> (raw)


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?

             reply	other threads:[~2007-05-24  3:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-24  3:56 Davin Pearson [this message]
2007-05-24  5:03 ` Temporarily turning message logging off 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1179979000.784693.89720@b40g2000prd.googlegroups.com \
    --to=davin.pearson@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.