unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] emacs: run notmuch-message-mark-replied on message-sent-hook, not message-send-hook
@ 2011-05-13  8:34 Pieter Praet
  2011-05-13 15:07 ` [PATCH 1/3] test: emacs: add subtest "Send reply from within Emacs" Pieter Praet
  0 siblings, 1 reply; 4+ messages in thread
From: Pieter Praet @ 2011-05-13  8:34 UTC (permalink / raw)
  To: Notmuch Mail

Parent message is tagged "replied" prematurely.

Only do so when reply is *really* sent.

(describe-variable 'message-send-hook)
> Hook run before sending messages.
> This hook is run quite early when sending.

(describe-variable 'message-sent-hook)
> Hook run after sending messages.

Signed-off-by: Pieter Praet <pieter@praet.org>
---
 emacs/notmuch-message.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/emacs/notmuch-message.el b/emacs/notmuch-message.el
index d5c96c2..c8b19c3 100644
--- a/emacs/notmuch-message.el
+++ b/emacs/notmuch-message.el
@@ -47,6 +47,6 @@ the \"inbox\" and \"todo\", you would set
 	(apply 'notmuch-call-notmuch-process "tag"
 	       (append tags (list (concat "id:" (car (car rep)))) nil))))))
 
-(add-hook 'message-send-hook 'notmuch-message-mark-replied)
+(add-hook 'message-sent-hook 'notmuch-message-mark-replied)
 
 (provide 'notmuch-message)
-- 
1.7.4.1

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

end of thread, other threads:[~2011-05-13 15:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-13  8:34 [PATCH] emacs: run notmuch-message-mark-replied on message-sent-hook, not message-send-hook Pieter Praet
2011-05-13 15:07 ` [PATCH 1/3] test: emacs: add subtest "Send reply from within Emacs" Pieter Praet
2011-05-13 15:07   ` [PATCH 2/3] test: emacs: add subtest "Verify that 'replied' tag is added to reply's parent message." Pieter Praet
2011-05-13 15:07   ` [PATCH 3/3] emacs: generalize notmuch-message-mark-replied Pieter Praet

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).