Re: [PATCH v2] emacs: Turn id:"<message-id>" elements into buttons for notmuch searches
authorDaniel Schoepe <daniel.schoepe@googlemail.com>
Thu, 7 Jul 2011 08:15:47 +0000 (10:15 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:00 +0000 (09:39 -0800)
0a/c9f3a3f5dc7433e6743355b049bb0bd2d4530d [new file with mode: 0644]

diff --git a/0a/c9f3a3f5dc7433e6743355b049bb0bd2d4530d b/0a/c9f3a3f5dc7433e6743355b049bb0bd2d4530d
new file mode 100644 (file)
index 0000000..39d5aae
--- /dev/null
@@ -0,0 +1,117 @@
+Return-Path: <daniel.schoepe@googlemail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 0053F431FD0\r
+       for <notmuch@notmuchmail.org>; Thu,  7 Jul 2011 01:15:59 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.789\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.789 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, T_MIME_NO_TEXT=0.01]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id hjf-4vvTgLvd for <notmuch@notmuchmail.org>;\r
+       Thu,  7 Jul 2011 01:15:59 -0700 (PDT)\r
+Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com\r
+       [209.85.161.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 2E98D431FB6\r
+       for <notmuch@notmuchmail.org>; Thu,  7 Jul 2011 01:15:59 -0700 (PDT)\r
+Received: by fxh19 with SMTP id 19so862505fxh.19\r
+       for <notmuch@notmuchmail.org>; Thu, 07 Jul 2011 01:15:57 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=googlemail.com; s=gamma;\r
+       h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
+       :mime-version:content-type;\r
+       bh=ItWPlIkdRK+uFpm06ITKwLJjRgDrS6FKhcZAyJ3nvk4=;\r
+       b=pw1XtWLkWCb0CHLZcxeGx5NCij9tu1rzuPBisplC3Vu7otev1vHgqoCRbcECgGkTcY\r
+       XJHJ8lGo/KEOkA31soNca5Yuhtc05gYeaIEUth3ePfrwC/436TKkr/OK0os3nOdmeMqC\r
+       zYgDHRzuAiBIrzjGDQ94jYpBNkeYWeva1Hbac=\r
+Received: by 10.223.59.92 with SMTP id k28mr853744fah.27.1310026557770;\r
+       Thu, 07 Jul 2011 01:15:57 -0700 (PDT)\r
+Received: from localhost (dslb-088-069-138-212.pools.arcor-ip.net\r
+       [88.69.138.212])\r
+       by mx.google.com with ESMTPS id n27sm6557890faa.4.2011.07.07.01.15.55\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Thu, 07 Jul 2011 01:15:56 -0700 (PDT)\r
+From: Daniel Schoepe <daniel.schoepe@googlemail.com>\r
+To: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH v2] emacs: Turn id:"<message-id>" elements into buttons\r
+       for notmuch searches\r
+In-Reply-To: <87r5624l3g.fsf@gmail.com>\r
+References: <1309896760-378-1-git-send-email-daniel.schoepe@googlemail.com>\r
+       <1309961881-28333-1-git-send-email-daniel.schoepe@googlemail.com>\r
+       <1309961881-28333-2-git-send-email-daniel.schoepe@googlemail.com>\r
+       <87r5624l3g.fsf@gmail.com>\r
+User-Agent: Notmuch/0.5-321-g7d7ebd8 (http://notmuchmail.org) Emacs/23.3.1\r
+       (i486-pc-linux-gnu)\r
+Date: Thu, 07 Jul 2011 10:15:47 +0200\r
+Message-ID: <87vcve1p70.fsf@tredergarh.home.box>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 07 Jul 2011 08:16:00 -0000\r
+\r
+--=-=-=\r
+\r
+Hi Dmitry,\r
+\r
+On Thu, 07 Jul 2011 11:16:03 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:\r
+> Why do we need to remove `goto-address-mode' overlays if it is not\r
+> enabled ((goto-address-mode t) is below is removed)?\r
+> [..]\r
+> `goto-address-mode' creates buttons not only for email addresses but\r
+> also for URLs.  Do we loose it now?\r
+\r
+Everything `goto-address-mode' does is still in effect, I just replaced\r
+(goto-address-mode t) by a call to `goto-address-fontify-region' in\r
+notmuch-show-buttonise-links, to ensure that the id links will be\r
+buttonised (and the overlay removed after it's actually been inserted)\r
+_after_ goto-address does its thing.\r
+\r
+I could also have left (goto-address-mode t) in and jit-register-lock'ed\r
+notmuch-show-buttonise-links before that, but then I would be relying on\r
+the fact that fontifiers that are registered first, will be run last. As\r
+far as I can tell this is just an implementation detail and might change\r
+some day.\r
+\r
+Cheers,\r
+Daniel\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iQIcBAEBAgAGBQJOFWszAAoJEIaTAtce+Z+JN4kP/jzsMHUYqcHAUUpSqOtcozLR\r
+vOAxX3dfkYdRE+77GC0hJ7q/mPjM9wU1o712Gfp4hfpo6C4Y8AED5hhvg4EoG40k\r
+5znNTBwC8HD4HwSs1s2rdZ0OsARD24/j71L27mVfaF25ssUo+WhMu1i2DmivxZ4j\r
+eC8C1gUP9FGAlxnO0dO/XVeo5a7+ACpEoIRFBhq/BP5fmXJibW4NfJwHEHT9++YO\r
+b3/Dfsu990spuUWJpsVYyIG39PXrbmMI9WBpfDkn0W/d/ZMmoJziLf9kbsjEov7E\r
+xoM6V2AxMGrUsjDrUntZJLgFUFOKHJ5/Lyft3aMPiyJ4Oh+ch3toxgqnNVZkJnEr\r
+1njIW/GIKXhs2pP5rzCZrSRpb2BfUYkrB+Xvw2DlJ8s69cBWe6g6pSIBOxm2vDG2\r
+LGzQM3j4Cu92MDu/YOj5mevZvZ37PI6Vfh5PekJ30j9Qy7R9hL6CbUSgAIGsZpES\r
+1n/MdnIpEXQLSqTgaEzSSUxG2PfFs4l9vYC0HN2oz3qkemw9rMKjgmbG/l2HWb8Z\r
+2A3t7gjgWToe+qxVQJXEYh4KT1lazT7hZuQt9G4F6E5gfl60nMa7FJUAVU8Xz3hS\r
+AMuxkx1mJifedyxwHNusnbO9/YtZeD5jckTiK/qUwSXfj/pLjwBmWSUTwcpGUzY2\r
+cnv+UR2Tsd6EpmPb1WE/\r
+=utPo\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r