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 7157F40DAC6 for ; Mon, 8 Nov 2010 06:19:44 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham 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 0iqoiQ0a5Hs6 for ; Mon, 8 Nov 2010 06:19:34 -0800 (PST) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) by olra.theworths.org (Postfix) with ESMTP id 3422440DAC1 for ; Mon, 8 Nov 2010 06:19:34 -0800 (PST) Received: by wwb29 with SMTP id 29so52226wwb.2 for ; Mon, 08 Nov 2010 06:19:32 -0800 (PST) Received: by 10.227.152.71 with SMTP id f7mr5290604wbw.191.1289225971470; Mon, 08 Nov 2010 06:19:31 -0800 (PST) Received: from ut.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com [81.149.164.25]) by mx.google.com with ESMTPS id f14sm886283wbe.20.2010.11.08.06.19.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 08 Nov 2010 06:19:30 -0800 (PST) Received: by ut.hh.sledj.net (Postfix, from userid 1000) id 3917659405B; Mon, 8 Nov 2010 14:18:26 +0000 (GMT) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH] emacs: Use the header line to show the subject of the thread. Date: Mon, 8 Nov 2010 14:18:25 +0000 Message-Id: <1289225905-1457-1-git-send-email-dme@dme.org> X-Mailer: git-send-email 1.7.2.3 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, 08 Nov 2010 14:19:44 -0000 --- This is particularly useful when paging through a long message. emacs/notmuch-show.el | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 08654f1..1046bf0 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -576,6 +576,10 @@ function is used. " ;; Move straight to the first open message (if (not (notmuch-show-message-visible-p)) (notmuch-show-next-open-message)) + + ;; Set the header line to the subject of the first open message. + (setq header-line-format (notmuch-show-strip-re (notmuch-show-get-subject))) + (notmuch-show-mark-read))) (defvar notmuch-show-stash-map -- 1.7.2.3