Re: [PATCH] emacs: Fix display of highlighted line in notmuch-show
authorJani Nikula <jani@nikula.org>
Tue, 14 Feb 2012 16:56:03 +0000 (18:56 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:44:28 +0000 (09:44 -0800)
fa/67fefa7282fc8006148a64a2316c1be7c6c01a [new file with mode: 0644]

diff --git a/fa/67fefa7282fc8006148a64a2316c1be7c6c01a b/fa/67fefa7282fc8006148a64a2316c1be7c6c01a
new file mode 100644 (file)
index 0000000..d3388a6
--- /dev/null
@@ -0,0 +1,121 @@
+Return-Path: <jani@nikula.org>\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 26E43431FBC\r
+       for <notmuch@notmuchmail.org>; Tue, 14 Feb 2012 08:56:15 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 jTw2o3Ggiwno for <notmuch@notmuchmail.org>;\r
+       Tue, 14 Feb 2012 08:56:11 -0800 (PST)\r
+Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com\r
+       [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 1E0E1431FAF\r
+       for <notmuch@notmuchmail.org>; Tue, 14 Feb 2012 08:56:10 -0800 (PST)\r
+Received: by lahd3 with SMTP id d3so162656lah.26\r
+       for <notmuch@notmuchmail.org>; Tue, 14 Feb 2012 08:56:08 -0800 (PST)\r
+Received: by 10.112.103.228 with SMTP id fz4mr4257616lbb.99.1329238567995;\r
+       Tue, 14 Feb 2012 08:56:07 -0800 (PST)\r
+Received: from localhost (dsl-hkibrasgw4-fe50f800-253.dhcp.inet.fi.\r
+       [84.248.80.253])\r
+       by mx.google.com with ESMTPS id mc3sm16688007lab.12.2012.02.14.08.56.05\r
+       (version=SSLv3 cipher=OTHER); Tue, 14 Feb 2012 08:56:06 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Michal Sojka <sojka@os.inf.tu-dresden.de>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] emacs: Fix display of highlighted line in notmuch-show\r
+In-Reply-To: <1329215056-25753-1-git-send-email-sojka@os.inf.tu-dresden.de>\r
+References: <1329215056-25753-1-git-send-email-sojka@os.inf.tu-dresden.de>\r
+User-Agent: Notmuch/0.11.1+182~g79d6dde (http://notmuchmail.org) Emacs/23.3.1\r
+       (i686-pc-linux-gnu)\r
+Date: Tue, 14 Feb 2012 18:56:03 +0200\r
+Message-ID: <87mx8lpd5o.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Gm-Message-State:\r
+ ALoCoQlUcOECeeQzDYQu4vUhSEUQvF/uju548FODJyaFxFn3iK7bzWiOfnFTcilgR8Cp4ZlDNvIV\r
+Cc: Michal Sojka <sojka@os.inf.tu-dresden.de>\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: Tue, 14 Feb 2012 16:56:15 -0000\r
+\r
+On Tue, 14 Feb 2012 11:24:16 +0100, Michal Sojka <sojka@os.inf.tu-dresden.de> wrote:\r
+> When notmuch-search-line-faces is used to set background color in search\r
+> results, the highlight of the current line is not always displayed\r
+> correctly. This patch fixes that by increasing the priority property of\r
+> the highlight overlay.\r
+\r
+One nitpick: The subject line refers to notmuch-show.\r
+\r
+BR,\r
+Jani.\r
+\r
+> ---\r
+>  emacs/notmuch.el |   15 +++++++++++----\r
+>  1 files changed, 11 insertions(+), 4 deletions(-)\r
+> \r
+> diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
+> index 5b4f1c5..f851c6f 100644\r
+> --- a/emacs/notmuch.el\r
+> +++ b/emacs/notmuch.el\r
+> @@ -249,10 +249,17 @@ For a mouse binding, return nil."\r
+>        (set-buffer-modified-p nil)\r
+>        (view-buffer (current-buffer) 'kill-buffer-if-not-modified))))\r
+>  \r
+> -(defcustom notmuch-search-hook '(hl-line-mode)\r
+> +(require 'hl-line)\r
+> +\r
+> +(defun notmuch-hl-line-mode ()\r
+> +  (prog1 (hl-line-mode)\r
+> +    (when hl-line-overlay\r
+> +      (overlay-put hl-line-overlay 'priority 1))))\r
+> +\r
+> +(defcustom notmuch-search-hook '(notmuch-hl-line-mode)\r
+>    "List of functions to call when notmuch displays the search results."\r
+>    :type 'hook\r
+> -  :options '(hl-line-mode)\r
+> +  :options '(notmuch-hl-line-mode)\r
+>    :group 'notmuch-search\r
+>    :group 'notmuch-hooks)\r
+>  \r
+> @@ -567,7 +574,7 @@ a list of strings of the form \"+TAG\" or \"-TAG\".\r
+>  the messages that are about to be tagged"\r
+>  \r
+>    :type 'hook\r
+> -  :options '(hl-line-mode)\r
+> +  :options '(notmuch-hl-line-mode)\r
+>    :group 'notmuch-hooks)\r
+>  \r
+>  (defcustom notmuch-after-tag-hook nil\r
+> @@ -578,7 +585,7 @@ a list of strings of the form \"+TAG\" or \"-TAG\".\r
+>  'query' will be a string containing the search query that determines\r
+>  the messages that were tagged"\r
+>    :type 'hook\r
+> -  :options '(hl-line-mode)\r
+> +  :options '(notmuch-hl-line-mode)\r
+>    :group 'notmuch-hooks)\r
+>  \r
+>  (defun notmuch-search-set-tags (tags)\r
+> -- \r
+> 1.7.7.3\r
+> \r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r