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 C24D7431FAF for ; Mon, 17 Sep 2012 09:43:35 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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 FKYj-SQAGREK for ; Mon, 17 Sep 2012 09:43:35 -0700 (PDT) Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 2122C431FAE for ; Mon, 17 Sep 2012 09:43:34 -0700 (PDT) Received: by wgbdq12 with SMTP id dq12so4703563wgb.2 for ; Mon, 17 Sep 2012 09:43:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:user-agent:date:message-id:mime-version :content-type; bh=MSEDRup9dZ6NCH91CbmFiBi9GYcejBwlPx5UtasSO6E=; b=itiiBhfRWFKQVvQyiUHyBc8VBGfI5E/qADd/ZWT3tQ+8EjAWDse+wNu86wahvpsC6z yGMXLptAT9Y/kJtKeHMDr9h/VIkvfbTogqd4Ic6Ty+GtWfCNQ88XIHPGQBidX2RI8KIx JaiO5gW64J2t5a9R5Y5RqaGnGs70WMpVL6fJjptJWQpgS6e4uDxJorFkU99309PKmaNC /cWbJNQTWcIJTMpZnu3Sjx2ynW1YLW2QH94yFabilHqaQyC3pJV5vMCSX1UpV0E0jkUp aAyLF5e6Kc/8/2Di/TLK9LlahQHOFZbScgBQqukzSNdETMZMG1WI0UPQxeJmVFa7LlRX lMQA== Received: by 10.180.104.197 with SMTP id gg5mr17296118wib.9.1347900213845; Mon, 17 Sep 2012 09:43:33 -0700 (PDT) Received: from luz3 ([78.251.247.165]) by mx.google.com with ESMTPS id el6sm18545485wib.8.2012.09.17.09.43.32 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Sep 2012 09:43:32 -0700 (PDT) From: Damien Cassou To: notmuch@notmuchmail.org Subject: [PATCH] Run `notmuch-show-hook' after setting `header-line-format' User-Agent: Notmuch/0.14 (http://notmuchmail.org) Emacs/24.2.50.1 (i686-pc-linux-gnu) Date: Mon, 17 Sep 2012 18:43:28 +0200 Message-ID: <87pq5kior3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain 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: Mon, 17 Sep 2012 16:43:36 -0000 This patch makes it possible for notmuch-show hooks to change the header line. Signed-off-by: Damien Cassou --- emacs/notmuch-show.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index ce5ea6f..16008b4 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1070,10 +1070,10 @@ function is used." (jit-lock-register #'notmuch-show-buttonise-links) - (run-hooks 'notmuch-show-hook)) + ;; Set the header line to the subject of the first message. + (setq header-line-format (notmuch-show-strip-re (notmuch-show-get-subject))) - ;; Set the header line to the subject of the first message. - (setq header-line-format (notmuch-show-strip-re (notmuch-show-get-subject))))) + (run-hooks 'notmuch-show-hook)))) (defun notmuch-show-capture-state () "Capture the state of the current buffer. -- 1.7.9.5