[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Temporarily turning message logging off
From: |
Eli Zaretskii |
Subject: |
Re: Temporarily turning message logging off |
Date: |
Thu, 24 May 2007 10:56:04 +0300 |
> From: Katsumi Yamaoka <yamaoka@jpl.org>
> Date: Thu, 24 May 2007 14:03:41 +0900
>
> >>>>> In <1179979000.784693.89720@b40g2000prd.googlegroups.com>
> >>>>> Davin Pearson wrote:
>
> > What do I have to do to turn message logging off?
>
> It seems that `write-region', which is a built-in function,
> issues such messages. How about this?
>
> ;; off
> (fset 'write-region-old (symbol-function 'write-region))
> (fset 'write-region
> (lambda (start end filename &optional append visit &rest args)
> (apply 'write-region-old start end filename append 'silent args)))
>
> ;; on
> (fset 'write-region (symbol-function 'write-region-old))
Isn't it easier and less invasive to temporarily bind message-log-max
to nil?
Message not available