[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Temporarily turning message logging off
From: |
David Hansen |
Subject: |
Re: Temporarily turning message logging off |
Date: |
Fri, 25 May 2007 09:44:19 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) |
On 24 May 2007 23:30:38 -0700 Davin Pearson wrote:
> On May 24, 10:47 pm, Eli Zaretskii <e...@gnu.org> wrote:
>> > From: Katsumi Yamaoka <yama...@jpl.org>
>> > Date: Thu, 24 May 2007 17:25:36 +0900
>>
>> > >>>>> In <mailman.1132.1179993370.32220.help-gnu-em...@gnu.org>
>> > >>>>> Eli Zaretskii wrote:
>>
>> > > Isn't it easier and less invasive to temporarily bind message-log-max
>> > > to nil?
>>
>> > That's the best if Davin only wants the *Messages* buffer not to
>> > be filled. If not, it might be insufficient. For example:
>>
>> > emacs -batch -eval '(let (message-log-max) (write-region "foo" nil
>> > "testing"))'
>> > Wrote /tmp/testing
>>
>> He said "What do I have to do to turn message _logging_ off?"
>> (emphasis added). He didn't say he wanted to turn the _messages_
>> themselves off. If he wanted the latter, then indeed my suggestion
>> will not help, but in that case, fsetting `message' itself, or
>> defadvising it, is probably the way to go.
>
> Sorry for the misunderstanding.
>
> I actually want to turn the messages themselves off AS WELL as the
> message logging.
How about
~/bin/emacs -batch -eval "(require 'cl) (flet ((message (format &rest args)))
(write-region \"foo\" nil \"testing\"))"
David
Message not available