Gnus development mailing list
 help / color / mirror / Atom feed
From: "Peter Münster" <pmlists@free.fr>
To: ding@gnus.org
Subject: PATCH: make it possible to check for gnus-delay-header in message-send-hook
Date: Mon, 30 Jun 2014 13:44:53 +0200	[thread overview]
Message-ID: <87mwculiyy.fsf@micropit.roche-blanche.homenet.org> (raw)

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




             reply	other threads:[~2014-06-30 11:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-30 11:44 Peter Münster [this message]
2014-10-04 22:04 ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mwculiyy.fsf@micropit.roche-blanche.homenet.org \
    --to=pmlists@free.fr \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).