Gnus development mailing list
 help / color / mirror / Atom feed
* PATCH: make it possible to check for gnus-delay-header in message-send-hook
@ 2014-06-30 11:44 Peter Münster
  2014-10-04 22:04 ` Ted Zlatanov
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Münster @ 2014-06-30 11:44 UTC (permalink / raw)
  To: ding

Hi,

Please find here a small patch:

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/gnus-delay.el b/lisp/gnus-delay.el
index 5432d4d..75b967e 100644
--- a/lisp/gnus-delay.el
+++ b/lisp/gnus-delay.el
@@ -153,7 +153,7 @@ DELAY is a string, giving the length of the time.  Possible values are:
       (when (gnus-group-entry group)
        (gnus-activate-group group)
        (add-hook 'message-send-hook
-                 (lambda () (message-remove-header gnus-delay-header)))
+                 (lambda () (message-remove-header gnus-delay-header)) t)
        (setq articles (nndraft-articles))
        (while (setq article (pop articles))
          (gnus-request-head article group)
--8<---------------cut here---------------end--------------->8---

This patch makes it possible to check for gnus-delay-header in
message-send-hook. This is needed for example, if you want interactive
actions in the message-send-hook:

--8<---------------cut here---------------start------------->8---
(add-hook 'message-send-hook
          (lambda ()
            (unless (message-field-value gnus-delay-header)
              (do-interactive-things-like-spell-checking))))
--8<---------------cut here---------------end--------------->8---

It would be nice, if you could add this to gnus-master.

TIA,
-- 
           Peter




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: make it possible to check for gnus-delay-header in message-send-hook
  2014-06-30 11:44 PATCH: make it possible to check for gnus-delay-header in message-send-hook Peter Münster
@ 2014-10-04 22:04 ` Ted Zlatanov
  0 siblings, 0 replies; 2+ messages in thread
From: Ted Zlatanov @ 2014-10-04 22:04 UTC (permalink / raw)
  To: ding

On Mon, 30 Jun 2014 13:44:53 +0200 Peter Münster <pmlists@free.fr> wrote: 

PM> This patch makes it possible to check for gnus-delay-header in
PM> message-send-hook.

Thanks; installed.

Ted




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-04 22:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-30 11:44 PATCH: make it possible to check for gnus-delay-header in message-send-hook Peter Münster
2014-10-04 22:04 ` Ted Zlatanov

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).