From a6913bc1c8a402f88223bbb2e4b7354db58b00d3 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Mon, 10 Dec 2012 15:32:40 +0100 Subject: [PATCH] [PATCH v3] emacs: display tags in notmuch-show with links --- 72/f51bef1e076fd741fcdc8a3804d38444124cd3 | 85 +++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 72/f51bef1e076fd741fcdc8a3804d38444124cd3 diff --git a/72/f51bef1e076fd741fcdc8a3804d38444124cd3 b/72/f51bef1e076fd741fcdc8a3804d38444124cd3 new file mode 100644 index 000000000..dada28920 --- /dev/null +++ b/72/f51bef1e076fd741fcdc8a3804d38444124cd3 @@ -0,0 +1,85 @@ +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 DB9C7431FB6 + for ; Mon, 10 Dec 2012 06:32:58 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 1.7 +X-Spam-Level: * +X-Spam-Status: No, score=1.7 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, FREEMAIL_REPLY=2.499, 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 IlrN48-ghE6T for ; + Mon, 10 Dec 2012 06:32:58 -0800 (PST) +Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com + [209.85.212.175]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 2AC6C431FAF + for ; Mon, 10 Dec 2012 06:32:58 -0800 (PST) +Received: by mail-wi0-f175.google.com with SMTP id hm11so1119084wib.2 + for ; Mon, 10 Dec 2012 06:32:57 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:subject:date:message-id:x-mailer; + bh=VJKvnMh6SzVmKWOIJqWJM3bQqjSPOfcD9v83NiXDD/Q=; + b=VPWoB3RUY3nrmIW+RRWq/fJJzcHQG6jqrh2zz38uajo0r2ZiUL/Ac8c2xaLwNu2B/D + CgHHJpRXb008iaLYYJ6wqFFYg/JryN59ZmCrLX/9tZ3oBKq7TUlG208BeYHH9zcexKdA + 5Gwy19vCcdy1vdSN4XLdRNl6Sv0O2VhtWSKYPZXQHZmQD3gUeZKJP50mfNMw+zD7kTJN + sAxP2QhcplKET6e4S2x2xITb1cMn3S/kiyhR6JkaLZXIQ1eelzUDragtHWvIgo7PHIJ8 + uVUWx4qdVBlwS0l1kFwPMUeXKzqbv+liAOcq3I8f3YVtD7UQ+Vc7zwN/AWPolHEtIqtH + vgyg== +Received: by 10.181.13.75 with SMTP id ew11mr11096656wid.9.1355149976890; + Mon, 10 Dec 2012 06:32:56 -0800 (PST) +Received: from luz3.lille.inria.fr ([193.51.236.232]) + by mx.google.com with ESMTPS id i6sm10241253wix.5.2012.12.10.06.32.54 + (version=TLSv1/SSLv3 cipher=OTHER); + Mon, 10 Dec 2012 06:32:55 -0800 (PST) +From: Damien Cassou +To: notmuch@notmuchmail.org +Subject: [PATCH v3] emacs: display tags in notmuch-show with links +Date: Mon, 10 Dec 2012 15:32:40 +0100 +Message-Id: <1355149964-27905-1-git-send-email-damien.cassou@gmail.com> +X-Mailer: git-send-email 1.7.10.4 +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, 10 Dec 2012 14:32:59 -0000 + +This patch obsoletes: +id:1353266322-20318-1-git-send-email-damien.cassou@gmail.com + +[PATCH 1/4] emacs: Add a thread's tags to notmuch-show header-line +[PATCH 2/4] emacs: Make tags in notmuch-show header-line clickable +[PATCH 3/4] emacs: Make all tags in `notmuch-show' clickable +[PATCH 4/4] emacs: Add unit-tests for clickable tags + +This patch makes clickable all tags that appear in notmuch-show +buffers. Each tag is a link to open a new notmuch-search buffer for +this tag. Additionally, the buffer's header-line now shows the +thread's tags (clickable only if the `header-button' library is loaded +or loadable). + +This patch is the first one of an upcoming series whose goal is to +integrate notmuch-labeler into notmuch. See the following for more +details: +https://github.com/DamienCassou/notmuch-labeler + +With respect to v2, I took care of the comments you made: +- moved notmuch-tagger-separate-elems to notmuch-lib +- renamed a few methods +- changed some comments to better reflect the method behavior +- changed links in the body so that TAB won't stop at them +- changed miscellaneous small things -- 2.26.2