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 46400431FC0 for ; Mon, 24 Sep 2012 04:44:51 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 l3QbZso5BVQC for ; Mon, 24 Sep 2012 04:44:39 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by olra.theworths.org (Postfix) with ESMTP id 4D3C5431FAF for ; Mon, 24 Sep 2012 04:44:39 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 6C9D910014A; Mon, 24 Sep 2012 14:44:43 +0300 (EEST) From: Tomi Ollila To: Damien Cassou , notmuch@notmuchmail.org Subject: Re: [PATCH] Run `notmuch-show-hook' after setting `header-line-format' In-Reply-To: <87pq5kior3.fsf@gmail.com> References: <87pq5kior3.fsf@gmail.com> User-Agent: Notmuch/0.13.2+177~g6720ee8 (http://notmuchmail.org) Emacs/24.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ 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, 24 Sep 2012 11:44:51 -0000 On Mon, Sep 17 2012, Damien Cassou wrote: > This patch makes it possible for notmuch-show hooks to change the > header line. > > Signed-off-by: Damien Cassou > --- LGTM. Tomi > 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 > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch