[PATCH] emacs: Fontify From with message-header-other
authorH. J. Illikainen <hji@dyntopia.com>
Wed, 4 Nov 2015 22:44:00 +0000 (05:44 +0700)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:50:00 +0000 (14:50 -0700)
c6/319cff76979ec5f86d2f1d14bd8cc1af7cce52 [new file with mode: 0644]

diff --git a/c6/319cff76979ec5f86d2f1d14bd8cc1af7cce52 b/c6/319cff76979ec5f86d2f1d14bd8cc1af7cce52
new file mode 100644 (file)
index 0000000..656894f
--- /dev/null
@@ -0,0 +1,103 @@
+Return-Path: <hji@dyntopia.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 arlo.cworth.org (Postfix) with ESMTP id AD8F56DE17BA\r
+ for <notmuch@notmuchmail.org>; Wed,  4 Nov 2015 14:42:50 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.721\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.721 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7,\r
+ RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id wn44UsuilMS3 for <notmuch@notmuchmail.org>;\r
+ Wed,  4 Nov 2015 14:42:48 -0800 (PST)\r
+Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com\r
+ [209.85.212.177])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 52F916DE1607\r
+ for <notmuch@notmuchmail.org>; Wed,  4 Nov 2015 14:42:48 -0800 (PST)\r
+Received: by wicll6 with SMTP id ll6so41265689wic.1\r
+ for <notmuch@notmuchmail.org>; Wed, 04 Nov 2015 14:42:46 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=dyntopia_com.20150623.gappssmtp.com; s=20150623;\r
+ h=from:to:cc:subject:date:message-id;\r
+ bh=0IbNf130uyVSVz1eP4VQtNyr8rGIyBQBelhiM1BB8RY=;\r
+ b=jqG9Ze2i1SkbgBCcGyein0Ritd1Urue2ORjyg6ARbDd5bD+LC2NTKzhoX+fyj/z+xd\r
+ XeL2D0P5D5YWBjaEW8Z4GOmjqO7pWQkHz3/1TH4j1y9zCg/DE38QSgf3B1WKF4b84gx8\r
+ fdeUOJO2ZKvIbokqL/CABGjh7eDfJGGfmb/V9WSIqPMPHduhQE2kpFDbW9yQcSmj6pQx\r
+ rv3iWZrulZfpZYG2HDMWziw8bfFUgR//bDI0g1dKIWXfXbCXu9PZwGzIUp8Z2S57WEwX\r
+ ZGwQIEcidnp0+MPuepF2DTad8xxfxyjEzRCWAUZLCtrfTzvNDvq1EguvblnsZa6C8rc2\r
+ zVXA==\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:cc:subject:date:message-id;\r
+ bh=0IbNf130uyVSVz1eP4VQtNyr8rGIyBQBelhiM1BB8RY=;\r
+ b=OolMs7Ur8GTzmNa2Xuzfbrhcg2FPz18hPiqoppmwcVn/bOGf4We6RsYcDcbLhvM4D8\r
+ 6QSW8TUs5AKVh+aeO/pwhZy7GsF3/kZ9Npuj8bTsJwBEMVxEmotQ+WQ2S02bEKFQG+oz\r
+ pXLkhnUu3mrCZXwMvUm1H8jRIaqpSrxPB8T8KNaY3OTtVP7RlqJs6G8j8a+7/8jdfrR/\r
+ n5lE89dSbFQnn8avfgzFhxvRfNLVmzaPpWhX0dRVqGUp2OKp0cKFjmIXzsw8Rzibszbf\r
+ kcCXCXy8Mf45uw/QCp0PfY9FhVP6+RqVt33imxRzm1ckz8tWQJ8fNSG1+wpMsSZaS/ca\r
+ rL5A==\r
+X-Gm-Message-State:\r
+ ALoCoQnB78KdulXs4tqfJ+jrOtVUjQbZA8hdiBCCYWrmTLRlw0Ys4kYSBkQrotaIsOEp8s+gSrnW\r
+X-Received: by 10.194.11.98 with SMTP id p2mr4630689wjb.131.1446676966235;\r
+ Wed, 04 Nov 2015 14:42:46 -0800 (PST)\r
+Received: from localhost (rfc3251.org. [178.62.255.51])\r
+ by smtp.gmail.com with ESMTPSA id bk2sm3799762wjc.3.2015.11.04.14.42.44\r
+ (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Wed, 04 Nov 2015 14:42:45 -0800 (PST)\r
+From: "H. J. Illikainen" <hji@dyntopia.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] emacs: Fontify From with message-header-other\r
+Date: Thu,  5 Nov 2015 05:44:00 +0700\r
+Message-Id: <1446677040-43496-1-git-send-email-hji@dyntopia.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 04 Nov 2015 22:42:50 -0000\r
+\r
+Commit e26d767897e8ab59f05808a12ac5c9c1e3c7030f changed the\r
+fontification of the body associated with the From header to\r
+message-header-from.  However, that face is non-existent, and in\r
+message.el (message-font-lock-keywords) the From-header falls through\r
+and is attributed the message-header-other face.\r
+\r
+This commit removes the fontification of the [Ff]rom header in\r
+notmuch-show-mode in order to fontify it using the message-header-other\r
+face.\r
+\r
+This only affects non-default configurations where\r
+notmuch-message-headers is set to display From.\r
+---\r
+ emacs/notmuch-show.el | 2 --\r
+ 1 file changed, 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index 49fd198..793f1a5 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -353,8 +353,6 @@ operation on the contents of the current buffer."\r
+               'message-header-cc)\r
+              ((looking-at "[Ss]ubject:")\r
+               'message-header-subject)\r
+-             ((looking-at "[Ff]rom:")\r
+-              'message-header-from)\r
+              (t\r
+               'message-header-other))))\r
\r
+-- \r
+H. J. Illikainen\r
+\r