* Draft buffer delete
@ 2001-01-25 12:16 Peter.Weiss
2001-01-25 14:28 ` Paul Jarc
2001-02-07 13:37 ` Kai Großjohann
0 siblings, 2 replies; 4+ messages in thread
From: Peter.Weiss @ 2001-01-25 12:16 UTC (permalink / raw)
Hello,
I don't know which hook to use for killing all this numerical draft
buffers after sending an eMail. I've checked all the gnus-.*-hook
variables but none seemed suitable.
Finally I found message-sent-hook, which sounds very good, but setting
(add-hook 'message-sent-hook '(lambda()
(kill-buffer (current-buffer))))
needs still interaction since the buffer is marked as modified when the
hook runs.
TIA -- Peter
--
Peter Weiss
CLASS Firmengruppe phone +49 (0)8151 / 991 - 0
Moosstrasse 7 fax +49 (0)8151 / 991 - 229
D-82319 Starnberg mobil 0172/ 83 79 125
http://www.class.de mailto:Peter.Weiss@Class.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Draft buffer delete
2001-01-25 12:16 Draft buffer delete Peter.Weiss
@ 2001-01-25 14:28 ` Paul Jarc
2001-01-26 8:26 ` Peter.Weiss
2001-02-07 13:37 ` Kai Großjohann
1 sibling, 1 reply; 4+ messages in thread
From: Paul Jarc @ 2001-01-25 14:28 UTC (permalink / raw)
Cc: ding
Peter.Weiss@Class.de writes:
> Finally I found message-sent-hook, which sounds very good, but setting
>
> (add-hook 'message-sent-hook '(lambda()
> (kill-buffer (current-buffer))))
>
> needs still interaction since the buffer is marked as modified when the
> hook runs.
You can use set-buffer-modified-p to mark it as unmodified before
killing it.
paul
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Draft buffer delete
2001-01-25 14:28 ` Paul Jarc
@ 2001-01-26 8:26 ` Peter.Weiss
0 siblings, 0 replies; 4+ messages in thread
From: Peter.Weiss @ 2001-01-26 8:26 UTC (permalink / raw)
Cc: Peter.Weiss, ding
>>>>> On 25 Jan 2001 09:28:18 -0500, prj@po.cwru.edu (Paul Jarc) said:
Paul> Peter.Weiss@Class.de writes:
>> Finally I found message-sent-hook, which sounds very good, but setting
>>
>> (add-hook 'message-sent-hook '(lambda()
>> (kill-buffer (current-buffer))))
>>
>> needs still interaction since the buffer is marked as modified when the
>> hook runs.
Paul> You can use set-buffer-modified-p to mark it as unmodified before
Paul> killing it.
If I do this the draft files in the draft buffer won't be deleted.
Peter
--
Peter Weiss
CLASS Firmengruppe phone +49 (0)8151 / 991 - 0
Moosstrasse 7 fax +49 (0)8151 / 991 - 229
D-82319 Starnberg mobil 0172/ 83 79 125
http://www.class.de mailto:Peter.Weiss@Class.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Draft buffer delete
2001-01-25 12:16 Draft buffer delete Peter.Weiss
2001-01-25 14:28 ` Paul Jarc
@ 2001-02-07 13:37 ` Kai Großjohann
1 sibling, 0 replies; 4+ messages in thread
From: Kai Großjohann @ 2001-02-07 13:37 UTC (permalink / raw)
Cc: ding
On 25 Jan 2001, Peter Weiss wrote:
> I don't know which hook to use for killing all this numerical
> draft buffers after sending an eMail.
Variables message-kill-buffer-on-exit, message-max-buffers.
kai
--
Be indiscrete. Do it continuously.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-02-07 13:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-25 12:16 Draft buffer delete Peter.Weiss
2001-01-25 14:28 ` Paul Jarc
2001-01-26 8:26 ` Peter.Weiss
2001-02-07 13:37 ` Kai Großjohann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).