help-gnu-emacs
[Top][All Lists]
Advanced

[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 <address@hidden>
> Date: Thu, 24 May 2007 14:03:41 +0900
> 
> >>>>> In <address@hidden>
> >>>>> 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?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]