[notmuch] [PATCH 2/3] notmuch.el: Fix the message summary button to be active even...
authoraneesh.kumar <aneesh.kumar@gmail.com>
Tue, 1 Dec 2009 16:15:48 +0000 (21:45 +0530)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:48 +0000 (09:35 -0800)
07/b36e7e0e3d2750b65284d8711ec01d28f64f55 [new file with mode: 0644]

diff --git a/07/b36e7e0e3d2750b65284d8711ec01d28f64f55 b/07/b36e7e0e3d2750b65284d8711ec01d28f64f55
new file mode 100644 (file)
index 0000000..33ae280
--- /dev/null
@@ -0,0 +1,108 @@
+Return-Path: <aneesh.kumar@gmail.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 2E250431FAE\r
+       for <notmuch@notmuchmail.org>; Tue,  1 Dec 2009 08:16:03 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\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 glPDM1p8G5VE for <notmuch@notmuchmail.org>;\r
+       Tue,  1 Dec 2009 08:16:01 -0800 (PST)\r
+Received: from e23smtp09.au.ibm.com (e23smtp09.au.ibm.com [202.81.31.142])\r
+       by olra.theworths.org (Postfix) with ESMTP id 240C6431FBC\r
+       for <notmuch@notmuchmail.org>; Tue,  1 Dec 2009 08:16:00 -0800 (PST)\r
+Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [202.81.31.245])\r
+       by e23smtp09.au.ibm.com (8.14.3/8.13.1) with ESMTP id nB23G0H7001753\r
+       for <notmuch@notmuchmail.org>; Wed, 2 Dec 2009 14:16:00 +1100\r
+Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139])\r
+       by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id\r
+       nB1GFxd91020004\r
+       for <notmuch@notmuchmail.org>; Wed, 2 Dec 2009 03:15:59 +1100\r
+Received: from d23av04.au.ibm.com (loopback [127.0.0.1])\r
+       by d23av04.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id\r
+       nB1GFx13008693\r
+       for <notmuch@notmuchmail.org>; Wed, 2 Dec 2009 03:15:59 +1100\r
+Received: from localhost.localdomain ([9.124.215.21])\r
+       by d23av04.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id\r
+       nB1GFr3h008630; Wed, 2 Dec 2009 03:15:57 +1100\r
+From: aneesh.kumar@gmail.com\r
+To: cworth@cworth.org, aneesh.kumar@linux.vnet.ibm.com\r
+Date: Tue,  1 Dec 2009 21:45:48 +0530\r
+Message-Id: <1259684149-9574-2-git-send-email-aneesh.kumar@gmail.com>\r
+X-Mailer: git-send-email 1.6.5.2.74.g610f9\r
+In-Reply-To: <1259684149-9574-1-git-send-email-aneesh.kumar@gmail.com>\r
+References: <1259684149-9574-1-git-send-email-aneesh.kumar@gmail.com>\r
+X-Mailman-Approved-At: Tue, 01 Dec 2009 08:25:29 -0800\r
+Cc: "Aneesh Kumar K.V" <aneesh.kumar@gmail.com>, notmuch@notmuchmail.org\r
+Subject: [notmuch] [PATCH 2/3] notmuch.el: Fix the message summary button to\r
+       be active even on first column\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\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, 01 Dec 2009 16:16:03 -0000\r
+\r
+From: Aneesh Kumar K.V <aneesh.kumar@gmail.com>\r
+\r
+This make we have button activated even on the first column of\r
+the message summary line. Remove the inverse video overlay\r
+on the message summary line.\r
+\r
+Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>\r
+---\r
+ notmuch.el |   15 +++++++--------\r
+ 1 files changed, 7 insertions(+), 8 deletions(-)\r
+\r
+diff --git a/notmuch.el b/notmuch.el\r
+index c1e8257..6a0c119 100644\r
+--- a/notmuch.el\r
++++ b/notmuch.el\r
+@@ -575,7 +575,7 @@ which this thread was originally shown."\r
+   :supertype 'notmuch-button-invisibility-toggle-type)\r
+ (define-button-type 'notmuch-button-body-toggle-type \r
+   'help-echo "mouse-1, RET: Show message"\r
+-  'face '(:inverse-video . t)\r
++  'face 'message-header-other\r
+   :supertype 'notmuch-button-invisibility-toggle-type )\r
\r
+ (defun notmuch-show-markup-citations-region (beg end depth)\r
+@@ -721,13 +721,7 @@ which this thread was originally shown."\r
+   (forward-line)\r
+   (let ((beg (point-marker))\r
+         (btn nil))\r
+-    (end-of-line)\r
+-    ; Inverse video for subject\r
+-    (let ((message-overlay (make-overlay beg (point))))\r
+-      (overlay-put message-overlay 'face '(:inverse-video t))\r
+-      (setq btn (make-button (line-beginning-position)\r
+-                           (overlay-end message-overlay)\r
+-                           :type 'notmuch-button-body-toggle-type)))\r
++\r
+     (forward-line 1)\r
+     (end-of-line)\r
+     (let ((beg-hidden (point-marker)))\r
+@@ -747,7 +741,12 @@ which this thread was originally shown."\r
+           (overlay-put (make-overlay beg-hidden end)\r
+                        'invisible invis-spec)\r
+           (goto-char beg)\r
++        ;; mail summary\r
++        (setq btn (make-button (line-beginning-position)\r
++                               (line-end-position)\r
++                               :type 'notmuch-button-body-toggle-type))\r
+           (forward-line)\r
++        ;; subject line\r
+           (make-button (line-beginning-position) (line-end-position)\r
+                         'invisibility-spec (cons invis-spec t)\r
+                         :type 'notmuch-button-headers-toggle-type))\r
+-- \r
+1.6.5.2.74.g610f9\r
+\r