Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 57B0A431FD0 for ; Fri, 13 May 2011 01:34:21 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v666sFN3EZ3h for ; Fri, 13 May 2011 01:34:20 -0700 (PDT) Received: from mail-ww0-f41.google.com (mail-ww0-f41.google.com [74.125.82.41]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id AA708431FB6 for ; Fri, 13 May 2011 01:34:20 -0700 (PDT) Received: by wwi18 with SMTP id 18so398535wwi.2 for ; Fri, 13 May 2011 01:34:19 -0700 (PDT) Received: by 10.216.145.206 with SMTP id p56mr41444wej.80.1305275659145; Fri, 13 May 2011 01:34:19 -0700 (PDT) Received: from localhost (54.209-242-81.adsl-dyn.isp.belgacom.be [81.242.209.54]) by mx.google.com with ESMTPS id d54sm1011306wej.10.2011.05.13.01.34.17 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 May 2011 01:34:18 -0700 (PDT) From: Pieter Praet To: Notmuch Mail Subject: [PATCH] emacs: run notmuch-message-mark-replied on message-sent-hook, not message-send-hook Date: Fri, 13 May 2011 10:34:12 +0200 Message-Id: <1305275652-22956-1-git-send-email-pieter@praet.org> X-Mailer: git-send-email 1.7.4.1 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2011 08:34:21 -0000 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 --- 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